YouTube Dubbing MCP

v0.1.0
io.github.RTY2345RR/youtube-dubbing-mcp Checked 4 days ago Published 26 days ago

AI dubbing for YouTube videos: one cloned voice per speaker, synced SRT, YouTube audio tracks.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

dubbing_check_setup

Check that dubbing will work: API key set (value hidden), voice engine reachable, its voice models and limits, ffmpeg and yt-dlp available, and where projects are saved. Read-only; creates no job. Call first.

dubbing_list_voices

List the voices saved in the user's Miragea account (actor_id, name, language) to use with dubbing_set_voice. Read-only.

ParameterTypeDescription
limitinteger
offsetinteger

dubbing_start_project

Start a dubbing project from a YouTube URL, a local video/audio file, or an SRT/VTT caption file. Downloads the audio (and optionally the video for a preview), takes the transcript from YouTube captions when available or transcribes the speech, merges caption fragments into sentences and labels speakers from caption markers (Name:, [Name], >>) or, without markers, by voice pitch (set num_speakers if known). Returns project_id, duration, speakers and segment count.

ParameterTypeDescription
source *string
captions_file
download_videoboolean
num_speakers
prefer_captionsboolean
project_name
source_language

dubbing_get_segments

Read a project's transcript in pages: id, speaker, start, slot_seconds and text. With target_language, each line also gets target_chars and max_chars, the length that fits its time slot when spoken in that language, plus any translation already saved. Use it to review speakers and to translate.

ParameterTypeDescription
project_id *string
limitinteger
offsetinteger
target_language

dubbing_assign_speakers

Set who speaks each segment. `assignments` maps a segment id ('7'), an inclusive range ('7-12') or '*' (all) to a speaker name, e.g. {'1-4': 'Anna', '5': 'Ben'}. Use when captions had no speaker markers.

ParameterTypeDescription
assignments *object
project_id *string

dubbing_extract_voice_samples

Cut a clean 4-14 second voice sample for each speaker from the source audio, with its transcript. With share=true each sample is uploaded to a temporary public file host (uguu.se, deleted after a few hours) so the voice engine can clone it, and the speaker's voice is set automatically. Ask the user before sharing someone's voice. With share=false the samples stay local.

ParameterTypeDescription
project_id *string
shareboolean
speakers

dubbing_set_voice

Choose the voice for one speaker: a saved voice (actor_id from dubbing_list_voices) or a voice to clone from a public reference_audio_url (6-15 s of clean speech) with its exact reference_text. Optional model ('expressive' or 'standard') and speed (0.25-4).

ParameterTypeDescription
project_id *string
speaker *string
actor_id
model
reference_audio_url
reference_text
speed

dubbing_set_translation

Save translated lines for a target language as {segment_id: text} (all at once or in batches; later calls update only the ids given), plus an optional localized YouTube title and description. Returns a fit check: lines that are too long for their time slot, and ids still missing.

ParameterTypeDescription
language *string
project_id *string
translations *object
description
max_speedupnumber
title

dubbing_render

Voice every translated line with its speaker's voice, then build the dubbed audio track at the exact video length (each line starts with the original; lines are sped up only when needed, max_speedup 1.0-1.5), the translated SRT, and a preview MP4 when the video was downloaded. Optional background: a music/effects file mixed under the voices. Re-running reuses finished lines and resumes pending ones.

ParameterTypeDescription
language *string
project_id *string
audio_formatstring
background_file
background_volumenumber
max_speedupnumber
model
preview_videoboolean

dubbing_export_youtube_package

Write the YouTube upload package: one folder per language with audio.m4a (the dub track, video length), captions.srt, title.txt and description.txt, plus UPLOAD-TO-YOUTUBE.md with the YouTube Studio > Languages steps and a Studio link. The YouTube API cannot upload audio tracks, so the user uploads them.

ParameterTypeDescription
project_id *string
languages

dubbing_project_status

Show a project's state: speakers and their voices, languages translated and rendered, output paths.

ParameterTypeDescription
project_id *string

dubbing_list_projects

List dubbing projects saved on this machine, newest first.