better-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.
better-tts-mcp
A feature-rich MCP (Model Context Protocol) server for Microsoft Edge Text-to-Speech. No API key required. 300+ voices in 50+ languages. Zero configuration.
Features
List Voices — Browse 300+ voices in 50+ languages, filter by language and gender
Text-to-Speech — Convert text to MP3 with customizable rate, volume, and pitch
Subtitles — Generate SRT subtitle files alongside audio
Batch Processing — Synthesize multiple texts in one call
Multi-Voice Synthesis — Mix multiple voices in one output MP3 using
[voice]textmarkers
Related MCP server: yuppie-mcp-tts
Quick Start
Installation
# Using uvx (recommended)
uvx better-tts-mcp
# Or install via pip
pip install better-tts-mcpClaude Code
claude mcp add edge-tts -- uvx better-tts-mcpClaude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"edge-tts": {
"command": "uvx",
"args": ["better-tts-mcp"]
}
}
}If Claude Desktop cannot find uvx, it may be using a different PATH from your terminal.
Run:
which uvxThen replace "command": "uvx" with the absolute path from the command output, for example:
{
"mcpServers": {
"edge-tts": {
"command": "/Users/yourname/.local/bin/uvx",
"args": ["better-tts-mcp"]
}
}
}Available Tools
list_voices
List available Edge TTS voices with optional filtering.
Parameter | Type | Required | Description |
| string | No | Filter by language code, e.g. |
| string | No | Filter by gender: |
text_to_speech
Convert text to speech and save as MP3.
Parameter | Type | Required | Default | Description |
| string | Yes | — | Text to convert |
| string | No |
| Voice name |
| string | No | — | Speed, e.g. |
| string | No | — | Volume, e.g. |
| string | No | — | Pitch, e.g. |
| string | No |
| Output directory |
text_to_speech_with_subtitles
Same parameters as text_to_speech. Generates both MP3 and SRT files.
batch_text_to_speech
Convert multiple texts to speech, each saved as a separate MP3 file.
Parameter | Type | Required | Default | Description |
| string[] | Yes | — | List of texts to convert |
| string | No |
| Voice name (shared for all texts) |
| string | No | — | Speed (shared) |
| string | No | — | Volume (shared) |
| string | No | — | Pitch (shared) |
| string | No |
| Output directory |
text_to_speech_multi_voice
Convert text with voice markers into one merged MP3 file.
Format example:
[zh-CN-XiaoxiaoNeural]你好。[en-US-AriaNeural]Hello.Parameter | Type | Required | Default | Description |
| string | Yes | — | Input text with optional |
| string | No |
| Voice used when no marker is present |
| string | No | — | Speed adjustment |
| string | No | — | Volume adjustment |
| string | No | — | Pitch adjustment |
| string | No |
| Output directory |
MCP Integration Contract (for external callers)
This server follows the MCP tool-call flow used by standard MCP clients:
initialize-> capability negotiationtools/list-> discover tool names and JSON schemastools/call-> invoke a tool by name with arguments
Transport:
Default transport is
stdio(entrypoint:better-tts-mcp)
Tool call example (tools/call)
{
"method": "tools/call",
"params": {
"name": "text_to_speech",
"arguments": {
"text": "Hello from MCP",
"voice": "en-US-AriaNeural",
"rate": "+0%",
"volume": "+0%",
"pitch": "+0Hz",
"output_dir": "./outputs"
}
}
}Typical successful result text:
Audio saved to: /absolute/path/to/outputs/20260307_123456_Hello_from_MCP.mp3Return-value conventions
All tools return human-readable text in
content.All tools also return machine-readable
structuredContentwith stable fields (ok,message, etc.) for robust LLM/tooling integration.Paths returned by synthesis tools are absolute paths.
text_to_speech_with_subtitlesreturns two lines (audio path + subtitle path).batch_text_to_speechreturns a summary header plus one output path per item.
Error behavior
Malformed requests (JSON-RPC or schema-level) are protocol errors.
Input validation and business/runtime failures are returned as tool execution errors with
isError: true, so LLM clients can self-correct and retry.Error payloads include
error_code,error_message, andretryableinstructuredContent.
Common error codes:
EMPTY_TEXTEMPTY_TEXTSEMPTY_TEXT_ITEMEMPTY_TEXT_SEGMENTSINVALID_RATEINVALID_VOLUMEINVALID_PITCHSYNTHESIS_FAILED
Stability notes for API consumers
Tool names are treated as stable API surface:
list_voicestext_to_speechtext_to_speech_with_subtitlesbatch_text_to_speechtext_to_speech_multi_voice
New optional parameters may be added in future versions without breaking existing callers.
Requirements
Python >= 3.10
Internet connection (for accessing Microsoft Edge TTS service)
License
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
Turn text into speech, browse voices, and get MP3 audio with optional SRT or WebVTT captions.
1Text to speech and transcription for any AI model: MP3 voiceovers, audio and YouTube to text.
Text to speech in 200+ languages, voice cloning, voice design and SRT captions.
Text to speech in 149 languages: MP3 links from any assistant. Free without an account.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to convert text to speech using Microsoft Edge's Text-to-Speech service with customizable voice options, speech rate, volume, and pitch parameters.MIT
- AlicenseAqualityDmaintenanceProvides text-to-speech synthesis using Microsoft Edge's free TTS engine, supporting multiple voices, languages, and audio output options (base64 or file).3MIT
- FlicenseAqualityDmaintenanceConverts text or transcripts into MP3 audio using Microsoft Edge's free neural voices. Provides text-to-speech and voice listing tools with no API key required.2-
- FlicenseNot gradedqualityBmaintenanceEnables generating finished MP3 podcast audio from scripts using local TTS engines, with configurable voices and speech speed, plus text-to-speech and voice listing tools.-