lipdub-mcp

v0.1.3
lipdub-mcp Checked 4 days ago Published 1 month ago

MCP server for LipDub 2 — make a person in a video appear to speak a different audio track, with matched lip movement.

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

lipdub_check_connection Check LipDub connection

Verify that this server can reach LipDub and report which account it is using. Call this first if any other LipDub tool fails with an authentication error, or when a user asks whether LipDub is set up. Does not use credits and does not start anything. Credit balance is not available through the API — direct the user to https://app.lipdub.ai to see it.

lipdub_create_render Create LipDub render (uses account credits)

Start a LipDub 2 render: make the person in a source video appear to speak a different audio track, with matched lip movement. USES CREDITS. Each render charges the account and cannot be undone or refunded. Cost scales with the length of the source video. Confirm with the user first, then call again with confirm_spend set to true. Supply both sides as direct, publicly downloadable URLs: - video_url — a video of ONE person speaking, face clearly visible. - audio_url — the audio you want them to appear to say. LipDub 2 does NOT translate, transcribe or generate speech. If the user wants a…

ParameterTypeDescription
audio_idstringAdvanced. A LipDub audio upload id from a previous upload, instead of audio_url.
audio_urlstringDirect URL to the audio the person should appear to say (.mp3, .wav, .m4a, .aac, .ogg, .flac, .mp4 or .mov). You must supply finished audio; LipDub 2 does not generate or translate speech.
callback_urlstringOptional https URL to be called when the render finishes. For automated pipelines; in a chat session use lipdub_wait_for_render instead.
confirm_spendbooleanWhether the user has personally approved spending credits on this render. Defaults to false deliberately, as a safety gate — it is not a misconfiguration. Set it to true only after you have asked th…
output_filenamestringOptional name for the finished file, e.g. 'ceo-welcome-spanish.mp4'. If omitted, a name is derived from video_url. This name is also shown as the project name in the user's LipDub web app, so make it…
video_idintegerAdvanced. A LipDub shot id from a previous upload, instead of video_url.
video_urlstringURL to the source video (one person, face visible). .mp4, .mov or .avi, or a YouTube link.

lipdub_get_render Check LipDub render status

Check a LipDub render once, right now, and return its download link if it has finished. This does NOT wait — it answers immediately with whatever the current status is. To wait for a render to finish, use lipdub_wait_for_render instead. Takes the render_id from lipdub_create_render. Free and never rate-limited — check as often as you need. status is one of: - preparing — LipDub is downloading your source files (usually under 2 minutes) - queued — waiting for a render slot - rendering — generating the video - succeeded — done; download_url is included - failed — see failure_rea…

ParameterTypeDescription
render_id *stringThe render_id from lipdub_create_render. A plain number is also accepted.

lipdub_wait_for_render Wait for LipDub render to finish

Wait for a LipDub render to finish, then return its download link. Use this straight after lipdub_create_render instead of checking in a loop — it uses far less context. This call blocks for up to max_wait_seconds (default 45, maximum 600) while tracking the render for you. A render takes several minutes for a short clip, and longer for longer videos, so expect to call this several times — that is normal and costs nothing. If the render is still going when the wait is up, this returns normally with still_running set to true. That is NOT an error and NOT a failure — the render is fine a…

ParameterTypeDescription
render_id *stringThe render_id from lipdub_create_render.
max_wait_secondsintegerHow long to wait before returning. Returning early with still_running set to true is normal, not a failure. The default of 45 stays under the 60-second request timeout most MCP clients use; only raise…

lipdub_list_renders List recent LipDub renders

List recent LipDub renders on this account, newest first. Use this when: - you have lost a render_id, for example because earlier conversation was trimmed away and a render is still running or already finished - the user asks what they have rendered recently Returns a short summary of each. Call lipdub_get_render with one of the returned render_ids to get its download link. Free and never rate-limited.

ParameterTypeDescription
limitintegerHow many renders to return.