mcp-agent-tts
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
mcp-agent-tts
General local text-to-speech MCP harness with switchable backends. The speech pipeline — queueing, sentence chunking, render-ahead buffering, WAV files, playback, replay, stop, history and the MCP tool surface — lives here once. Each synthesis engine is a backend module behind a small interface.
Backends shipped in this first version:
chatterbox — Resemble AI's Chatterbox family:
nano,turbo,multilingual,original. Supports reference-clip voice cloning and inline paralinguistic tags where the selected model has them.lfm3 — Liquid AI's LFM3-Omni-2B GGUF through a resident
llama-server/ttsendpoint. Fixedfemale/malevoices, 24 kHz WAV output, no reference-audio cloning.
For whom: anyone running local TTS models who wants one stable agent-facing tool surface instead of one MCP server per engine.
Status
The generic harness is based on the validated mcp-agent-chatterbox pipeline.
Chatterbox is now a backend; LFM3 is the second backend. Qwen3-TTS can be added
later without touching the queue or playback code.
Related MCP server: kokoro-tts
Install
Requires uv and Python 3.13.
uv syncThat installs the base harness only. Add the Chatterbox engine when needed:
uv sync --extra chatterboxLFM3 needs an installed llama.cpp build whose llama-server understands
LFM3-Omni GGUF plus its mmproj file. No Python package is installed for it.
Run the server with:
uv run python -m mcp_agent_ttsStart the resident synthesis worker separately:
uv run python -m mcp_agent_tts workerTool surface
Tool | Purpose |
| Queue text for rendering and playback. Accepts |
| Report configured backends, models, device/VRAM, worker state and LFM3 server state. Loads nothing. |
| List Chatterbox reference clips, or LFM3's fixed |
| Evict Chatterbox weights and stop a resident LFM3 server. |
| Cut off current playback and rendering. |
Examples:
speak("Hello there", backend="chatterbox", model="nano")
speak("Guten Tag", backend="chatterbox", model="multilingual", voice="narrator", language="de")
speak("Hello there", backend="lfm3", voice="male", language="en")If backend is omitted, model="lfm3" selects LFM3; otherwise the configured
default backend (chatterbox) is used.
Configuration
Settings live in .env in the project root. Copy .env.example and edit it.
Environment variables win over the file. The prefix is MCP_TTS_.
Core settings:
Variable | Default | Meaning |
|
| Default backend. |
|
| Default model within that backend. |
| empty | Default reference clip (Chatterbox) or LFM3 voice. |
|
| Rendered WAV files. |
|
| Chatterbox reference clips. |
|
| Worker and server logs. |
|
| Chatterbox device: |
| unset | Pin a CUDA ordinal for Chatterbox. |
|
| Loopback port for the resident worker. |
LFM3 settings:
Variable | Default | Meaning |
| empty | Absolute path to the LFM3 GGUF backbone. |
| empty | Absolute path to the LFM3 mmproj GGUF. |
|
| llama.cpp server binary. |
|
| Loopback port for its HTTP server. |
|
|
|
|
| Speech language code. |
|
| Layers offloaded to GPU. |
|
| Server context size. |
No absolute path is committed: put machine-specific paths in the ignored .env.
Architecture
src/mcp_agent_tts/
core pipeline: config.py, worker.py, speak.py, audio.py, playback.py,
output.py, names.py, server.py, tool_surface/
engine.py backend dispatcher (implements the pipeline's Synthesizer)
registry.py unified backend/model catalogue
voices.py compatibility shim for the Chatterbox clip scanner
backends/
chatterbox/ engine, model registry, reference-clip voices
lfm3/ resident llama-server /tts adapter, voices, languagesThe pipeline depends only on a synthesize() call returning wav,
sample_rate, device and elapsed_s. Backend-specific validation stays in
the tool surface before a job is queued; backend-specific rendering stays in
the backend module. There is no dynamic plugin loader: the backend table is a
plain dict, which is enough until a fourth backend justifies more.
Tests
uv run pytestLicense
MIT. See LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted text-to-speech MCP server: 66 voices in 9 languages, long-form narration, podcasts.
MCP server for Text-to-Speech
Remote text-to-speech MCP server with text_to_speech and list_voices tools. Free plan.
Free text-to-speech for any MCP client: one hosted endpoint, four engines, no API bill.
Related MCP Servers
AlicenseNot gradedqualityDmaintenanceEnables text-to-speech generation, voice cloning, dialogue creation, and other TTS operations through natural language in MCP-compatible AI assistants.10 npmMIT- AlicenseNot gradedqualityDmaintenanceEnables AI agents to generate high-quality speech with 54+ voices in multiple languages via MCP tools.21Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables voice-first interactions with AI agents and MCP tools, supporting speech input/output, STT/TTS, and a provider-independent agent core.1MIT
- AlicenseAqualityCmaintenanceEnables MCP clients to synthesize text into speech locally and play it through the machine's audio, with selectable voices and playback speed.244 PyPIApache 2.0