Skip to main content
Glama

LipDub MCP server

CI npm node licence: MIT

Dale a tu agente de IA la capacidad de sincronizar los labios en vídeo.

LipDub 2 hace que una persona en un vídeo parezca hablar una pista de audio diferente, con un movimiento de labios sincronizado. Este es un servidor MCP que lo expone a Claude, Cursor, Gemini CLI, Codex, VS Code y cualquier otro cliente compatible con MCP.

LipDub 2 no traduce, transcribe ni genera voz. El audio lo aportas tú. Si quieres un vídeo doblado a otro idioma, genera primero ese audio con una herramienta de texto a voz o clonación de voz, alójalo en una URL pública y pasa esa URL. Este servidor se combina bien con un servidor de conversión de texto a voz: ese es el flujo previsto.


Qué aspecto tiene

You:   Lip-sync https://example.com/keynote.mp4 to https://example.com/spanish.mp3

Claude: I'll use LipDub 2 for that. This will charge credits to your LipDub
        account and can't be refunded — shall I go ahead?

You:   yes

Claude: Started — render_id rnd_88213. This usually takes 7–15 minutes; I'll wait.
        ...
        Done. Here's your video: https://…  (link expires, so grab it soon)

Related MCP server: OrcaDub MCP Server

Configuración

1. Obtén una clave de API

  1. Inicia sesión en app.lipdub.ai.

  2. Abre Ajustes → Claves de API: app.lipdub.ai/settings/api-keys

    Debes ser Owner o Admin en la cuenta. Otros roles son redirigidos al tablero sin ninguna explicación: si ese enence te descuelve, pide a un Owner o Admin de tu equipo que genere la clave por ti.

  3. Genera una clave y cópiala.

Una clave por usuario. LipDub emite una sola clave de API por usuario, y generar una nueva reemplaza a la anterior. Si tu cuenta ya usa su clave en otra integración, generar una nueva la romperá. Reutiliza la clave existente o usa una cuenta de Owner/Admin aparte para el trabajo con agentes.

2. Añade el servidor

Aún no está en npm. Los comandos npx que aparecen a continuación son cómo funcionará esto cuando el paquete se publique. Hasta entonces, usa la opción de código fuente que aparece al final de esta sección: se comporta de forma idéntica.

claude mcp add lipdub --env LIPDUB_API_KEY=your_key_here -- npx -y lipdub-mcp
{
  "mcpServers": {
    "lipdub": {
      "command": "npx",
      "args": ["-y", "lipdub-mcp"],
      "env": { "LIPDUB_API_KEY": "your_key_here" }
    }
  }
}
{
  "mcpServers": {
    "lipdub": {
      "command": "npx",
      "args": ["-y", "lipdub-mcp"],
      "env": { "LIPDUB_API_KEY": "your_key_here" }
    }
  }
}
{
  "inputs": [
    { "type": "promptString", "id": "lipdub-key", "description": "LipDub API Key", "password": true }
  ],
  "servers": {
    "lipdub": {
      "command": "npx",
      "args": ["-y", "lipdub-mcp"],
      "env": { "LIPDUB_API_KEY": "${input:lipdub-key}" }
    }
  }
}

Este patrón mantiene la clave fuera de un archivo que podrías incluir en un commit. Dado que LipDub emite una clave por usuario, eso importa más aquí que en la mayoría de los servidores.

{
  "mcpServers": {
    "lipdub": {
      "command": "npx",
      "args": ["-y", "lipdub-mcp"],
      "env": { "LIPDUB_API_KEY": "your_key_here" }
    }
  }
}
[mcp_servers.lipdub]
command = "npx"
args = ["-y", "lipdub-mcp"]
env = { LIPDUB_API_KEY = "your_key_here" }
git clone https://github.com/marzvfx/lipdub-mcp.git
cd lipdub-mcp
npm ci && npm run build

A continuación, apunta tu cliente al punto de entrada creado:

{
  "mcpServers": {
    "lipdub": {
      "command": "node",
      "args": ["/absolute/path/to/lipdub-mcp/dist/index.js"],
      "env": { "LIPDUB_API_KEY": "your_key_here" }
    }
  }
}

Necesita Node 20+. Si prefieres no instalar Node, ./manage.sh build hace lo mismo dentro de un contenedor.

3. Comprueba que funciona

Pídele a tu agente: "comprueba mi conexión con LipDub".

También puedes comprobar el servidor por su cuenta:

npx lipdub-mcp --version    # or: node dist/index.js --version

Herramientas

Herramienta

Qué hace

¿Consume créditos?

lipdub_check_connection

Confirma que la clave funciona y nombra la cuenta

No

lipdub_create_render

Inicia un render a partir de una URL de vídeo y una URL de audio

Sí

lipdub_get_render

Estado y el enlace de descarga cuando está listo

No

lipdub_wait_for_render

Espera a que un render se completeá en lugar de consult entorn en un bucle

No

lipdub_lits_renders

Rendering recientes, para recuperer un id de render perdido

No

También existe un prompt lipdub_quick_dub (un comando de barra en los clients que sop termin prompts) y dos recurses de reference, lipdub://guide/quickstart y lipdub://guide/troubleshoting.


Cómo hacer que un buen vídeo de origen

  • Una persona en cámara.

  • Cator visible claramente and reasonablemente iluminada.

  • Vídeo: .mp4, .mov, .av1, .webm. Audio: .mp3, .wav, .m4a, .aac.


Alojamiento de tus archivos

Ambos inputs son URLs públicas, no rutas de de archivos locales. El enlace debe devolvver el archivo de medios en sí.

Estos no fun ionan: páginas de compartir de Google Drive, Dropbox y YouTube; cualquier cosa que esté tras un inicio de de sesión; enlaces caducados.

Estos sí:

# Amazon S3 — a time-limited direct link
aws s3 presign s3://your-bucket/keynote.mp4 --expires-in 3600

# Google Cloud Storage
gcloud storage sign-url gs://your-bucket/keynote.mp4 --duration=1h

# Any web server
scp keynote.mp4 you@yourserver:/var/www/html/
# → https://yourserver/keynote.mp4

¿Por qué URLs y no archivos locales? Un render basado en URL es una sola llamada a la API. La ruta de subir un archivo local implica varias llamadas a extremos que está limitados a aproximadamente diez caidas por hora, lo que supone unos dos locales renders por hora en el plan básico. Mantener este servidor solo con URLs significa además que se comporte de la misma manera en cualquier lugar donde se ejecute. El soporte para archivos locales puede llegar más adelante, como opción optativa.

Tiempo y coste

Un render tarda unos 7–15 minutos. Los renders consumen créditos de usted LipDub y no se pueden reembolsar; el coste se escala cono la duración del vídeo fuente, así que los clips más cortos cuestán menos.

Consultar el estado es gratuito and sin límite de tasa: su frecuencia cada vez que quieres.

Podrás verse el saldo de de crédito de tu cuenta desde la API; ver app.lipdub.ai.

Límites de gasto

lipdub_create_render es la única herramienta que gasa dinero. Por defecto se niega a ejecutarse hasta quee el agente pase confirm_spend, lo obliga a decarte el coste primero. El servidor también se detene después de 5 renders por sesión.

Variable

Defecto

Próposito

LIPDUB_API_KEY

—

Tu clave de de API. Obligatoria.

LIPDUB_API_KEY_FILE

—

Ruta a un archivo con la medida de clave, en lugar de la variable.

LIPDUB_MAX_RENDERS_PER_SESSION

5

Techo de renders iniciadod por proceso del servidor.

LIPDUB_REQUIRE_SPED_RES_CONFIRMATION

true

Define false solo para pipelines sin audir? Actually false chỉ for headless pipelines without humanos.

LIPDUB_LOG_LEVEL

warn

deebug, info, warn, error. Los logs van a stderr.

These son guardarreros de usability, no controles de seguidad. Any that call the API directly bypasses them.

Solución de problemas

Síntoma

Solución

"No hay ninguna clave de API LipDub configurada"

Genera one en Configuración API Keys y define LIPDUB_API_KEY

"LipDub ha lazado la clave de API"

La clave se tecleó mal o la generated nueva. Generate new and restarts.

"Sin créditos"

Recarga en app.lipdub.ai

"No se pudo descargar uno de tus archivos arquivos"

Comprueba que el enlace sea un enlace directo y un símbolo.

"Descargado los archivos pero los archivos no se descargarn el render"

Suerte no hay no credits or no face visible.

The wait tool devolvo slow_running

"Normal "la rendered 7–15 min is not error: it said again."

The download link stopped funciona with "enlaces cortos"?

The links are signed and short-lived. Generate a new one by aerial lipdub_get_render again.

Documentación completa de la API: lipdub.readme.io


Privcida

  • Tu API key has been read from the environment, used only to call https://api.lipdub.ai and never written to the data. Logged, or included in any tool result. The key is redacted from every log line and error.

  • The video URL you supply are sent to the LipDub API, which downloads them to produce the render. Do not pass URLs of material you do not want LipDub to process.

  • This server does not send telemetry nor collect analytics.

  • Renders and their results are stored on your LipDub account, governed by the privacy policy and terms of its service.

Uso aceptable

LipDub 2 generates anonymous video of real people. By using it, you guarantees that you have the rights and consent necessary for the likeness and the voice in your source material. Do not use it to impersons someone without their permission, to create misleading content about real people, or for anything prohibited by LipDub's terms.

Seguridad

Did you mean "? See SECURITY.md. Please do not open a public issue, and never paste an API key into one.

Limitaciones

  • No hay traducción ni generación de vo, you supply the audio.

  • Only URLs, no local files.

  • The balance and price estimates are not available via the API.

  • LipDуб emits one API key per user, so a key can't be scoped solely to this server.

Versionado

Tool names are a public contract and will not change. New capability arrives as new tools; schema changes are additive. See [HANGELOG.md] (CHANGELOG.md) and [LICENSE].

Licencia

MIT. This page covers this client. LipDub itself has a commerial service subject to its own terms.

Available Tools

5 tools
lipdub_check_connectionCheck LipDub connectionA
Read-onlyIdempotent

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.

Inputs: no named parameters.

lipdub_create_renderCreate LipDub render (uses account credits)A

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 another language, produce that audio first with a separate text-to-speech or voice tool, host it at a URL, and pass that URL as audio_url.

Links must return the media file itself, with two exceptions: YouTube links work (youtube.com, youtu.be or youtube-nocookie.com), because they are resolved for you. Google Drive and Dropbox share pages, and anything behind a login, will fail.

Returns immediately with a render_id — the render is NOT finished. Rendering takes several minutes for a short clip, and longer for longer videos. Next step: call lipdub_wait_for_render with that render_id.

Inputs: audio_id, video_id, audio_url, video_url, +3 more.

lipdub_get_renderCheck LipDub render statusA
Read-onlyIdempotent

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_reason

download_url is a temporary signed link that expires. Give it to the user or download it promptly; do not save it for later.

If the render is not finished yet, prefer lipdub_wait_for_render — it waits for you instead of making you check repeatedly.

Inputs: render_id (required).

lipdub_list_rendersList recent LipDub rendersA
Read-onlyIdempotent

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.

Inputs: limit.

lipdub_wait_for_renderWait for LipDub render to finishA
Read-onlyIdempotent

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 and is still going. When it happens: tell the user it is still in progress, give them the render_id so they can come back to it, and call this tool again to keep waiting.

Waiting and status checks are free and never rate-limited.

Inputs: render_id (required), max_wait_seconds.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.7/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a clearly distinct role: connection check, listing, creating, one-shot status check, and blocking wait. The overlap between get_render and wait_for_render is explicitly disambiguated in their descriptions.

    Naming Consistency5/5

    All tools follow the same lipdub_ prefix with a consistent verb_noun pattern: check_connection, list_renders, create_render, get_render, wait_for_render. There are no naming style deviations.

    Tool Count5/5

    Five tools is well-scoped for this server's purpose. Each tool covers a necessary part of the render workflow without redundancy or bloat.

    Completeness5/5

    The tool surface covers the full render lifecycle: verify setup, create a render, wait for completion, retrieve the result, and list past renders. No obvious missing operation is needed for the stated domain.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers