A Rust CAD application with an MCP server for creating, inspecting and rendering drawings, either headlessly or through a connection to the desktop app.

Local Voice MCP
A Model Context Protocol server that gives MCP clients the ability to speak using local voice models for text-to-speech synthesis and audio playback.
WHAT IT DOES
- •Provides a synthesize_text tool that converts text to speech using the configured TTS engine and returns a JSON response with the generated audio file path.
- •Supports two TTS engines: Chatterbox Turbo TTS with voice cloning and paralinguistic tags, and Kokoro TTS with multiple languages, 40+ voices, voice blending, and adjustable speed.
- •Includes a play_audio tool that plays generated audio files through the system's default audio player with optional volume control.
- •Adds expressive paralinguistic tags like [laugh], [sigh], and [cough] directly in synthesized text for Chatterbox.
BEST FOR
- •Giving MCP clients and AI agents local voice output without relying on a cloud TTS service.
- •Producing expressive speech with voice cloning from a reference audio file.
- •Multi-language or multi-voice speech synthesis through the Kokoro engine.
ABOUT LOCAL-VOICE-MCP
Local Voice MCP is cataloged as an MCP server attributed to codecraftersllc. A Model Context Protocol server that gives MCP clients the ability to speak using local voice models for text-to-speech synthesis and audio playback. It is categorized under media design. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
HOW TO INSTALL
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
LICENSE
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
能力检查器
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
Tools (0)
暂无可展示的已审核记录。这不表示上游不支持此能力。
Resources (0)
暂无可展示的已审核记录。这不表示上游不支持此能力。
Prompts (0)
暂无可展示的已审核记录。这不表示上游不支持此能力。
Newsletter subscriptions are not open yet
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Community Reviews
Reviews for Local Voice MCP are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
FREQUENTLY ASKED QUESTIONS
Can the server clone a voice from a reference audio file?
Yes, with Chatterbox Turbo you can provide a reference audio path for voice cloning, and a bundled female reference voice is used by default when none is specified.
Does Kokoro support blending multiple voices?
Yes, Kokoro supports blending multiple voices for unique voice characteristics using a weight format such as a 60-40 mix of two voices.
上游原版 README
README.md · 4bf8a9c8b1d7 · 采集于 2026-11-13 12:20:55 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
Local Voice MCP
Give your MCP clients the ability to speak by running local voice models using Chatterbox Turbo TTS or Kokoro TTS.
Quickstart
The package includes a high-quality female reference voice that's used by default with Chatterbox Turbo TTS. All environment variables are optional.
{
"mcpServers": {
"local-voice-mcp": {
"command": "npx",
"args": ["-y", "@codecraftersllc/local-voice-mcp"],
"env": {
"USE_MALE_VOICE": "false",
"CHATTERBOX_MAX_CHARACTERS": "2000",
"CHATTERBOX_PLAYBACK_VOLUME": "75"
}
}
}
}
TTS Engine Selection
Local Voice MCP supports two TTS engines:
Chatterbox Turbo TTS (Default)
High-quality voice synthesis with voice cloning support and paralinguistic tags. Automatically detects and uses the optimal backend for your hardware.
- ✅ Cross-platform support (macOS, Windows, Linux)
- ✅ Voice cloning with reference audio
- ✅ Paralinguistic tags for expressive speech (
[laugh],[sigh],[cough], etc.) - ✅ Multi-architecture auto-detection:
- Apple Silicon (MPS): Uses MLX with
mlx-community/chatterbox-turbo-6bit - NVIDIA GPU (CUDA): Uses PyTorch with
ChatterboxTurboTTS - CPU: Uses PyTorch fallback
- Apple Silicon (MPS): Uses MLX with
- ✅ Smaller model (350M params) with lower latency
Kokoro TTS (Cross-Platform)
High-quality open-source TTS using ONNX runtime with multi-language and multi-voice support.
- ✅ Cross-platform (macOS, Windows, Linux)
- ✅ Multiple languages (en-us, en-gb, fr-fr, it, ja, cmn)
- ✅ 40+ voices with gender and accent options
- ✅ Voice blending capability
- ✅ Adjustable speech speed
- ✅ GPU support
- ✅ Long-form content (no length limitations)
- ✅ Automatic dependency and model installation (nothing to install manually!)
To use Kokoro, set the TTS_ENGINE environment variable:
{
"mcpServers": {
"local-voice-mcp": {
"command": "npx",
"args": ["-y", "@codecraftersllc/local-voice-mcp"],
"env": {
"TTS_ENGINE": "kokoro",
"KOKORO_LANGUAGE": "en-us",
"KOKORO_VOICE": "af_sarah",
"KOKORO_SPEED": "1.0"
}
}
}
}
Setup:
Kokoro TTS automatically installs Python dependencies and downloads model files (~100MB) on first use. Just configure the MCP server and you're ready to go!
What Happens on First Use:
- Python packages (
kokoro-onnx,soundfile,numpy) are automatically installed via pip - Model files (
kokoro-v1.0.onnx~90MB,voices-v1.0.bin~13MB) are automatically downloaded - Files are cached in
~/.cache/kokoro-tts/for future use - This one-time setup takes ~1-2 minutes depending on your internet connection
Manual Installation (Optional):
If you prefer to install dependencies manually or if automatic installation fails:
# Install Python dependencies
pip install kokoro-onnx soundfile numpy
# Model files will still auto-download, or you can download manually:
cd ~/.cache/kokoro-tts
wget https://github.com/nazdridoy/kokoro-tts/releases/download/v1.0.0/kokoro-v1.0.onnx
wget https://github.com/nazdridoy/kokoro-tts/releases/download/v1.0.0/voices-v1.0.bin
Available Voices:
- 🇺🇸 American English:
af_alloy,af_bella,af_sarah,af_nova,am_adam,am_michael,am_eric, and more - 🇬🇧 British English:
bf_emma,bf_isabella,bm_george,bm_lewis, and more - 🇫🇷 French:
ff_siwis - 🇮🇹 Italian:
if_sara,im_nicola - 🇯🇵 Japanese:
jf_alpha,jm_kumo, and more - 🇨🇳 Chinese:
zf_xiaobei,zm_yunjian, and more
Voice Blending: Kokoro supports blending multiple voices for unique voice characteristics:
# 60-40 mix of two voices
KOKORO_VOICE="af_sarah:60,am_adam:40"
# Equal blend (50-50)
KOKORO_VOICE="am_adam,af_sarah"
Features
- MCP Server Implementation: Full Model Context Protocol server using
@modelcontextprotocol/sdk - HTTP API: ElevenLabs-compatible REST API for direct integration
- Text-to-Speech Synthesis: High-quality voice synthesis using Chatterbox Turbo TTS
- Voice Cloning: Support for reference audio for voice cloning
- Paralinguistic Tags: Add expressive elements like
[laugh],[sigh],[cough]directly in text - Multi-Architecture Support: Auto-detects and uses optimal backend (MLX for Apple Silicon, CUDA for NVIDIA, CPU fallback)
- Volume Control: Configurable audio playback volume with cross-platform support
- Robust File Management: Automatic cleanup of temporary audio files
- Security: Path validation and sanitization to prevent directory traversal
- Dual Mode Operation: Run as MCP server or HTTP server
Installation
From npm (Recommended)
npm install -g local-voice-mcp
From Source
git clone <repository-url>
cd local-voice-mcp
npm install
npm run build
Usage
MCP Server Mode (Default)
Run as an MCP server with stdio transport:
local-voice-mcp-server
Or using npx:
npx local-voice-mcp-server
HTTP Server Mode
Run as an HTTP server:
MCP_MODE=http local-voice-mcp-server
Or set the port:
PORT=3000 MCP_MODE=http local-voice-mcp-server
Development
# Run MCP server in development
npm run dev:mcp
# Run HTTP server in development
npm run dev:http
# Run tests
npm test
# Build project
npm run build
MCP Tools
When running in MCP mode, the following tools are available:
synthesize_text
Converts text to speech and returns audio data using the configured TTS engine.
Common Parameters:
text(string, required): Text to synthesize
Chatterbox Turbo-Specific Parameters:
referenceAudio(string, optional): Path to reference audio for voice cloning
Note: Chatterbox Turbo uses paralinguistic tags directly in text instead of prosody parameters. Include tags like [laugh], [sigh], [cough], [chuckle], [gasp], [groan], [clear throat], [sniff], [shush] in your text for expressive speech.
Kokoro-Specific Parameters:
speed(number, optional): Speech speed (0.5-2.0, default: 1.0)language(string, optional): Language code (e.g., 'en-us', 'en-gb', 'fr-fr', 'ja', 'cmn', default: 'en-us')voice(string, optional): Voice name (e.g., 'af_sarah', 'am_adam', 'bf_emma', default: 'af_sarah')model_path(string, optional): Path to Kokoro ONNX model filevoices_path(string, optional): Path to Kokoro voices bin file
Returns:
- JSON response with synthesis status and file path
Example Response:
{
"success": true,
"message": "Speech synthesis completed successfully",
"audioFile": "/tmp/local-voice-mcp/audio_20240115_103000_abc123.wav",
"textLength": 25,
"audioFormat": "wav",
"engine": "chatterbox",
"engineName": "chatterbox",
"options": {},
"generatedAt": "2024-01-15T10:30:00.000Z"
}
The audio file is saved to the temporary directory and can be played using any audio player or accessed programmatically.
play_audio
Play an audio file using the system's default audio player with optional volume control.
Parameters:
audioFile(string, required): Path to the audio file to playvolume(number, optional): Playback volume as percentage (0-100). If not specified, uses CHATTERBOX_PLAYBACK_VOLUME environment variable or default of 50.
Supported Formats:
- WAV files (.wav)
- MP3 files (.mp3)
Returns:
- JSON response with playback status and system information
Example Response:
{
"success": true,
"message": "Successfully played audio file: /tmp/local-voice-mcp/audio_123.wav",
"audioFile": "/tmp/local-voice-mcp/audio_123.wav",
"volume": 50,
"platform": "darwin",
"command": "afplay -v 0.5 /tmp/local-voice-mcp/audio_123.wav",
"timestamp": "2024-01-15T10:30:00.000Z"
}
Platform Support:
- Cross-platform: Prefers
ffplay(from ffmpeg) for consistent volume control across all platforms - macOS: Falls back to
afplaycommand with-vvolume flag - Windows: Falls back to PowerShell with
MediaPlayerand volume control - Linux: Falls back to
mpg123(MP3) with gain control oraplay(WAV, no volume control)
tts_status
Returns the current status of the TTS service.
Parameters: None
Returns:
- JSON response with service status and capabilities
Example Response:
{
"success": true,
"status": "operational",
"message": "TTS service is ready and operational",
"timestamp": "2024-01-15T10:30:00.000Z",
"service": {
"name": "Chatterbox TTS",
"version": "0.1.0",
"capabilities": [
"text-to-speech synthesis",
"voice cloning with reference audio",
"prosody controls"
]
}
}
MCP Resources
service-info
Provides information about the Local Voice MCP service.
URI: local-voice://service-info
HTTP API
When running in HTTP mode, the server exposes:
POST /tts
ElevenLabs-compatible text-to-speech endpoint.
Headers:
X-API-Key: API key (placeholder for authentication)Content-Type: application/json
Request Body:
{
"text": "[sigh] Hello, world! [laugh] This is great!",
"options": {
"referenceAudio": "path/to/reference.wav"
}
}
Response:
- Content-Type:
audio/wav - Binary audio data
Configuration
Environment Variables
Server Configuration
PORT: HTTP server port (default: 59125)MCP_MODE: Operation mode - "mcp" or "http" (default: "mcp")
TTS Engine Selection
TTS_ENGINE: TTS engine to use - "chatterbox", "kani-mlx", or "kokoro" (default: "chatterbox")
Chatterbox Turbo TTS Configuration
These environment variables can be used to set default values for Chatterbox Turbo TTS synthesis. They will be used if not overridden by options passed to the synthesize method:
PYTHON_PATH: Path to Python interpreter (default: "python3"). Important: If using Apple Silicon with Python 3.13+, point this to a conda environment with Python 3.11-3.12 where mlx-audio is installed.CHATTERBOX_REFERENCE_AUDIO: Path to reference audio file for voice cloning (can be anywhere on your system, supports .wav, .mp3, .flac, .ogg, .m4a, .aac). If not specified, uses the bundled high-quality female reference voice.USE_MALE_VOICE: Use male voice instead of bundled female reference voice (true/false, default: false). When set to true, uses the default Chatterbox male voice instead of the bundled female voice. This only applies when no custom reference audio is specified.CHATTERBOX_MAX_CHARACTERS: Maximum number of characters allowed for text input (integer, default: 2000)CHATTERBOX_OUTPUT_DIR: Output directory for generated audio files (default: system temp + "local-voice-mcp")CHATTERBOX_PLAYBACK_VOLUME: Default audio playback volume as percentage (integer, 0-100, default: 50)
Paralinguistic Tags: Instead of prosody controls, use paralinguistic tags directly in your text: [laugh], [sigh], [cough], [chuckle], [gasp], [groan], [clear throat], [sniff], [shush]
Example: "[sigh] I can't believe it's Monday again. [laugh] But let's make the best of it!"
Kokoro Configuration
These environment variables can be used to set default values for Kokoro synthesis:
KOKORO_SPEED: Speech speed (float, 0.5-2.0, default: 1.0)KOKORO_LANGUAGE: Language code (string, default: "en-us"). Supported: en-us, en-gb, fr-fr, it, ja, cmnKOKORO_VOICE: Voice name (string, default: "af_sarah"). See available voices above. Can also use voice blending format like "voice1:weight,voice2:weight"KOKORO_MODEL_PATH: Path to kokoro ONNX model file (string, default: "kokoro-v1.0.onnx")KOKORO_VOICES_PATH: Path to voices bin file (string, default: "voices-v1.0.bin")KOKORO_MAX_CHARACTERS: Maximum number of characters allowed for text input (integer, default: 5000)KOKORO_OUTPUT_DIR: Output directory for generated audio files (default: system temp + "local-voice-mcp")PYTHON_PATH: Path to Python interpreter (default: "python3")
Example:
# Set default TTS parameters via environment variables
# Reference audio can be anywhere on your system
export CHATTERBOX_REFERENCE_AUDIO="/Users/john/Music/my-voice.wav"
export CHATTERBOX_MAX_CHARACTERS="3000"
export CHATTERBOX_PLAYBACK_VOLUME="75"
# Run the MCP server with these defaults
local-voice-mcp-server
Using with npx:
{
"mcpServers": {
"local-voice-mcp": {
"command": "npx",
"args": ["-y", "@codecraftersllc/local-voice-mcp"],
"env": {
"CHATTERBOX_REFERENCE_AUDIO": "/Users/john/Music/my-voice.wav",
"CHATTERBOX_MAX_CHARACTERS": "3000",
"CHATTERBOX_PLAYBACK_VOLUME": "75"
}
}
}
}
Using male voice instead of bundled female voice:
{
"mcpServers": {
"local-voice-mcp": {
"command": "npx",
"args": ["-y", "@codecraftersllc/local-voice-mcp"],
"env": {
"USE_MALE_VOICE": "true"
}
}
}
}
Priority Order:
- Options passed to the
synthesize_textorplay_audiotools (highest priority) - Environment variables
- Built-in defaults (lowest priority)
MCP Client Configuration
Add to your MCP client configuration:
{
"local-voice-mcp": {
"command": "npx",
"args": ["-y", "local-voice-mcp-server"],
"env": {}
}
}
Testing with Cursor
Cursor is a popular AI-powered code editor that supports MCP. Here's how to test the Local Voice MCP server with Cursor:
1. Install the Package
First, install the package globally or ensure it's available:
npm install -g local-voice-mcp
# or
npm install local-voice-mcp
2. Configure Cursor
Add the MCP server to your Cursor configuration file. The location depends on your operating system:
- macOS:
~/Library/Application Support/Cursor/User/globalStorage/cursor.mcp/config.json - Windows:
%APPDATA%\Cursor\User\globalStorage\cursor.mcp\config.json - Linux:
~/.config/Cursor/User/globalStorage/cursor.mcp/config.json
Add this configuration:
{
"mcpServers": {
"local-voice-mcp": {
"command": "local-voice-mcp-server",
"args": [],
"env": {}
}
}
}
Or if using npx:
{
"mcpServers": {
"local-voice-mcp": {
"command": "npx",
"args": ["-y", "local-voice-mcp-server"],
"env": {}
}
}
}
3. Restart Cursor
After adding the configuration, restart Cursor to load the MCP server.
4. Test the Integration
Once Cursor is restarted, you can test the TTS functionality:
-
Open Cursor's AI chat
-
Ask Cursor to use the TTS tools:
Can you synthesize speech for "Hello, this is a test of the local voice MCP server"? -
Check TTS status:
What's the status of the TTS service? -
Test with paralinguistic tags:
Synthesize "[sigh] Welcome to the future of AI coding. [laugh] It's going to be amazing!" -
Test audio playback:
Play the audio file that was just generated -
Test volume control:
Play the audio file at 25% volume
5. Verify the Tools Are Available
You should see the following tools available in Cursor:
synthesize_text- For text-to-speech conversionplay_audio- For playing audio files through system audiotts_status- For checking service status
6. Troubleshooting
If the MCP server doesn't appear in Cursor:
- Check the logs: Look for error messages in Cursor's developer console
- Verify installation: Run
local-voice-mcp-serverdirectly in terminal to ensure it works - Check paths: Ensure the command path is correct in your configuration
- Restart Cursor: Sometimes a full restart is needed after configuration changes
- JSON parsing errors: If you see "Unexpected token" errors, ensure you're using the latest version with proper stdio logging
7. Expected Behavior
When working correctly:
- Cursor will be able to call the TTS tools
- You'll receive structured JSON responses with file paths
- Audio files will be saved to the temporary directory
- The TTS service will use the Chatterbox Turbo TTS engine
- Files can be played using system audio players
All responses are in structured JSON format with clear file paths, making it easy for MCP clients and AI agents to understand and work with the results.
Requirements
- Node.js 16+
- Python 3.10-3.12 (Python 3.13+ not yet supported by mlx-audio dependencies)
- PyTorch (for CUDA/CPU backends)
- For Apple Silicon:
pip install mlx-audio - For CUDA/CPU:
pip install chatterbox-tts
Important for Apple Silicon users: The mlx-audio package requires Python <3.13 due to dependency constraints. If your system Python is 3.13+, you'll need to use a conda environment:
# Create a Python 3.11 environment for Chatterbox
conda create -n chatterbox python=3.11
conda activate chatterbox
pip install mlx-audio
# Then set PYTHON_PATH in your MCP config to point to this environment
{
"mcpServers": {
"local-voice-mcp": {
"command": "npx",
"args": ["-y", "@codecraftersllc/local-voice-mcp"],
"env": {
"TTS_ENGINE": "chatterbox",
"PYTHON_PATH": "/path/to/miniconda3/envs/chatterbox/bin/python"
}
}
}
}
The service automatically detects your hardware and uses the optimal backend:
| Platform | Backend | Model |
|---|---|---|
| Apple Silicon (via MLX) | MLX | mlx-community/chatterbox-turbo-6bit |
| NVIDIA GPU (CUDA) | PyTorch | ChatterboxTurboTTS |
| CPU | PyTorch | ChatterboxTurboTTS (slower) |
Architecture
┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ MCP Client │ │ HTTP Client │ │ CLI Tool │
│ (Cursor, etc.) │ │ │ │ │
└─────────┬───────┘ └─────────┬────────┘ └─────────┬───────┘
│ │ │
│ stdio │ HTTP │ stdio
│ │ │
▼ ▼ ▼
┌─────────────────────────────────────────────────────────────┐
│ Local Voice MCP Server │
│ ┌─────────────────┐ ┌─────────────────────────────────┐ │
│ │ MCP Server │ │ HTTP Server │ │
│ │ (stdio) │ │ (Express.js) │ │
│ └─────────────────┘ └─────────────────────────────────┘ │
│ │ │
│ ┌─────────────────────────────────────────────────────────┐ │
│ │ TTS Tools & Services │ │
│ │ ┌─────────────────┐ ┌─────────────────────────────┐ │ │
│ │ │ ChatterboxService│ │ File Management │ │ │
│ │ │ │ │ (Cleanup & Security) │ │ │
│ │ └─────────────────┘ └─────────────────────────────┘ │ │
│ └─────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────┐
│ Python TTS │
│ (Chatterbox Turbo) │
└─────────────────────┘
License
MIT
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new functionality
- Ensure all tests pass
- Submit a pull request
Install configuration
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Local Voice MCP from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/local-voice-mcp)REPOSITORY STATS
Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
下载与拉取统计
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Related media design MCP Servers
Alternative and complementary servers in the same category

Liquid Composer is a browser-based Liquid Glass icon design tool that offers a local MCP server for agent-driven icon workflows.

agent-media makes short drama series and other short vertical videos from Claude, ChatGPT or Codex through one MCP connection, with OAuth sign-in and no API keys.
