speech-mcp-server
Local MCP server for neural text-to-speech using Kokoro ONNX engine on CPU, supporting SSML tags, multiple voice profiles, and zero-GPU operation for low-latency speech synthesis.
README
speech-mcp-server

Local Stdio Model Context Protocol (MCP) server wrapping the Kokoro ONNX Neural TTS Engine with real-time Voice Vector Algebra, Central Wisconsin Vernacular Lexicon Overrides, and thread-clamped zero-VRAM CPU execution.
"Neural voice vectors mixed mathematically. Zero VRAM overhead. Pure local performance."
🔊 Key Architectural Features
- Voice Vector Algebra Engine: Mix multiple voice profiles using linear vector algebra directly in Python: $$\text{Voice} = (\text{am_adam} \times 0.65) + (\text{bm_lewis} \times 0.30) + (\text{am_michael} \times 0.05)$$
- Central Wisconsin Vernacular Dict: Built-in phonetic lexicon mapper enforcing regional dialect pacing and word pronunciations (
bag$\to$bayg,roof$\to$ruff,creek$\to$crick,know'm'sayin). - Zero GPU VRAM Overhead: Operates entirely on CPU via ONNX Runtime Execution Provider. Keeps GPU completely idle (0% load, 0 MB VRAM).
- Thread-Clamped CPU Execution: Throttled to 2 worker threads (
OMP_NUM_THREADS = 2) to eliminate CPU spikes while maintaining sub-200ms latency. - Kokoro ONNX Engine: High-fidelity 24kHz neural TTS with multiple base voice profiles (
am_adam,af_bella,bm_lewis,am_michael). - MCP Stdio Transport: Full Model Context Protocol compatibility for AI agents and LLM tool integration (
/speak).
🚀 Quickstart
Prerequisites
- Node.js v18+
- Python 3.10+ with
kokoro-onnx,onnxruntime,soundfile,numpy
Installation & Build
git clone https://github.com/yavru421/speech-mcp-server.git
cd speech-mcp-server
npm install
npm run build
Usage
python synth.py "Lexicon overrides active for DuckDB and WASAPI." "am_adam*0.65 + bm_lewis*0.30" "0.94"
Configuration (MCP Client)
Add to your mcpServers configuration:
{
"speech-mcp-server": {
"command": "node",
"args": ["<path_to_repo>/build/index.js"]
}
}
🔒 License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.