Voice MCP Server
Enables AI assistants to speak aloud by generating and playing audio through the system output. Supports multiple TTS providers, playback queue management, and configurable voice profiles.
README
Voice MCP Server
MCP stdio server that lets Codex speak on demand. Codex starts the local stdio
process, calls voice_speak, the server generates the audio, plays it through
the system output, returns the tool result, and then waits for the next MCP
request from the client.
Quick Start
npm install
npm run build
By default the server uses a local mock provider when ELEVENLABS_API_KEY is not
set. To use ElevenLabs:
export ELEVENLABS_API_KEY="..."
npm run build
The transport is MCP over stdio; Codex starts dist/index.js directly.
You do not run this as a daemon or keep a separate terminal open.
Example MCP client configuration:
{
"mcpServers": {
"voice": {
"command": "node",
"args": ["./dist/index.js"],
"cwd": "/Users/francescperez/Documents/voice mcp server",
"env": {
"ELEVENLABS_API_KEY": "...",
"ELEVENLABS_VOICE_ID": "hpp4J3VqNfWAUOO0d1Us",
"ELEVENLABS_MODEL_ID": "eleven_flash_v2_5",
"ELEVENLABS_FORMAT": "mp3"
}
}
}
}
The same block is available in .mcp.example.json. Keep real secrets in your
local .env or .mcp.json; both are ignored by git.
Tools
voice_speak: generate and play speech.voice_wait: wait for a playback id to finish.voice_stop: stop current playback and clear pending items.voice_status: return queue/current/history state.voice_is_speaking: return whether audio is currently playing or being prepared.voice_set_profile: set the active voice profile.voice_list_profiles: list configured voice profiles.
voice_speak accepts:
{
"text": "Hello",
"waitUntilFinished": true,
"voiceId": "optional voice id",
"speed": 1.0,
"volume": 1.0,
"policy": "enqueue"
}
Queue policies are enqueue, interrupt, replace, and discard.
Resources
voice://history: transcript/playback history as JSON.voice://status: current playback status as JSON.
Notifications
The server emits custom JSON-RPC notifications:
voice.startedvoice.progressvoice.finishedvoice.stoppedvoice.error
Configuration
Configuration can come from environment variables or from a file pointed at by
VOICE_MCP_CONFIG or --config. JSON is supported, plus a flat key = value
or key: value file for the keys shown in the design spec.
Example:
provider = "elevenlabs"
api_key = "${ELEVENLABS_API_KEY}"
voice_id = "hpp4J3VqNfWAUOO0d1Us"
model_id = "eleven_flash_v2_5"
format = "mp3"
volume = 1.0
speed = 1.0
output_device = "default"
cache = true
Only ELEVENLABS_API_KEY is needed for normal ElevenLabs use. Everything else
has a default:
VOICE_PROVIDER: auto-selectselevenlabswhenELEVENLABS_API_KEYexists; otherwise usesmock.ELEVENLABS_VOICE_ID: defaults tohpp4J3VqNfWAUOO0d1Us.ELEVENLABS_MODEL_ID: defaults toeleven_flash_v2_5.ELEVENLABS_MODEL: legacy alias forELEVENLABS_MODEL_ID.ELEVENLABS_FORMAT: defaults tomp3;mp3maps to ElevenLabsmp3_44100_128.VOICE_VOLUME: defaults to1.0.VOICE_SPEED: defaults to1.0.VOICE_OUTPUT_DEVICE: defaults todefault.AUDIO_PLAYER_CMD: optional player command override.VOICE_MCP_CONFIG: optional external config file.VOICE_CACHE: defaults totrue.VOICE_CACHE_DIR: defaults to.voice-cache.
Audio Playback
On macOS the server uses afplay. On Linux it uses aplay for WAV and
ffplay for other formats. You can override the command with
AUDIO_PLAYER_CMD.
The mock provider emits WAV audio. ElevenLabs emits MP3 by default.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.