thai-tts-mcp
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.
thai-tts-mcp
Stdio MCP server with one tool, speak_thai(text, out_path="", play=True), that speaks Thai text offline with pythainlp/MakHamTTS (Kokoro-82M Thai, ONNX on CPU, 24 kHz, female voice). Handy for spoken notifications from Claude Code or any other MCP client.
Register with Claude Code
Requires uv and Python 3.12+.
claude mcp add -s user thai-tts -- uvx --from git+https://github.com/Max2535/thai-tts-mcp thai-tts-mcp
claude mcp list # thai-tts should show "Connected"Drop -s user to register it for the current project only.
The first call downloads about 312 MB of model files from Hugging Face into the HF cache (~/.cache/huggingface), pinned to a fixed revision. After that the server loads them from the cache and makes no network calls.
Related MCP server: MCP TTS Server
Tool
Arg | Default | Meaning |
| required | Thai text, 1 to 5000 chars. Split on whitespace into chunks of at most 150 chars, synthesized and joined with a 0.15 s gap. |
|
| Save to this |
|
| Play through the default audio device. One playback at a time (process-wide lock). |
Playback uses winsound on Windows, afplay on macOS and aplay on Linux.
Develop
uv sync
uv run pytest -q # the smoke tests download the model on first runKnown limitations
The model sometimes adds an "r" cluster to short syllables, for example กะ sounds like กระ and ตอน like ตรอน. Output varies on every call, so a retry often fixes it.
English words and digits are read with Thai pronunciation ("deploy" becomes ดีพลอย, "150" becomes หนึ่งร้อยห้าสิบ). Acronyms read better spelled out in Thai.
The first call takes a few seconds to load the model. Synthesis runs on CPU and is serialized by a lock.
Built on
mcp2.x, whereFastMCPis namedMCPServer.
License
Code: Apache-2.0 (see
LICENSE).Model
pythainlp/MakHamTTS: Apache-2.0.Voice data
pythainlp/MakHamTTS-dataset: CC-BY-4.0. Credit PyThaiNLP / MakHamTTS when you publish audio made with it. The dataset card does not say where the recordings came from, so check it yourself before commercial use.Dependencies: PyThaiTTS (Apache-2.0), onnxruntime (MIT), mcp (MIT).
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
MCP server for Text-to-Speech
AI voice generation: text-to-speech and voice cloning from any MCP client.
Hosted text-to-speech MCP server: 66 voices in 9 languages, long-form narration, podcasts.
MCP server exposing the AceDataCloud Fish Audio API (text-to-speech with voice conditioning)
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-
- AlicenseNot gradedqualityCmaintenanceEnables MCP-capable chat clients to synthesize speech from text, convert it with a local RVC voice model, and render the result in an inline audio player.MIT
- AlicenseNot gradedqualityCmaintenanceEnables Claude and other MCP clients to generate local, offline text-to-speech audio in 31 languages, manage and install voices, and save or play audio files.Apache 2.0