miragea-shorts
miragea-shorts is an open-source faceless video maker and MCP server. It turns a short scene script (JSON or Markdown) into a finished vertical video for YouTube Shorts, TikTok and Instagram Reels: AI voiceover from the Miragea API, a big on-screen keyword per scene, word-by-word highlighted captions, plus an SRT file and a thumbnail. It runs on a laptop with ffmpeg: no GPU, no stock-footage key, no second LLM key. Use it from the command line, or let Claude, Cursor, Codex or any MCP client write the script and call it for you.
Full-quality video with sound (16 s, 1080x1920, made by the command in "Quick start"): docs/media/honey-short.mp4. Speech recognition on the finished audio returns the script word for word, so the voice and captions line up with the text.
Quick start
pipx install miragea-shorts # or: uvx --from miragea-shorts miragea-shorts ...
export MIRAGEA_API_KEY=... # create a key at https://miragea.ai/workspace/api
miragea-shorts doctor # checks key, network and ffmpeg (free)
miragea-shorts voices # your saved voices
miragea-shorts plan examples/honey.json --voice "My Voice" # validate + estimate credits (free)
miragea-shorts make examples/honey.json --voice "My Voice" -o honey.mp4
You get honey.mp4, honey.srt, honey.jpg (thumbnail) and honey.json (what was made and what it cost in credits).
Needs Python 3.10+ and ffmpeg with libass (brew install ffmpeg / apt install ffmpeg).
A script is just scenes:
{"title": "Honey never spoils",
"scenes": [
{"id": "hook", "keyword": "Honey never spoils", "text": "Here is a food that never goes bad. Honey."},
{"id": "why", "keyword": "Why?", "text": "It is so dry and so acidic that bacteria simply cannot grow in it."},
{"id": "cta", "keyword": "Follow for more", "text": "Follow for one tiny fact every day.", "color": "#0f766e"}
]}
Markdown works too: every # Heading is a scene and doubles as its on-screen keyword; a line like [laughs] adds a delivery tag.
Per scene you can also set image (a local JPG/PNG with a slow Ken Burns zoom), color (#RRGGBB) and tags.
Use it from an AI agent (MCP)
claude mcp add miragea-shorts -e MIRAGEA_API_KEY=your-key -- uvx --from miragea-shorts miragea-shorts-mcp
miragea-shorts config cursor|claude-desktop|vscode|windsurf prints the matching JSON snippet. Tools: shorts_guide,
list_voices, list_tags, plan_short (free), make_short. The agent writes the script itself, so you never need a second LLM key.
Then ask: "Make a 30-second faceless short about why honey never spoils."
If your agent supports Miragea's audio skill, tell it: Install https://miragea.ai/skills/miragea-audio/install.md.
How it works
- Script: 4-8 scenes, one idea each (
miragea-shorts guideprints the writing rules for you or your agent). - Plan: validates scenes and the voice, estimates credits. Free, and nothing is generated.
- Voice: one Miragea request per scene, in parallel, with deterministic idempotency keys. Finished scenes are cached by content, so editing one line only pays for that line, and a retry never pays twice.
- Timing: each scene lasts exactly as long as its real audio. Words are spread across it by length and punctuation (an estimate, good to a few hundred milliseconds for short scenes; no speech recognition needed).
- Render: ffmpeg draws a gradient (or your image with a slow zoom), the keyword headline and the highlighted captions, mixes the voice (and optional
--musicat a low level) and burns it all into an H.264/AAC MP4.
Real output
The numbers above come from one real run (docs/media/honey-short.json). Credits depend on word count: 43 words cost 43 credits here.
Options
| Option | Meaning |
|---|---|
--voice |
Saved voice name, actor:<id>, or https://sample.wav|exact words spoken |
--model |
expressive (default, supports delivery tags) or standard |
--theme |
midnight, sunset, forest, mono (background gradients) |
--size, --fps |
Default 1080x1920 at 30 fps; any even size works (e.g. 1080x1080) |
--highlight |
Colour of the spoken word, default #FFE600 |
--music FILE |
Background track, mixed quietly under the voice |
--max-credits N |
Refuse to start if the estimate is higher |
--preview |
Free dry run with placeholder tones, to check layout and timing |
Environment: MIRAGEA_API_KEY (required), MIRAGEA_BASE_URL (default https://miragea.ai/v1), MIRAGEA_OUTPUT_DIR, MIRAGEA_DEFAULT_MODEL, MIRAGEA_CONCURRENCY.
How it compares
Figures read from GitHub mirrors on 2026-12-02. "Voice" is what the project ships by default.
| Project | Form | Stars | License | Voice | Needs |
|---|---|---|---|---|---|
| miragea-shorts | CLI + MCP server | new | MIT | Miragea API (saved or cloned voices) | ffmpeg, one API key |
| short-video-maker | REST + MCP server | ~1.5k | MIT | Local Kokoro TTS | Pexels key, Docker/GPU recommended; last push 2025-06 |
| MoneyPrinterTurbo | Web UI + API | ~146k | MIT | Edge TTS and others | LLM key, stock-footage key |
| MoneyPrinterV2 | Python app | ~33k | AGPL-3.0 | KittenTTS (local) | LLM key, Selenium, ImageMagick |
Those projects do things this one does not: stock-footage search, automatic uploading, a visual UI. miragea-shorts is narrower on purpose: a scriptable, reproducible renderer your agent can drive in three calls, with no stock-footage account and no local model to install.
FAQ
How do I make a faceless YouTube Short with AI?
Write 4-8 scenes, run miragea-shorts make script.json --voice "My Voice", upload the MP4. An agent can do all of it through the MCP server.
Do I need a GPU or a stock-footage API key? No. Voices come from the Miragea API and the video is drawn by ffmpeg (gradient or your own images). There is no local model.
Can it use my own voice or a cloned voice? Yes. Use a saved Miragea voice, or a public sample URL plus the exact words spoken in it. Only clone voices you have the right to use.
Are the captions exact? Scene boundaries are exact (they come from the real audio length). Word highlights inside a scene are estimated from word length and punctuation, which is accurate enough for 5-10 second scenes. If you need recognition-grade timing, run the finished audio through Miragea's subtitle recognition and burn that SRT instead.
How do I add b-roll or my own pictures?
Give a scene an image; it gets a slow zoom. Stock-footage search is intentionally not included.
Is it free?
The code is MIT-licensed. Voice generation uses credits on your Miragea account; plan and --preview cost nothing.
Does it work with Claude, Cursor or Codex? Yes, via MCP (see above). Any MCP client that supports stdio servers works.
Can I make horizontal or square video?
Yes: --size 1920x1080 or --size 1080x1080.
Troubleshooting
missing_api_key: create a key at https://miragea.ai/workspace/api and exportMIRAGEA_API_KEY.unknown_voice/missing_voice: runmiragea-shorts voicesand pass a name oractor:<id>.ffmpeg_failed ... ass: your ffmpeg lacks libass. Install a full build (brew install ffmpeg,apt install ffmpeg).blocked_by_cloudflare: a VPN or proxy is being challenged; retry from a normal network.- A scene failed: run the same command again; finished scenes are reused.
Development
pip install -e '.[dev]' && pytest && ruff check .
Tests use an in-memory fake of the Miragea API (httpx MockTransport) and real ffmpeg renders at 270x480; they never spend credits.
Regenerate the README images with python docs/make_images.py (needs Pillow). See CHANGELOG.md and llms.txt.
License
MIT. Voice generation by Miragea.
Metadata
Release files for miragea-shorts 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| miragea_shorts-0.1.0.tar.gz | 38.2 kB | Without provenance | Details for miragea_shorts-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| miragea_shorts-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for miragea_shorts-0.1.0-py3-none-any.whl |
Total release size: 75.0 kB
Release files / miragea_shorts-0.1.0.tar.gz
| Download URL | miragea_shorts-0.1.0.tar.gz |
|---|---|
| Size | 38.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
82a006cba7566f2833b009268a841ad908957ab45d64c933e8dcb39a3a3136a5
|
|
BLAKE2b-256 checksum How to use checksums |
24597e230e9641df42dc754aabba9671f23e2bff563ca27e31d6c3ffbebc6c12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / miragea_shorts-0.1.0-py3-none-any.whl
| Download URL | miragea_shorts-0.1.0-py3-none-any.whl |
|---|---|
| Size | 36.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e804fa45ec0eb471e4d3b4d53ed53ac1978261120dcbe1d21b9c6eec2a4cb3b3
|
|
BLAKE2b-256 checksum How to use checksums |
d0d6925db5ca96c926dbe14b3edeb84ce8cd3496f1ed7d5595c40f9551d4f669
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for miragea-shorts 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.