agents-voice
This MCP server gives AI agents text-to-speech voice output capabilities.
Use
voice_speakto synthesize and play a concise 1–2 sentence spoken summary, optionally overriding provider, model, or voice.Use
voice_play_latestto replay the most recent speech summary stored in the voice inbox.Use
voice_stopto immediately silence any currently playing speech audio.Use
voice_statusto check backend status, active provider, configured keys, and bridge availability.
Provides text-to-speech through ElevenLabs using configurable voices, synthesizing and playing concise spoken summaries to the user.
Provides text-to-speech through Google Gemini 2.5 TTS (e.g. gemini-2.5-flash-preview-tts) with selectable voices, synthesizing and playing spoken summaries to the user.
Provides text-to-speech through OpenAI (e.g. the gpt-4o-mini-tts model), synthesizing and playing concise spoken summaries of an agent's work to the user.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agents-voice Speak: Deployment complete, no errors."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Overview
agents-voice equips AI coding agents (Antigravity, Cursor, Zed, Claude, agents-harness) with a native voice tool (voice_speak). Instead of reading long code diffs or screen-scraping text, the agent formulates a concise, natural spoken summary (1–2 sentences) directly to the developer's ears upon completing tasks.
Highlights
Multi-Provider Support: Out-of-the-box support for Azure Speech (48kHz DragonHD), OpenRouter (
gpt-audioPCM16 streaming,gpt-4o-mini-tts), OpenAI, Google Gemini 2.5 TTS, ElevenLabs, and custom OpenAI-compatible local endpoints (e.g., Kokoro, LocalAI).Zero Heavy Dependencies: Pure Python standard library (
urllib.request,winsound/winmmon Windows, native OS audio players on macOS/Linux). Noffmpeg, nopygame, no C compiler required.Standalone or HUD Synergy: Plays directly through OS audio when standalone. If the Dumbo desktop overlay is running (
127.0.0.1:12480), optionally routes through Dumbo's Veadio HUD for synchronized word-by-word highlighted playback.Local Credentials: Kept securely on the local machine in
~/.agents/voice.jsonwith fallback discovery from environment variables and existing Dumbo settings.
Related MCP server: Voice MCP Server
Installation
pip install agents-voiceOr install in editable mode from source:
git clone https://github.com/Lolaplex/agents-voice.git
cd agents-voice
pip install -e .Configuration
Credentials and settings are saved to ~/.agents/voice.json:
Azure Speech (Default)
agents-voice config --provider azure --key "YOUR_AZURE_KEY" --region "swedencentral" --voice "de-DE-Seraphina:DragonHDLatestNeural"OpenRouter (Steerable & GPT Audio Streaming)
agents-voice config --provider openrouter --key "YOUR_OPENROUTER_KEY" --model "openai/gpt-4o-mini-tts" --voice "marin"OpenAI
agents-voice config --provider openai --key "YOUR_OPENAI_KEY" --model "gpt-4o-mini-tts" --voice "marin"Google Gemini
agents-voice config --provider gemini --key "YOUR_GEMINI_KEY" --model "gemini-2.5-flash-preview-tts" --voice "Kore"ElevenLabs
agents-voice config --provider elevenlabs --key "YOUR_ELEVENLABS_KEY" --voice "JBFqnCBsd6RMkjVDRZzb"Custom / Local Endpoint (e.g. Kokoro, LocalAI)
agents-voice config --provider custom --base-url "http://127.0.0.1:8880/v1" --voice "af_heart"MCP Server Setup
Add to your MCP configuration (e.g. ~/.cursor/mcp.json, ~/.agents/mcp.json, or Claude Desktop config):
{
"mcpServers": {
"agents-voice": {
"command": "python",
"args": ["-m", "agents_voice", "serve"]
}
}
}MCP Tools
Tool | Description |
| Synthesizes and plays or buffers a concise 1–2 sentence spoken summary directly to the user. |
| Plays the most recent speech summary stored in the voice inbox. |
| Immediately terminates any currently playing speech audio. |
| Reports backend status, configured providers, active voice, mode, and bridge availability. |
CLI Reference
Command | Description |
| Speaks text directly via the active provider. |
| Speaks text and waits until playback finishes. |
| Plays a quick test speech sample to verify audio output. |
| Plays the latest voice message stored in the mailbox. |
| Runs the background hotkey daemon listening for the global shortcut (e.g. |
| Cuts off any running audio playback immediately. |
| Prints active provider configuration and status JSON. |
| Updates provider, model, voice, speed, region, mode, hotkey, chime, or API keys. |
| Runs the FastMCP server via stdio transport and launches hotkey listener if in inbox mode. |
License
MIT License. See LICENSE for details.
Available Tools
4 toolsvoice_play_latestA
Plays the most recent speech summary stored in the voice inbox.
Inputs: no named parameters. Returns: result
voice_speakA
Speak a short, natural voice summary (1-2 sentences) directly to the user's ears.
Use this tool at the end of substantive turns to tell the user what was done, without reading code, diffs, or markdown formatting. Keep it concise, natural, and friendly.
Args: message: The concise spoken text (e.g. 'Hab den Bug gefixt und Tests sind grün.'). provider: Optional override ('openrouter', 'openai', 'gemini', 'elevenlabs', 'azure', 'custom'). model: Optional model override (e.g. 'openai/gpt-4o-mini-tts', 'elevenlabs/eleven-v4-turbo'). voice: Optional voice override (e.g. 'marin', 'cedar', 'Kore', 'de-DE-Seraphina:DragonHDLatestNeural').
Inputs: message (required), model, voice, provider. Returns: result
voice_statusA
Checks the status of the voice output system, active provider, configured keys, and bridge.
Inputs: no named parameters. Returns: result
voice_stopA
Immediately stops any currently playing speech audio if the user requests silence.
Inputs: no named parameters. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
The tools are mostly clearly distinct: speak emits new speech, stop halts playback, status reports system state, and play_latest replays the latest stored summary. The only mild ambiguity is between voice_speak and voice_play_latest, since both result in spoken audio, but their descriptions distinguish creation from replay.
All tools use a consistent snake_case voice_verb pattern: voice_play_latest, voice_speak, voice_status, voice_stop. The shared prefix and predictable verb style make the surface easy to scan.
Four tools is well-scoped for a voice-output helper: speak, replay latest, check status, and stop. Each tool has a clear purpose and none feels superfluous.
The set covers the core lifecycle: producing speech, replaying the latest summary, checking provider/status, and stopping playback. Minor gaps like pause/resume or listing voice history are not essential for the apparent agent workflow.
Maintenance
Related MCP Connectors
Audio for your agent: transcribe, speak, translate, summarise, plus sound effects and music.
Turn articles and text into narrated audio, playlists and podcast feeds from your AI agent.
Text-to-speech for agents: neural voices, 20 sats per credit, paid in Bitcoin. No account needed.
AI Voice Production Agent: picks from 30+ TTS models, fixes pronunciation, validates every line.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables coding agents to speak aloud using text-to-speech functionality. Works with agents running inside devcontainers and provides configurable voice settings for creating chatty AI companions.6MIT
- AlicenseNot gradedqualityDmaintenanceEnables 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.1MIT
- AlicenseAqualityBmaintenanceEnables an AI assistant to have its recent code actions summarized aloud through system speakers, using offline native voices or cloud neural voices. It supports asynchronous playback and voice listing so users can hear what the agent did without reading the full response.3MIT
- AlicenseNot gradedqualityBmaintenanceEnables agents to synthesize speech through a local OpenAI-compatible TTS service, exposing stdio tools that speak text aloud, toggle voice mode on or off, and list available voices without extra dependencies. Its settings stay synchronized with an optional sidebar panel, so one server-side switch governs all automatic narration.MIT