lipdub-mcp
OfficialLipDub MCP server
Дайте вашему ИИ-агенту возможность синхронизировать губы с видео.
LipDub 2 делает так, чтобы человек в видео казался говорящим другую аудиодорожку, с синхронным движением губ. Это MCP сервер, который представляет его для Claude, Cursor, Gemini CLI, Codex, VS Code и любого другого MCP-совместимого клиента.
LipDub 2 не переводит, не транскрибирует и не генерирует речь. Аудио вы предоставляете сами. Если вам нужна видео озвучка на другой язык, сначала создайте аудио с помощью инструмента text-to-speech или клонированием голоса, разместите его по публичному URL и передайте этот URL. Этот сервер хорошо сочетается с TTS-сервером — именно так и задумано.
Как это выглядит
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
Настройка
1. Получите API-ключ
Войдите на app.lipub.ai.
Откройте Settings → API Key: app.lipub.ai/settings/api-keys
Вы должны быть Owner или Admin в аккаунте. Другие роли направляются на панель управления без объяснения причин — если эта ссылка вернёт вас обратно, попросите Owner или Admin вашей команды заплатить ключ для вас.
С генерируйте ключ и скопируйте его.
Один ключ на пользователя. Lip выпускает один API-ключ на пользователя, и создание нового ключа — заменяет старый. Если вы уже используете свой ключ в другой интеграции, создание нового ключа сломает её. Используйте существующий ключ или отдельный Owner/Admin аккаунт для работы агента.
2. Добавьте сервер
Пока не на npm. Команды
npxниже — это как это будет работать после публикации пакета. До тех пор используйте вариант сборки из исходников в конце этого раздела — он ведёт себя точно так же.
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}" }
}
}
}Этот вариант держит ключ вне файла, который вы можете закоммитить. С учётом того, что LipDub выдаёт один ключ на пользователя, здесь это важнее, чем для большинства серверов.
{
"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Затем укажите вашему клиенту, где находится собранная точка входа:
{
"mcpServers": {
"lipdub": {
"command": "node",
"args": ["/absolute/path/to/lipdub-mcp/dist/index.js"],
"env": { "LIPDUB_API_KEY": "your_key_here" }
}
}
}Нужен Node 20+. Если не хотите ставить Node, ./manage.sh build сделает то же самое
внутри контейнера.
3. Проверьте, что работает
Спросите своего агента: «Проверь моё подключение к LipDub».
Также можно убедиться в работе сервера самостоятельно:
npx lipdub-mcp --version # or: node dist/index.js --versionИнструменты
Инструмент | Что делает | Расходует кредиты |
| Подтверждает, что ключ работает, и выводит имя аккаунта | Нет |
| Запускает рендер по URL видео и URL аудио | Да |
| Статус и ссылку для скачивания, когда результат готов | Нет |
| Ожидает рендер вместо циклических запросов | Нет |
| Недавние рендера, чтобы восстановить утерянный id рендера | Нет |
Также есть lipdub_quick_dub промпт (слэш-команда в клиентах, поддерживающих промпты)
и два справочных ресурса: lipdub://guide/quickstart и
lipdub://guide/troubleshooting.
Что в хорошем исходном видео
Один человек в кадре.
Лицо чётко видно и достаточно хорошо освещено.
Видео:
.mp4,.mov,.avi,.webm. Аудио:.mp3,.wav,.m4a,.aac.
Размещение ваших файлов
Оба входных данных — публичные запросы, а не локальные пути к файлам. По ссылке должен возвращденться сам медиафайл.
Эти варианты не подойдут: страницы обмена Google Drive, Dropbox и YouTube страницы с пробником; всё, что находиться за логином; истёкшие ссылки.
А эти работают:
# 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Почему URL, а не локальные файлы? Рендер с URL — это один вызов API. Путь загрузки локального файла — это несколько вызовов к конечным точкам, которые ограничены до девяти запросов в час, что на начальном тарифе соответствует примерно двум рендерам локальных файлов в час. Такая особенность доступна позже отдельно. Локальное-файловая версия может появиться позже как option-in.
Время и стоимость
Рендер занимает примерно 7–15 минут. Рендеры расходуют кредиты вашего аккаунта Lip и их нельзя вернуть; стоимость зависит от длительности исходного видео, так что короткие клипы дешевле.
Проверка статуса — бесплатно и никогда не лимитируется — опрашивайте сколько угодно.
Остаток кредитов через API недоступен; смотрите app.lipub.ai.
Ограничение расходов
lipdub_create_render — единственный инструмент, который тратит деньги. По умолчанию
он отказывается запускаться, пока агент не передаст confirm_spend, что заставляет его
первым делом сообщить вам стоимость. Сервер также останавливается после 5 рендеров
за сессию.
Переменная | По умолчанию | Описание |
| — | Ваш API-ключ. Обязательно. |
| — | Путь к файлу, содержащему ключ, вместо переменной. |
|
| Максимум рендеров на один процесс сервера. |
|
| Поставьте |
|
|
|
Это предназначены для удобства, а не для защита — любой прямой вызов API обходит их.
Устранение неполадок
Симптом | Исправление |
«No LipDub API key is configured» | Создайте его в Settings → API Keys и задайте |
«LipDub rejected the API key» | Ключ был введён с опечаткой или был перегенерён. Сгенерируйте новый и перезапустите клиент. |
«out of credits» | Пополните на app.lipdub.ai |
«could not download one of your source files» | Ссылка — это страница объявления, требущего вход, или истекла. Используйте прямую ссылку |
«downloaded your files but could not start the render» | Обычно нет кредитов или нет чётко видимого лица собеседника |
Wait tool returned | Это нормально — рендер занимает 7–15 минут. Не ошибка; вызовите его снова |
Download link stopped working | Ссылки подписан и недолговечны. Вызовите |
Полная документация API: lipdub.readme.io
Конфиденциальность
Ваш API-ключ читается из окружения, используется только для вызова
https://api.lipdub.aiи никогда не записывается на диск, в логи или в результате работы. Он удаляется из каждой строки лога и каждого сообщения об ошибке.Переданные вами видео- и аудио-URL отправляются в Lip API, и вы отправили их на обработку — не передавайте URL на материалы, которые вы не готовы обрабатывать.
Этот сервер не отправляет телеметрию и не собирает аналитику.
Рендеры и их результаты хранятся в вашем аккаунте LipDub на условиях и политике LipDub.
Допустимое использование
LipDub 2 создаёт синтетические видео реальных людей. Используя его, вы гарантируете, что у вас есть права и разрешение, необходимые для внешнего сходства и голоса в исходном материале. Не используйте его для impersonation без согласия, создание вводящих в заблуждение роликов о реальных людях или что-либо ещё, что запрещено условиями Lip Dub.
Безопасность
Нашли уязвимость? Смотрите SECURITY.md, не открывайте public issue и никогда не вставляйте API-ключ в такой issue.
Ограничения
Переводы и речь не создаются — вы предоставляет аудио.
Только URL; нет загрузки локальных файлов.
Баланс кредитов и сметы через API недоступны.
Lip500 выдаёт один API key на пользователя, поэтому ключ может быть ограни и не для одного сервера.
Версии
Названия инструментов — это публичный контракт, они меняться не будут. Новые возможно появляются как новые инструменты, изменения схем аддитивны. См. CHANGELOG.md.
Лицензия
MIT. Лицензия покрывает этого клиента. Lip500 сам по себе — коммерческий сервис со своим собственным условиям.
Available Tools
5 toolslipdub_check_connectionCheck LipDub connectionARead-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 statusARead-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 rendersARead-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 finishARead-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
Scored across 5 tools
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.
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.
Five tools is well-scoped for this server's purpose. Each tool covers a necessary part of the render workflow without redundancy or bloat.
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
Related MCP Connectors
Generate lip-synced talking and singing videos from images or videos and audio.
Transcribe, subtitle, dub and lip-sync media; create speech, voices, images and thumbnails.
Generate and edit images, video, voice, lip-sync and 3D models from your AI agent.
Create and manage cinematic AI video renders through the Future Video Studio Agent API.
Related MCP Servers
- AlicenseAqualityBmaintenanceLipsync, dub and make talking videos from your agent. Hosted, OAuth sign-in, no API key.591,980 npm1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI video dubbing from any MCP-capable agent: upload a video or provide a URL, submit a dubbing job, poll progress, and download the finished MP4.7MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to transcribe and summarize videos and voice messages, translate speech while keeping the speaker's voice, read text aloud in a cloned voice, and produce subtitles, lip-synced dubbing, voice changes, and translated images from links, uploads, or local files. It also handles media downloading and job/account status, with paid operations priced and confirmed before they run.MIT
- AlicenseAqualityBmaintenanceEnables AI agents to convert any-length text to speech in saved or cloned voices, generate SRT/VTT captions from local media, and produce per-scene narration with exact durations and frame timings for video timelines.534 PyPIMIT