mcp-speak-when-done
An MCP server that makes AI agents speak a brief summary of every response out loud using TTS.
README
mcp-speak-when-done
An MCP server that makes AI agents speak a brief summary of every response out loud.
When installed, the agent sees a speak_when_done tool with instructions to call it at the end of every response with a 1-3 sentence spoken summary.
Install
uvx mcp-speak-when-done
Claude Desktop / Claude Code
Add to your MCP configuration:
{
"mcpServers": {
"speak-when-done": {
"command": "uvx",
"args": ["mcp-speak-when-done"],
"env": {
"OPENAI_API_KEY": "your-api-key"
}
}
}
}
Works with any OpenAI-compatible TTS API. The provider is auto-detected from your API key:
| Key prefix | Provider | Default model | Default voice |
|---|---|---|---|
gsk_ |
Groq | canopylabs/orpheus-v1-english | troy |
| (other) | OpenAI | tts-1 | alloy |
Requirements
One audio player must be installed: ffplay (from ffmpeg), mplayer, or vlc.
Configuration
All settings are optional environment variables:
| Variable | Description | Default |
|---|---|---|
OPENAI_API_KEY |
API key (required) | — |
SPEECH_VOICE |
Voice name | auto-detected from key |
SPEECH_SPEED |
Speech speed | 1.0 |
SPEECH_MODEL |
TTS model | auto-detected from key |
SPEECH_API_URL |
API endpoint | auto-detected from key |
SPEECH_MAX_RETRIES |
Retry count | 3 |
SPEECH_TIMEOUT |
Request timeout (s) | 30 |
Remote Use (SSH + SSE)
If you run Claude on a remote server but want audio on your local machine:
1. On your local machine (has speakers + API key):
OPENAI_API_KEY="your-key" mcp-speak-when-done --transport sse
This starts an SSE server on port 8000 (override with FASTMCP_PORT).
2. SSH tunnel from the remote server to your local machine:
ssh -R 8000:localhost:8000 remote-server
3. On the remote server, configure Claude with proxy mode:
{
"mcpServers": {
"speak-when-done": {
"command": "uvx",
"args": ["mcp-speak-when-done"],
"env": {
"SPEECH_PROXY_URL": "http://localhost:8000/sse"
}
}
}
}
No API key needed on the remote side. If your local machine is off, the tool silently returns success — Claude keeps working normally.
| Variable | Description | Default |
|---|---|---|
SPEECH_PROXY_URL |
SSE server URL | — (unset = direct mode) |
SPEECH_PROXY_TIMEOUT |
Proxy timeout (s) | 10 |
License
GPL-3.0-or-later
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.