A Rust CAD application with an MCP server for creating, inspecting and rendering drawings, either headlessly or through a connection to the desktop app.

MCP TTS Server
A Model Context Protocol server that provides unified text-to-speech access to the local Kokoro engine and the cloud-based OpenAI TTS API.
WHAT IT DOES
- •Exposes a unified tts tool that converts text to speech using either the Kokoro engine or OpenAI TTS, with optional engine, speed, voice, and instructions parameters.
- •Streams audio playback in real time and supports stop control that clears pending TTS requests from the queue.
- •Provides research-based example voice instructions for OpenAI TTS across categories including general, accents, characters, emotions, and narration.
- •Supports voice selection for both engines and speed adjustment.
BEST FOR
- •Adding spoken output of LLM responses to MCP hosts such as Claude Desktop.
- •Users who want a local TTS option via Kokoro without relying on a cloud service.
- •Customizing narration or character voices using natural language instructions with OpenAI TTS.
ABOUT MCP_TTS_SERVER
MCP TTS Server is cataloged as an MCP server attributed to kristofferv98. A Model Context Protocol server that provides unified text-to-speech access to the local Kokoro engine and the cloud-based OpenAI TTS API. It is categorized under media design. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
HOW TO INSTALL
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
LICENSE
Catalog license label: Apache License 2.0. Check the source repository's current license and terms before using, modifying or distributing this software.
能力检查器
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
Tools (0)
暂无可展示的已审核记录。这不表示上游不支持此能力。
Resources (0)
暂无可展示的已审核记录。这不表示上游不支持此能力。
Prompts (0)
暂无可展示的已审核记录。这不表示上游不支持此能力。
Newsletter subscriptions are not open yet
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Community Reviews
Reviews for MCP TTS Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
FREQUENTLY ASKED QUESTIONS
Which TTS engines does this server support?
It supports the local Kokoro TTS engine and cloud-based OpenAI TTS.
Can playback be stopped and pending speech cleared?
Yes, the server provides a stop function that halts current audio and clears queued TTS requests.
Is an OpenAI API key required?
An OpenAI API key is required for OpenAI TTS functionality.
上游原版 README
README.md · 998b1ab8c0b1 · 采集于 2026-11-13 14:05:57 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
MCP TTS Server
A versatile TTS (Text-to-Speech) server built on the Model Context Protocol (MCP) framework. This server provides access to multiple TTS engines through a unified interface:
- Kokoro TTS - High-quality local TTS engine
- OpenAI TTS - Cloud-based TTS via OpenAI's API
Features
- 🌐 Multiple TTS engines in one unified server
- 🎧 Real-time streaming audio playback
- 🔄 MCP protocol support for seamless integration with Claude and other LLMs
- 🎛️ Configurable voice selection for both engines
- 💬 Support for voice customization via natural language instructions (OpenAI)
- ⚡ Speed adjustment for both TTS engines
- 🛑 Playback control for stopping audio and clearing the queue
Installation
Prerequisites
- Python 3.10 or higher
- uv package manager
- OpenAI API key (for OpenAI TTS functionality)
Quick Install
# Clone the repository
git clone https://github.com/kristofferv98/MCP_tts_server.git
cd MCP_tts_server
# Create a virtual environment and install dependencies
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv pip install -e .
Configuration
Create a .env file based on the provided .env.example:
cp .env.example .env
Edit the .env file to add your OpenAI API key:
OPENAI_API_KEY=your_openai_api_key_here
Integration with Claude Desktop
To use this server with Claude Desktop:
-
Install the server:
fastmcp install ./tts_mcp.py --name tts -
Alternatively, you can manually add the server to Claude Desktop's configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Add this entry to the
mcpServerssection:"kokoro_tts": { "command": "uv", "args": [ "--directory", "/path/to/MCP_tts_server", "run", "tts_mcp.py" ] }Example configuration using the full path to uv:
"kokoro_tts": { "command": "/Users/username/.local/bin/uv", "args": [ "--directory", "/Users/username/Documents/MCP_Servers/MCP_tts_server", "run", "tts_mcp.py" ] } - macOS:
MCP Function Definitions
The server exposes the following MCP tools:
Main TTS Function
{
"description": "Convert text to speech using the preferred engine and streams the speech to the user. The base voice for the AI is the Kokoro engine, to keep AI's personality consistent. This unified function provides access to both Kokoro TTS (local) and OpenAI TTS (cloud API).",
"name": "tts",
"parameters": {
"properties": {
"text": {"title": "Text", "type": "string"},
"engine": {"default": "kokoro", "title": "Engine", "type": "string"},
"speed": {"default": 1, "title": "Speed", "type": "number"},
"voice": {"default": "", "title": "Voice", "type": "string"},
"instructions": {"default": "", "title": "Instructions", "type": "string"}
},
"required": ["text"]
}
}
Parameters:
- text (required): Text to convert to speech
- engine (optional): TTS engine to use - "kokoro" (default, local) or "openai" (cloud)
- speed (optional): Playback speed (0.8-1.5 typical)
- voice (optional): Voice name to use (engine-specific)
- instructions (optional): Voice customization instructions for OpenAI TTS
Stop Playback Function
{
"description": "Stops the currently playing audio (if any) and clears all pending TTS requests from the queue. Relies on the background worker detecting the cancellation signal.",
"name": "tts_stop_playback_and_clear_queue",
"parameters": {
"properties": {}
}
}
Voice Examples Function
{
"description": "Provides research-based examples of effective voice instructions for OpenAI TTS.",
"name": "tts_examples",
"parameters": {
"properties": {
"category": {"default": "general", "title": "Category", "type": "string"}
}
}
}
Categories:
- general
- accents
- characters
- emotions
- narration
Get TTS Instructions Function
{
"description": "Fetches TTS instructions by calling get_voice_info.",
"name": "get_tts_instructions",
"parameters": {
"properties": {}
}
}
Direct Usage
The primary way to use this server is through Claude Desktop or other MCP supported integration as described above. However, you can also run the server directly for testing purposes:
# Run with the uv environment manager
uv run python tts_mcp.py
# Or use the simplified Kokoro-only version
uv run python simple_tts_mcp.py
This will start the MCP server, making it available for connection.
Available Voices
Kokoro TTS
- Default voice:
af_heart
OpenAI TTS
- Available voices:
alloy,ash,ballad,coral,echo,fable,onyx,nova,sage,shimmer - Default model:
gpt-4o-mini-tts
Development and Testing
To test the server locally during development:
fastmcp dev ./tts_mcp.py
This will start the MCP Inspector interface where you can test the server's functionality.
Implementation Details
The server is implemented using FastMCP and follows best practices for MCP server development:
- Unified Interface: A single function supports both Kokoro and OpenAI engines
- Streaming Support: Audio is streamed directly to the client when possible
- Fallback Mechanisms: File-based playback when streaming isn't available
- Voice Customization: Support for natural language instructions with OpenAI TTS
- Lifespan Management: Proper initialization and cleanup of resources
Troubleshooting
- No Audio Output: Check your system's audio configuration
- OpenAI TTS Failures: Verify your API key is valid and has TTS access permissions
- Server Not Found: Make sure the MCP server is correctly registered in your MCP host
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Install configuration
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP TTS Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp_tts_server)REPOSITORY STATS
Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
下载与拉取统计
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Related media design MCP Servers
Alternative and complementary servers in the same category

Liquid Composer is a browser-based Liquid Glass icon design tool that offers a local MCP server for agent-driven icon workflows.

agent-media makes short drama series and other short vertical videos from Claude, ChatGPT or Codex through one MCP connection, with OAuth sign-in and no API keys.
