Text to Speech
About
Reads text aloud locally on Windows, macOS, and Linux using the operating system's built-in speech engine. No API key, no account, no special hardware required, and no cloud service — text never leaves the machine.
Details
- Author
- engr-faizanali
- Categories
- Productivity, Other
Jump to
Setup
Install Text to Speech in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/engr-faizanali/text-to-speech-mcp
Follow the installation instructions in the repository README, then restart your MCP client.
Give your AI assistant a voice — locally, with no API key, no account, and no cloud service.
Text to Speech is an open-source Model Context Protocol (MCP) server that lets AI assistants read text aloud on the user's computer. It uses the speech synthesizer already present on the host operating system, so nothing you ask it to say ever leaves your machine.
Runs onWindows, macOS, and Linux. Install is one line:
The server exposes one model-controlled tool:
Use it for user-provided text, assistant answers, accessibility workflows, or spoken progress updates while an agent works.
Most text-to-speech MCP servers wrap a cloud API, which means an account, a key, per-character billing, and your text leaving the machine. This one uses the speech engine your operating system already ships, so it works offline, costs nothing, and keeps text local — which matters if you work anywhere that regulates where data may go.
It also ships anagent narration skill, so an assistant knowshowto narrate, not just that it can.
- Local playback through the platform's built-in synthesizer by default: Windows SAPI, macOSsay, orespeak-ngon Linux.
- No cloud API and no API key for the default setup.
- FIFO playback: concurrent requests are spoken one at a time, in order.
- Blocking tool completion: each call returns after its audio finishes.
- Bounded input and queue sizes to prevent unbounded resource use.
- Temporary generated WAV files are removed after playback by default.
- Standard MCPstdiotransport through the official Python SDK.
- Optional Piper, Transformers MMS, and local HTTP backends for advanced users.
The MCP server source is open source under the MIT License. Windows SAPI and the macOSsaycommand are proprietary components of their operating systems; they are not open-source speech engines.espeak-ngis separately licensed open-source software.
- Python 3.10 or newer.
- An MCP client that supports stdio MCP servers.
- uv/uvxis recommended for package-based MCP installation.
Per platform, for the zero-configuration default:
SetTEXT_TO_SPEECH_BACKENDorTEXT_TO_SPEECH_PLAYERto override either choice. If a required command is missing, the server reports which one and how to install it rather than failing silently.
Configure an MCP client to run the published PyPI package:
For MCP clients that accept command-based server configuration, use:
command = "uvx" args = ["text-to-speech-mcp"] startup_timeout_sec = 30 tool_timeout_sec = 300 enabled = true
Some clients use TOML, JSON, or a graphical settings page. Useuvx text-to-speech-mcpas the server command and restart the client after changing its configuration.
git clone https://github.com/Engr-FaizanAli/text-to-speech-mcp.git cd text-to-speech-mcp python -m pip install .
Then configure the client to runtext-to-speech-mcpdirectly.
Use the Text to Speech tool to read aloud: The deployment completed successfully.
Use the Text to Speech tool to read your final response aloud before displaying it.
Read visible intermediate progress updates in order:
Use the text_to_speech MCP server's speak_text tool for spoken progress updates. For every meaningful intermediate update that you display to me: 1. Call speak_text with the exact update text you are about to display. 2. Wait for the call to finish before producing or speaking the next update. 3. Then display the same update in text. Also call speak_text with the exact final answer before displaying it. Never narrate hidden reasoning, chain-of-thought, secrets, credentials, raw tool output, terminal logs, or source code unless I explicitly ask you to read that content aloud. Do not invoke speech calls in parallel. If the tool is unavailable, continue normally in text and report the failure once.
Thetext_to_speechportion is an example client-side server name. Clients may display a different namespace while keeping the tool namespeak_text.
The tool is model-controlled under MCP. The user decides when to ask the model to call it, and the MCP client may show or require approval for tool calls.
With any of the built-in backends, text is passed from the MCP client to a local Python process and then to the operating system's speech components. It is not sent to this project, an external API, or a cloud TTS provider. Generated WAV files are written to atext-to-speech-mcpdirectory inside the system temporary directory (%TEMP%on Windows,/tmpon macOS and Linux) and deleted after playback unlessTEXT_TO_SPEECH_KEEP_AUDIO=trueis set.
Thehttpbackend is the exception: whether text leaves the machine depends entirely on the endpoint you configure.
Do not ask an AI assistant to speak secrets, credentials, private keys, hidden reasoning, or sensitive tool output.
The default requires no configuration.TEXT_TO_SPEECH_BACKENDis unset and the server selectssapi,say, orespeakto match the host platform.
To pin one explicitly, or to use a backend that is not built into the OS, setTEXT_TO_SPEECH_BACKENDtosapi,say,espeak,piper,transformers_mms, orhttp. The last three require their own local model, binary, Python dependencies, or endpoint.TEXT_TO_SPEECH_FALLBACK_BACKENDnames a second backend to try if the first fails. Seebackend configuration.
A speech tool alone does not tell an assistantwhenorhowto speak. Left to improvise, agents narrate hidden reasoning, skip the parts you actually needed, or read a paraphrase instead of what is on screen.
It also handles the parts that are easy to get wrong:
- Interactive questions are narratedbeforethe picker opens.An interactive question tool is itself the pause, and its options live in the tool's parameters rather than in visible text — so any rule that narrates "once the options are visible" fires only after the user has already answered. This is the most common way narration silently fails.
- Speaks exactly what is on screen, never a paraphrase.
- Never speaks hidden reasoning, secrets, credentials, or raw tool output.
- One playback call per turn, never parallel, with defined behaviour when a call fails.
The skill applies when you ask for audio. To make a project narrate every response, say so in that project's own agent instructions — for example "narrate every response in Batch mode unless I opt out".
- MCP transport:stdio
- MCP tool implementation: official Python MCP SDK
- Registry metadata:server.jsonusing the 2025-12-11 schema
- Package registry: PyPI
- Registry ownership marker: this README'smcp-namecomment
- Registry namespace:io.github.Engr-FaizanAli/text-to-speech
Trigger macOS notifications, sounds, and text-to-speech from an AI assistant.
Integrates with the Minimax API for AI-powered image generation and text-to-speech.
Have your agent start dictation (OSX only)
Cinema-grade video production MCP server — 8 tools for recording, editing, effects, captions, TTS, and smart screenshots. Built on ffmpeg + Playwright.
Search, read, and create speech-to-text transcripts on-device with the Whisper Notes Mac app — 100% offline, no open ports.
Generates text-to-speech audio with automatic playback using the Chatterbox TTS model.
Local-first voice toolkit: STT (25 langs, ~19x faster than Whisper on Apple Silicon via CoreML, ONNX fallback), TTS (Kokoro + Vosk-TTS + 180 macOS voices, SSML), VAD, language detection (107 langs). Rust engine, OpenClaw skill. No cloud, no API keys.
A text-to-speech server using the macOS say command.
Local, on-device TTS for Claude & Cursor. No API key, no cloud. 10 voices, 31 languages, ~820ms on Apple Silicon.
A server for text-to-speech (TTS) using the VoiceVox engine.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.




