edge-tts-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| EDGE_TTS_RATE | No | Default speech rate, for example '+15%'. | +0% |
| EDGE_TTS_PITCH | No | Default speech pitch, for example '+5Hz'. | +0Hz |
| EDGE_TTS_VOICE | No | Default TTS voice. CLI equivalent: --voice. | ru-RU-SvetlanaNeural |
| EDGE_TTS_FFMPEG | No | Path to the FFmpeg executable, or 'ffmpeg' if available in PATH. Required for OGG/Opus output. CLI equivalent: --ffmpeg. | ffmpeg |
| EDGE_TTS_VOLUME | No | Default speech volume, for example '-10%'. | +0% |
| EDGE_TTS_OUTPUT_DIR | No | Output directory for generated audio and sidecar files. CLI equivalent: --output-dir. | ~/.edge-tts-mcp/output |
| EDGE_TTS_ALLOW_SIDECARS | No | Enables subtitles and word timings when set to 1/0, true/false, yes/no, or on/off. CLI equivalent: --disable-sidecars. | 1 |
| EDGE_TTS_MAX_CONCURRENT | No | Maximum concurrent synthesis operations, range 1-16. CLI equivalent: --max-concurrent. | 2 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Create local speech audio for the client to deliver. Use list_voice to choose a voice when the task specifies a language/gender. Use get_capabilities for local limits/defaults. For ordinary speech request only audio; use ogg for Telegram voice notes. Only request subtitles or word timings when needed for the user's task. This server only creates files; use the client's other tools for delivery. Check success and warnings before using any returned path.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_capabilitiesA | Read local speech formats, optional artifacts and defaults; no network request. ffmpeg_available checks executable presence, not libopus support. Telegram delivery is the client's responsibility. Long text uses edge-tts internal chunking; increase the tool/client timeout for longer jobs. |
| list_voiceA | List Microsoft voices; filter by locale prefix (ru or ru-RU) and gender. Pass a returned ShortName as the tts voice. No filter lists all voices. Query searches name/locale and service-supplied tags. Offset/limit can page results. Tags are descriptive metadata, not supported SSML styles. |
| ttsA | Generate MP3 or OGG/Opus (requires FFmpeg) and return a local file path. Rate/volume: signed percentage, e.g. +10%. Pitch: signed Hz, e.g. -5Hz. Ordinary speech/Telegram: leave subtitles=none and word_timings=false. Request srt/vtt only for captions; request word_timings only for per-word highlighting/editing. Missing boundary events return audio with warnings, never estimated timings. Explicit voice/rate/volume/pitch override server defaults. Choose rate directly for the task, e.g. +15% or -10%. Optional target_duration_seconds fits audio duration with FFmpeg, verified by FFprobe. Omitted parameters inherit config.py ENV defaults (built-in tempo 0.5–2.0). Set tempo_min/tempo_max for the task (immutable technical limits 0.5–2.0). Bounds are never widened automatically; retry explicitly to change them. Unreachable targets return target_duration_unreachable with required tempo and bounds, not original audio. Without a target, tempo bounds do not change audio. Check duration_fitting.target_met and warnings; precise sync/natural speech are not guaranteed. Timings are rescaled using the applied tempo. Successful requests create audio; subtitles and word timings are optional sidecar files. Timeout includes queue wait, retries, synthesis, conversion and sidecars. Up to 100000 characters; max_audio_duration_seconds limits audio duration independently of the operation timeout. Targets must not exceed that duration limit; oversized output is not trimmed or published. for long jobs increase timeout and client's deadline or shorten text. Check success/warnings before using audio_path, subtitle_path or word_timings_path. Paths are local to the MCP host, not uploaded. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 3 tools
The three tools have clearly distinct roles: get_capabilities reports local capabilities/defaults, list_voice discovers voices, and tts synthesizes audio. There is no meaningful overlap or ambiguity in tool selection.
get_capabilities and list_voice follow a clear verb_noun pattern, while tts is an acronym/domain term rather than verb_noun. The deviation is minor and still highly readable.
Three tools are well-scoped for a focused TTS server: discover voices, inspect capabilities/defaults, and synthesize audio. Each tool earns its place without bloat.
The core TTS lifecycle is covered, including voice listing, capability/default discovery, synthesis formats, timing sidecars, and duration fitting. Minor operational gaps exist around long-running job/status or output-file management, but they are largely documented or client-side responsibilities.