mcp-kokoro-tts
mcp-kokoro-tts
Lokaler Kokoro-82M-Text-to-Speech-MCP-Server. Wenn Ihr Agent speak aufruft, synthetisiert er Sprache und spielt sie auf Ihrem Rechner ab, sodass Sie den Harness sprechen hören können.
Funktioniert mit jedem MCP-Client: Claude Desktop, Claude Code, Cursor, VS Code, opencode, Cline und mehr. Ein kurzer Konfigurationsblock, keine API-Schlüssel – die Synthese läuft lokal mit Kokoro-82M.
Beim ersten Start stellt der Server zwei Dinge bereit, die nicht auf PyPI sind: die Kokoro-82M-Gewichte (~312 MB) in einen lokalen Cache und das englische spaCy-Modell (en_core_web_sm) in dieselbe Python-Umgebung, in der der Server läuft. Diese zweite Installation ist erforderlich, da Kokoros G2P-Pipeline spaCy lädt und eine uvx-/uv tool-Umgebung das Modell nicht enthält, es sei denn, dieses Paket legt es dort ab.
Installation
Fügen Sie Folgendes zur MCP-Konfiguration Ihres Clients hinzu:
{
"mcpServers": {
"mcp-kokoro-tts": {
"command": "uvx",
"args": ["mcp-kokoro-tts"]
}
}
}Erfordert Python 3.12 und uv. Der erste Serverstart stellt Kokoro-Gewichte und das englische spaCy-Modell automatisch bereit.
Um beide vorab herunterzuladen, ohne den MCP-Server zu starten:
uvx mcp-kokoro-tts-provisionRelated MCP server: MCP TTS Server
Den Agenten dazu bringen, es aufzurufen
Fügen Sie eine Zeile zu Ihrer AGENTS.md / CLAUDE.md / Systemaufforderung hinzu:
When the user wants to hear something spoken aloud, call the `speak` tool with clear, natural text.Werkzeuge
speak
Synthetisiert Sprache, schreibt eine WAV-Datei und spielt sie lokal ab.
Param | Erforderlich | Beschreibung |
| ja | Zu sprechender Text (max. 500 Zeichen) |
| nein | Stimm-ID (z. B. |
| nein | Wiedergabegeschwindigkeits-Multiplikator (Standard |
list_voices
Listet verfügbare Kokoro-Stimmen und die aktuell ausgewählte Standardstimme auf.
Auswahl Ihrer Stimme
Auflösungsreihenfolge:
TTS_VOICE-Umgebungsvariable – Stimm-ID oder absoluter.pt-PfadEine Datei im
voices/-Ordner des Pakets, deren Name mitdefaultbeginntErste
.pt-Datei invoices/(alphabetisch)Die gebündelte
af_heart-Stimme des Modells
{
"mcpServers": {
"mcp-kokoro-tts": {
"command": "uvx",
"args": ["mcp-kokoro-tts"],
"env": {
"TTS_VOICE": "af_heart"
}
}
}
}Umgebungsvariablen
Variable | Beschreibung |
| Standard-Stimm-ID oder absoluter |
| Modell-Cache-Verzeichnis überschreiben |
| Hugging-Face-Hub-Cache-Verzeichnis überschreiben |
| Verzeichnis für generierte WAV-Dateien |
| Auf |
| Optionales Hugging-Face-Token für schnellere Downloads |
Plattformen
OS | Synthese | Wiedergabe |
macOS | ja |
|
Linux | ja |
|
Windows | ja | PowerShell |
espeak-ng ist optional. Englisch funktioniert ohne es; installieren Sie es für eine bessere Abdeckung von Wörtern außerhalb des Vokabulars und einige nicht-englische Sprachen.
Veröffentlichung
Das Taggen einer Version führt GitHub Actions publish.yml aus, das zuerst auf PyPI und dann in die MCP-Registry hochlädt.
Die Veröffentlichung auf PyPI verwendet das Repo-Geheimnis PYPI_TOKEN (ein PyPI-API-Token). GitHub Trusted Publishing kann auch auf dem PyPI-Projekt konfiguriert werden; dieser Workflow authentifiziert sich mit dem Token, sodass eine erste Veröffentlichung nicht von der Übereinstimmung mit einem ausstehenden Publisher abhängt.
Release
versioninpyproject.tomlerhöhen (undserver.json, falls Sie noch nicht taggen)Committen und taggen:
git tag v0.1.2 && git push origin v0.1.2GitHub Actions führt
publish.ymlaus:release– Typprüfung, Tests, Wheel/sdist bauenpypi-publish– Upload zu PyPI mitPYPI_TOKENmcp-registry– OIDC → MCP-Registry (nach erfolgreichem PyPI-Upload)
Entwicklung
cd mcps-tts
python3.12 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
pyright
pytest
python -m mcp_kokoro_ttsLizenz
Apache-2.0. Siehe LICENSE und NOTICE. Die Kokoro-82M-Modellgewichte werden separat unter ihrer Apache-2.0-Lizenz heruntergeladen.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseCqualityDmaintenanceEnables users to convert text into high-quality audio by accessing the OpenAI Text-to-Speech API. It supports customizable model selection and voice options for synthesized speech generation via the MCP protocol.1MIT
- FlicenseNot gradedqualityDmaintenanceProvides text-to-speech conversion through a unified MCP interface, supporting both local Kokoro and cloud OpenAI TTS engines with streaming audio, voice selection, and customization via natural language instructions.7
- AlicenseAqualityCmaintenanceMCP server for text-to-speech using macOS say command, enabling speech synthesis, audio file generation, and voice management.512MIT

leanvox-mcpofficial
AlicenseNot gradedqualityDmaintenanceEnables text-to-speech generation, voice cloning, dialogue creation, and other TTS operations through natural language in MCP-compatible AI assistants.16MIT
Related MCP Connectors
MCP server exposing the AceDataCloud Fish Audio API (text-to-speech with voice conditioning)
Hosted pay-per-use TTS: 54 neural voices, 9 languages incl. Brazilian Portuguese. $10 free credits.
Generate Suno AI music (v5.5) from any MCP client. Async; billed only on success.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mrfqcentic/mcp-kokoro-tts'
If you have feedback or need assistance with the MCP directory API, please join our Discord server