Voice MCP

Voice MCP

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.

Category
访问服务器

README

voice-mcp

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

Requirements

  • macOS with Apple Silicon (M1+)
  • Python 3.11+
  • uv
  • A working microphone and speakers

Setup

git clone <this-repo> && cd voice-mcp
uv sync

First run downloads the models from HuggingFace (~2.5 GB total):

  • STT: mlx-community/Voxtral-Mini-4B-Realtime-2602-int4 (Voxtral Realtime, 4-bit quantized)
  • TTS: mlx-community/Kokoro-82M-bf16 (Kokoro, 82M params)

Configure Claude Code

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"]
    }
  }
}

Usage

Voice input

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).

Voice output

Claude will speak conversational responses automatically. Code, data, and technical details stay in the terminal.

Change voice

Use /voice to browse all 54 available voices across 9 languages, or /voice am_echo to switch directly.

Tools

listen(duration?)

Records audio from the microphone and returns a transcription.

  • Default: VAD-based — waits for speech, stops after silence
  • With duration: fixed-length recording (seconds)
  • STT languages: ar, de, en, es, fr, hi, it, ja, ko, nl, pt, ru, zh

speak(text, voice?, speed?, lang?)

Speaks text aloud through the computer's speakers.

  • voice: Kokoro voice ID (default: af_heart). See /voice for options
  • speed: playback speed multiplier (default: 1.0)
  • lang: language code — a American English, b British English, e Spanish, f French, h Hindi, i Italian, j Japanese, p Portuguese, z Mandarin

How it works

The 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.

  • STT: Voxtral Realtime (4B params, int4) — streams audio through a causal encoder-decoder with adaptive RMS normalization
  • TTS: Kokoro (82M params, bf16) — ALBERT text encoder → prosody predictor → iSTFTNet vocoder
  • VAD: webrtcvad (mode 3) with energy-based fallback
  • Audio cues: synthesized tones via sounddevice — rising chime = listening, falling chime = done
  • Notifications: macOS banners via hooks when listening starts/stops and when speaking

Models are pre-loaded at server startup via FastMCP's lifespan hook, so the first tool call is fast.

Demos

Turn your sound on — this demo has voice!

Claude Code

https://github.com/user-attachments/assets/22493ae6-2da9-4a06-b8ef-be203c98b35d

OpenAI Codex

https://github.com/user-attachments/assets/09b6dceb-d83d-46a9-a2fd-d66fa3bc1186

Mistral Vibe

https://github.com/user-attachments/assets/7530373f-719d-46c5-8a35-2337e8121356

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选
mcp-server-qdrant

mcp-server-qdrant

这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。

官方
精选