mcp-kokoro-tts
mcp-kokoro-tts
ローカルKokoro-82Mテキスト読み上げMCPサーバーです。エージェントがspeakを呼び出すと、音声を合成してあなたのマシンで再生するため、ハーネスが話すのを聞くことができます。
あらゆるMCPクライアントで動作します:Claude Desktop、Claude Code、Cursor、VS Code、opencode、Clineなど。短い設定ブロックを1つ追加するだけで、APIキーは不要です。音声合成はKokoro-82Mでローカルに実行されます。
初回起動時に、サーバーはPyPIにない2つのものを用意します: Kokoro-82Mの重みデータ(約312 MB)をローカルキャッシュへ、spaCyの英語モデル(en_core_web_sm)をサーバーが実行しているのと同じPython環境へ。この2つ目のインストールが必要なのは、KokoroのG2PパイプラインがspaCyを読み込むためです。uvx / uv tool環境には、このパッケージが配置しない限りモデルが存在しません。
インストール
クライアントのMCP設定に追加します:
{
"mcpServers": {
"mcp-kokoro-tts": {
"command": "uvx",
"args": ["mcp-kokoro-tts"]
}
}
}Python 3.12とuvが必要です。最初のサーバー起動時に、Kokoroの重みデータとspaCy英語モデルが自動的に用意されます。
MCPサーバーを起動せずに両方を事前にダウンロードするには:
uvx mcp-kokoro-tts-provisionRelated MCP server: MCP TTS Server
エージェントに呼び出させる
AGENTS.md / CLAUDE.md / システムプロンプトに1行追加します:
When the user wants to hear something spoken aloud, call the `speak` tool with clear, natural text.ツール
speak
音声を合成し、WAVファイルを書き出して、ローカルで再生します。
パラメータ | 必須 | 説明 |
| はい | 読み上げるテキスト(最大500文字) |
| いいえ | 音声ID(例: |
| いいえ | 再生速度の倍率(デフォルト |
list_voices
利用可能なKokoroの音声と、現在選択されているデフォルトを一覧表示します。
音声の選択
解決順:
TTS_VOICE環境変数 — 音声IDまたは絶対パスの.ptパスパッケージの
voices/フォルダ内で名前がdefaultで始まるファイルvoices/内の最初の.ptファイル(アルファベット順)モデルに同梱の
af_heart音声
{
"mcpServers": {
"mcp-kokoro-tts": {
"command": "uvx",
"args": ["mcp-kokoro-tts"],
"env": {
"TTS_VOICE": "af_heart"
}
}
}
}環境変数
変数 | 説明 |
| デフォルトの音声IDまたは絶対パスの |
| モデルキャッシュディレクトリを上書き |
| Hugging Faceハブのキャッシュディレクトリを上書き |
| 生成されたWAVファイルのディレクトリ |
|
|
| ダウンロードを高速化するためのオプションのHugging Faceトークン |
プラットフォーム
OS | 合成 | 再生 |
macOS | 対応 |
|
Linux | 対応 |
|
Windows | 対応 | PowerShell |
espeak-ngはオプションです。英語はこれなしで動作します。語彙外(out-of-vocabulary)のカバレッジを向上させ、一部の非英語言語を扱うにはインストールしてください。
公開
バージョンにタグを付けるとGitHub Actionsのpublish.ymlが実行され、PyPIにアップロードした後、MCP Registryにアップロードします。
PyPIへの公開には、リポジトリのシークレットPYPI_TOKEN(PyPI APIトークン)を使用します。GitHubのtrusted publishingはPyPIプロジェクト側でも設定できます。このワークフローはトークンで認証するため、初回リリースはpending-publisherのマッチングに依存しません。
リリース
pyproject.tomlのversionを上げます(まだタグを付けない場合はserver.jsonも)コミットしてタグを付けます:
ギgit tag v0.1.2 && git push origin v0.1.2GitHub Actionsが
publish.ymlを実行します:release— 型チェック、テスト、wheel/sdistのビルドpypi-publish—PYPI_TOKENでPyPIにアップロードmcp-registry— OIDC → MCP Registry(PyPI成功後)
開発
cd mcps-tts
python3.12 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
pyright
pytest
python -m mcp_kokoro_ttsライセンス
Apache-2.0です。LICENSEとNOTICEを参照してください。Kokoro-82Mモデルの重みデータは、Apache-2.0ライセンスのもとで別途ダウンロードされます。
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