Skip to main content

Miragea MCP: voiceover, voice cloning and captions for Claude, Cursor and Codex

An MCP server that gives your AI agent a real voice toolkit: text of any length to speech in your saved or cloned voice, exact durations for every file, readable SRT/VTT captions from any local audio or video, and per-scene narration with durationInFrames and word-level captions for Remotion and other video timelines. Local stdio server, one line of config, no GPU. Voice and speech recognition by Miragea.

{
  "mcpServers": {
    "miragea": {
      "command": "uvx",
      "args": ["miragea-mcp"],
      "env": { "MIRAGEA_API_KEY": "your_key", "MIRAGEA_VOICE_ID": "optional_default_voice" }
    }
  }
}

Claude Code: claude mcp add miragea -e MIRAGEA_API_KEY=your_key -- uvx miragea-mcp. No uv? pip install miragea-mcp and use "command": "miragea-mcp". Check everything with uvx miragea-mcp --check.

Then just ask:

  • "Read this changelog aloud in my voice and save it as release-notes.mp3."
  • "Make captions for ~/Videos/talk.mp4." / "TikTok-style captions for clip.mov."
  • "Narrate these 5 scenes for my Remotion video and set each scene's durationInFrames."

Tools

Tool What it does Returns
check_setup Checks key, ffmpeg, saved voices, output folder; gives a fix for each problem status + problems
list_voices Voices saved in your Miragea account voice_id, name
speak Any length of text to speech (split at sentence ends under the 2,000-char API limit, joined back seamlessly). Saved voice, or clone from a public clip file path, exact seconds, chunks
transcribe Local audio/video to SRT + VTT: whole words (no mid-word splits), 2 x 42-char lines, min/max cue time; style="shorts" for 1-3 word uppercase captions srt/vtt paths, text, language
narrate_scenes One audio file per scene, seconds, durationInFrames (rounded up, never cut off), startFrame, a narration.json manifest; captions=true adds word-level captions.json in Remotion's Caption shape manifest

What it does for you automatically

  • Long text: chunked at sentence boundaries and stitched with a natural 120 ms pause. You never see the 2,000-character limit.
  • Durations: measured from the audio itself, so video timelines line up to the frame.
  • Captions: speech-recognition segments are rebuilt into whole words and re-flowed with broadcast rules.
  • Uploads: video files are reduced to a 16 kHz mono track before upload (fast, small).
  • Caching: the same text, voice and model is never billed twice; the same file is never transcribed twice.
  • Safety: existing files are never overwritten (name-2.mp3), the key is only read from the environment and never logged, failed audio tasks are refunded by Miragea, and network retries reuse the same idempotency key so a retry cannot double-charge.
  • Clear errors: every error comes back as {"error", "how_to_fix"} for the agent to act on.

Compared with other voice MCP servers

miragea-mcp ElevenLabs MCP Thin TTS wrappers (Edge, Kokoro, Azure...)
Local stdio server, maintained Yes Local server deprecated; hosted OAuth server instead Varies
Reads/writes files anywhere you point it Yes (default ~/Miragea) Local version restricted inputs to one base folder Usually output folder only
Returns exact audio duration Yes, every call No (callers had to measure it) Rarely
Text longer than one API request Automatic split and join Manual Varies
Captions (SRT/VTT) from local files Yes, reflowed whole words Separate speech-to-text tool No
Scene durations in frames + Remotion captions Yes (narrate_scenes) No No
Your own cloned voice Saved voice id or reference clip Yes (paid plans) Stock voices only
Billing Pay-as-you-go Miragea points Subscription credits Free / cloud account

Sources: ElevenLabs MCP README (deprecation notice) and the remotion-superpowers changelog (base-folder restriction, no duration returned).

Configuration

Env var Required Meaning
MIRAGEA_API_KEY yes Your key from miragea.ai
MIRAGEA_VOICE_ID no Default saved voice, so the agent never has to ask
MIRAGEA_REF_URL, MIRAGEA_REF_TEXT no Default reference clip (public URL) and its exact words
MIRAGEA_OUTPUT_DIR no Where files go when no path is given (default ~/Miragea)

Requirements: Python 3.10+. ffmpeg is optional (without it audio is saved as WAV and videos are uploaded whole).

FAQ

Which MCP clients work? Any stdio MCP client: Claude Desktop, Claude Code, Cursor, Windsurf, VS Code (Copilot agent mode), Codex CLI, Gemini CLI, Cline, Zed.

How do I use my own voice? Save your voice once in your Miragea account and set MIRAGEA_VOICE_ID, or pass reference_audio_url (a public link to a clean 5-20 s clip) with reference_text (its exact words, which uses the cheaper 1x rate). A direct upload of local reference clips is planned by Miragea; until then the reference must be a public URL.

What does it cost? Speech is billed per character, captions at 3 points per audio second (live rates: GET https://miragea.ai/v1/capabilities). Cached repeats are free.

Is my key safe? It is read from the server's environment only, never written to disk, logged or returned.

Can I clone anyone's voice? No. Only clone your own voice or one you have permission to use.

Where are files saved? Where you ask, or in MIRAGEA_OUTPUT_DIR (default ~/Miragea). The cache lives in ~/Miragea/.cache and can be deleted at any time.

  • miragea-skills: Agent Skills for screen-recording voiceover, Shorts, captions and Remotion narration.
  • Retake: fix a flubbed voiceover line in your own voice (CLI + MCP).
  • HeadVox: script to voiceover with word-aligned captions.

MIT License.

Metadata

Release files for miragea-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for miragea-mcp 0.1.0
File Size Uploaded Provenance Actions
miragea_mcp-0.1.0.tar.gz 20.6 kB Without provenance Details for miragea_mcp-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for miragea-mcp 0.1.0
File Interpreter ABI Platform Actions
miragea_mcp-0.1.0-py3-none-any.whl Python 3 none any Details for miragea_mcp-0.1.0-py3-none-any.whl

Total release size: 38.5 kB

Release files / miragea_mcp-0.1.0.tar.gz

Download URL miragea_mcp-0.1.0.tar.gz
Size 20.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2fe514ab20f98e5b9ccac7e4dfa7f456afd51ce406b9a16e3d161368ea784331
BLAKE2b-256 checksum
How to use checksums
a342ca9e75004e32e6081fb02f3076dfd05bb64a68651c30a9d05639ba896153
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / miragea_mcp-0.1.0-py3-none-any.whl

Download URL miragea_mcp-0.1.0-py3-none-any.whl
Size 18.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ea9ff56ac92869131cefc2485c078225047eab4aa2178b457bad13863e18bed
BLAKE2b-256 checksum
How to use checksums
430af5cf566103fc6a35ae76bc8126b9dbd987d590a4d8ce868bae1b12a8ca38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Security for miragea-mcp 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page