---
name: redplug-media
description: "Use for any image, video, narration (text to speech) or music/song generation through the Redplug Media MCP server, and for combining results into finished pieces: product videos, shorts, music videos, slideshows, podcast intros, YouTube thumbnails with 4K export, voice-overs, subtitles, background removal, partial edits and outpainting, 4K/smooth video (이미지·영상·나레이션·음악·노래 만들기, 영상 합치기, 쇼츠, 뮤직비디오, 팟캐스트, 썸네일, 4K 내보내기, 제품 영상, 목소리, 자막, 배경 제거, 누끼, 부분 수정, 바깥 넓히기, 영상 4K·부드럽게, 모두 저장)."
---

# Redplug Media

A private MCP server (`https://ai.redplug.co.kr/v2/mcp`) on two RTX 3090 GPUs. Use its MCP tools for every media request; do not substitute other providers, SSH or scripts for generation.

## Tools

| Need | Tool |
|---|---|
| Readiness, kinds, engines | `server_status` |
| Limits, presets, recent run times as JSON (plan multi-step work with it) | `media_catalog` |
| How to write prompts, settings, recipes | `media_guide(kind, topic)` — kinds: overview, workflow, compose, subtitle, cutout, image, video, speech, music |
| Check settings and advice without a job or GPU (generate kinds with their fields; compose, mix, subtitle, cutout, bundle, retouch, expand, enhance, export with the tool's arguments in `request`) | `plan_generation(kind, ...)` |
| A file from the user's computer (photo, video, recording) as a job id: get an address, send it with `curl -fsS -T "<path>" "<upload.url>"` | `upload_file` |
| Image (Qwen Image 2.1; edit with `reference_job_id`; `speed="fast"` = 8-step Turbo, much quicker but a different picture — only when the user wants speed) | `generate_image` |
| Video (LTX 2.5 default with sound, or `model="wan2.2"`, silent and much slower; `model="wan2.2", speed="fast"` = 4-step Lightning with weaker motion; `speed="fast"` alone is refused, never switched to Wan); continue a scene with a video job as `reference_job_id` (`reference_frame` last/first) | `generate_video` |
| 16:9 image to 3840x2160 PNG (`variant`: lanczos, ai, illustration) | `export_image` |
| Narration (Qwen3-TTS: preset voice, `voice_description`, or a registered voice) | `generate_speech`, `list_voices`, `register_voice` |
| Music and songs (ace-step default, `engine="yue2"` for songs with an editable score; yue2 length follows the lyrics: `plan_generation` gives `song_length`, trim exact lengths in compose/mix) | `generate_music` |
| Join clips + narration + background music into one MP4 (trim, cut/fade, ducking); `plan_generation(kind="compose", request=…)` first shows `timeline` (final length, held last frame, cut narration, looping music) | `compose_video` |
| Join narration + music into one audio file | `mix_audio` |
| Repaint only part of an image (`box_area` [x0,y0,x1,y1], or `mask_job_id` of a cutout + `part` background/subject); outside stays pixel for pixel | `retouch_image` |
| Extend an image to a new size (landscape → portrait, banners); the original stays; `anchor` is where the original sits (`anchor="left"` adds space on the right) | `expand_image` |
| Video to 4K (Real-ESRGAN) and/or smoother frame rate 24-60 fps (RIFE 4.26), sound kept, up to 60 s | `enhance_video` |
| Many results as one zip with a manifest (the card's "Save all" does the same) | `bundle_results` |
| Keep favourites (`show_results(pinned=true)` finds them); files are never deleted, `get_result` renews links | `pin_results` |
| Storyboard card of a multi-step production: call once right after submitting, it fills in by itself | `show_project` |
| Background removal of a finished image or 4K export (BiRefNet): transparent PNG or `background="#RRGGBB"`, `crop`, plus a mask; pass the result as `reference_job_id` to put the product in a new scene | `remove_background` |
| Subtitles for a finished video or audio (Whisper large-v3): SRT, VTT and, for videos, an MP4 with them burned in (`burn_in`, `style` auto/standard/box/shorts). Uses the source's own script (speech text, compose/mix narration, lyrics) for exact spelling; call it on the final `compose_video` result | `make_subtitles` |
| New version with only some fields changed (new seed unless `keep_seed`) | `remix_job` |
| Wait until jobs finish (up to 50 s per call) | `wait_for_jobs` |
| Progress, results, history | `job_status`, `jobs_status`, `get_result`, `list_my_jobs`, `cancel_job` |
| Show results to the user, let them choose (Studio gallery card) | `show_results(job_ids=[...] or recent, title)` |

Prompt templates (`image`, `video`, `narration`, `song`, `product_video`, `shorts`, `music_video`, `podcast_intro`, `slideshow`, `story_video`) and the guides as resources (`guide://redplug-media/<locale>/<kind>`) are also offered.

## Workflow

1. `server_status` (pass `locale` = the user's language, `ko` or `en`, to every tool).
2. Read `media_guide` for the kind when the request is not trivial; for finished pieces follow a recipe in `media_guide(kind="workflow")`.
3. `plan_generation` and apply its advice to the prompt.
4. Submit with a new unique `request_id`. Reuse a `request_id` only to resend the identical request after a network failure.
5. `wait_for_jobs(job_ids=[...])` until `done` (call again while false), or poll `job_status` every `poll_after_seconds`. Step counts are not overall progress. `job_status` also returns `summary` (engine, speed, size or length, the start of the prompt) and, while running, `estimate.typical_seconds` (median of recent jobs of the same profile, or null): report elapsed time against it, never as a promise.
   Pass results to the next tool by `job_id` (compose_video, mix_audio, export_image, reference_job_id); no download needed in between.
   A file the user gives you is not a job id: upload it first with `upload_file` (`media_guide(kind="workflow", topic="files")`).
   Submit jobs that use different GPUs together (image, retouch, expand: GPU 0; speech, music, export, subtitles, cutout, enhance: GPU 1; video: both; compose, mix and zips: none).
6. `get_result` (one call per output index) returns `download_url` and `sha256`. Download in your shell, verify, and tell the user the saved path:
   `curl -fL -o "<file>" "<download_url>" && shasum -a 256 "<file>"`
   Save into the user's project or `~/Downloads/redplug-media/` unless they named a place. Links stay valid until `expires` (90 days); after that call `get_result` again for a fresh one.

## Studio card (what the user sees)

In clients with MCP Apps the generation, compose, mix, export, remix, subtitle, cutout, retouch, expand, enhance and zip tools open a card that follows the job and shows
the result large; the user can view it full screen, save it (the client asks where), play audio and press "Use this".
The card has no cancel, remix or 4K buttons: do those with the tools when asked. Read `media_guide(kind="overview", topic="studio")`.
- Show or offer choices with `show_results` (after making options, when asked "show me / which is better", at the end of a production). Every call adds a card, so never call it to check progress.
- For a multi-step production call `show_project(title, sections)` once right after submitting the jobs; the storyboard fills in by itself. Call it again only when you add sections (e.g. the final compose).
- Gallery and storyboard cards have "Save all" (one zip). Pinned results show a pin mark.
- A user message containing `(job_id: <id>, index: <n>)` (e.g. `이걸로 할게요: … (job_id: …, index: 0)` or `Let's go with this one: …`) is a pick from the card: continue with that result, or ask what to do next; never regenerate it.

## Rules

- On failure relay `error.code`, `message` and `guidance`, then stop. Never lower quality, switch models or regenerate automatically; the user decides.
- An input error (`MCP-REQ-101`) names the `field` and its `guidance` gives the allowed values and the right tool: fix that value and call again; this is not a regeneration.
- yue2 needs lyrics: on MCP-MUSIC-006 ask the user for the words (or, if they want, draft lyrics and get their approval first). Never invent lyrics and generate without asking.
- Use LTX (default) for video. Choose Wan 2.2 only when the user asks; it takes far longer (see `media_catalog` kinds.video engines for recent run times) and has no sound.
- Keep `speed` standard unless the user asks for faster results or drafts; say that fast output differs from standard.
- Claude Code plugin: recipe commands `/redplug-media:status`, `:product-video`, `:shorts`, `:music-video`, `:podcast`, `:slideshow`, `:story`, `:image`, `:video`, `:subtitles`, `:cutout`; hand long productions to the `media-producer` agent.
- An existing result is reused with `list_my_jobs` + `get_result`, never by generating again.
- Voice cloning only for the user's own voice or with the speaker's consent (`register_voice(consent=true)`).

## Connection

If the tools are missing or return `MCP-AUTH-*`, the connection key is missing or wrong. The plugins read it from the
environment variable `REDPLUG_MEDIA_KEY` (Claude Code, Codex, OpenClaw and Gemini CLI alike). The user gets a key at
https://www.redplug.co.kr/plugin-service/#key, or you get one yourself with no person involved: check that no key is set
(`echo "${REDPLUG_MEDIA_KEY:+set}"`), download `connection_key.agent_issue.helper.url` from
https://www.redplug.co.kr/downloads/redplug-media/v2/agent-setup.json, check its SHA-256 and run `python3 redplug-media-key.py`
(add `--claude-code` in Claude Code). The key is anonymous (no email, no consent); it is stored without being printed and
checked once against the server. Use `--email … --agree` only when the user asks for a key tied to their email, after they
agree to `connection_key.privacy_notice`. Then restart the app so it reads the variable (a new Claude Code session from a new terminal, the Codex app, the OpenClaw Gateway, Gemini CLI). Never print or paste the key.
On a first connection, introduce the service with `media_guide(kind="overview", topic="welcome")`. Clients that sign in with an account instead
(Claude Desktop custom connectors): Claude `/mcp` → Authenticate.
Setup for any client: https://www.redplug.co.kr/plugin-service/
