loading…
Search for a command to run...
loading…
Enables bidirectional voice interaction for Claude Code using local speech-to-text and text-to-speech models optimized for Apple Silicon. It provides tools to l
Enables bidirectional voice interaction for Claude Code using local speech-to-text and text-to-speech models optimized for Apple Silicon. It provides tools to listen to user speech via microphone and speak responses aloud through system speakers.
Bidirectional voice MCP server for Claude Code. Adds listen() and speak() tools so Claude can hear you and talk back — all running locally on Apple Silicon via mlx-audio.
User speaks → listen() → mic + VAD → Voxtral Realtime STT → text to Claude
Claude responds → speak(text) → Kokoro TTS → AudioPlayer → speakers
git clone <this-repo> && cd voice-mcp
uv sync
First run downloads the models from HuggingFace (~2.5 GB total):
mlx-community/Voxtral-Mini-4B-Realtime-2602-int4 (Voxtral Realtime, 4-bit quantized)mlx-community/Kokoro-82M-bf16 (Kokoro, 82M params)The repo includes .mcp.json so Claude Code auto-discovers the server. Just open Claude Code from the project directory:
cd voice-mcp
claude
On first use, Claude Code will prompt you to approve the MCP server.
To use from a different project, add to that project's .mcp.json:
{
"mcpServers": {
"voice": {
"type": "stdio",
"command": "uv",
"args": ["--directory", "/path/to/voice-mcp", "run", "server.py"]
}
}
}
Tell Claude "listen to me" or use the /listen slash command. You'll hear a rising chime when the mic is active — speak naturally, and recording stops automatically after 1.5s of silence (falling chime).
Claude will speak conversational responses automatically. Code, data, and technical details stay in the terminal.
Use /voice to browse all 54 available voices across 9 languages, or /voice am_echo to switch directly.
listen(duration?)Records audio from the microphone and returns a transcription.
duration: fixed-length recording (seconds)speak(text, voice?, speed?, lang?)Speaks text aloud through the computer's speakers.
af_heart). See /voice for optionsa American English, b British English, e Spanish, f French, h Hindi, i Italian, j Japanese, p Portuguese, z MandarinThe server runs as a stdio subprocess managed by Claude Code. Audio I/O (mic + speakers) happens in the server process; only text crosses the MCP protocol.
Models are pre-loaded at server startup via FastMCP's lifespan hook, so the first tool call is fast.
Turn your sound on — this demo has voice!
https://github.com/user-attachments/assets/22493ae6-2da9-4a06-b8ef-be203c98b35d
https://github.com/user-attachments/assets/09b6dceb-d83d-46a9-a2fd-d66fa3bc1186
https://github.com/user-attachments/assets/7530373f-719d-46c5-8a35-2337e8121356
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"voice-mcp": {
"command": "npx",
"args": []
}
}
}