
Text to Speech
io.github.Engr-FaizanAliPublished by GitHub account Engr-FaizanAliv0.4.1Updated Oct 24, 2026
Reads text aloud locally on Windows, macOS, and Linux. No API key, account, or cloud service.
Overview
A local text-to-speech MCP server that lets an assistant read text aloud through the operating system's built-in speech engine, with no API key or cloud service
- What you can do
- Speak text aloud: one tool, speak_text, reads a supplied string (1 to 50,000 characters) through the host's speech synthesizer and returns after playback finishes. Playback is queued first-in-first-out, one utterance at a time, with a bounded queue. Works with the built-in engines: Windows SAPI, macOS say, or espeak-ng on Linux. Optional backends (Piper, Transformers MMS, a local HTTP endpoint) can be selected by configuration. Ships an agent narration skill that defines when and how an assistant should narrate visible updates and final answers.
- When to use it
- Useful when you want an assistant to read answers, user-provided text, progress updates, or accessibility content aloud on your own machine, and you prefer offline, zero-cost speech over a cloud TTS API.
- Requirements
- Runs locally over stdio as a PyPI package, typically launched with uvx. Needs Python 3.10 or newer and an MCP client that supports stdio servers. Windows and macOS need nothing extra; on Linux install espeak-ng plus an audio player such as alsa-utils. Optional backends need their own models, binaries, dependencies, or endpoint.
Installation
In SourceWeft
- Open Text to Speech in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Text to Speech MCP Server
[PyPI version] [Downloads] [Python versions] [License: MIT] [CI]
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 on Windows, 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.
Why this one
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 an agent narration skill, so an assistant knows how to narrate, not just that it can.
Features
- Local playback through the platform's built-in synthesizer by default:
Windows SAPI, macOS
say, 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 MCP
stdiotransport 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 macOS
saycommand are proprietary components of their operating systems; they are not open-source speech engines.espeak-ngis separately licensed open-source software.
Requirements
- 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:
On Debian or Ubuntu that is typically:
Set TEXT_TO_SPEECH_BACKEND or TEXT_TO_SPEECH_PLAYER to override either
choice. If a required command is missing, the server reports which one and how
to install it rather than failing silently.
Install
Configure an MCP client to run the published PyPI package:
For MCP clients that accept command-based server configuration, use:
Some clients use TOML, JSON, or a graphical settings page. Use
uvx text-to-speech-mcp as the server command and restart the client after
changing its configuration.
Install from source
Then configure the client to run text-to-speech-mcp directly.
Prompt Examples
Read arbitrary text:
Read the final answer:
Read visible intermediate progress updates in order:
The text_to_speech portion is an example client-side server name. Clients may
display a different namespace while keeping the tool name speak_text.
Tool Contract
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.
Privacy
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 a text-to-speech-mcp directory inside the system
temporary directory (%TEMP% on Windows, /tmp on macOS and Linux) and
deleted after playback unless TEXT_TO_SPEECH_KEEP_AUDIO=true is set.
The http backend 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.
Optional Backends
The default requires no configuration. TEXT_TO_SPEECH_BACKEND is unset and the
server selects sapi, say, or espeak to match the host platform.
To pin one explicitly, or to use a backend that is not built into the OS, set
TEXT_TO_SPEECH_BACKEND to sapi, say, espeak, piper,
transformers_mms, or http. The last three require their own local model,
binary, Python dependencies, or endpoint. TEXT_TO_SPEECH_FALLBACK_BACKEND
names a second backend to try if the first fails. See
backend configuration.
Agent Narration Skill
A speech tool alone does not tell an assistant when or how to speak. Left to improvise, agents narrate hidden reasoning, skip the parts you actually needed, or read a paraphrase instead of what is on screen.
skills/project-tts-responder/SKILL.md
is a ready-made narration policy built on speak_text. Copy it into your
project's .claude/skills/ directory:
It also handles the parts that are easy to get wrong:
- Interactive questions are narrated before the 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 Compatibility
- 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's
mcp-namecomment - Registry namespace:
io.github.Engr-FaizanAli/text-to-speech
License
MIT. See LICENSE.
Source: README.md at commit 6d20209
Tools
0Version history
1- v0.4.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts