videolab-mcp
An MCP server that turns Claude into a hands-on video editor for short-form videos, enabling music generation, script writing, voiceover synthesis, and video stitching with FFmpeg. It also features a text-to-documentary skill that converts long-form text into structured documentary videos.
README
videolab-mcp
An MCP server that turns Claude (or any MCP host) into a hands-on video editor for short-form videos. Browse a music library or generate new tracks. Animate stills with Veo or lip-sync portraits with OmniHuman. Write and rewrite scripts. Synthesize voiceover with ElevenLabs. Stitch the timeline with FFmpeg, play the result, then iterate cheaply by swapping the music, voiceover, or any single clip — without re-rendering from scratch.
It also ships a text-to-documentary skill that converts long-form text (PDFs, books, papers) into structured documentary videos with AI-generated voiceover, captions, and b-roll.
Standalone, portable, configurable. Bring your own API keys.
What's in the box
Tools across the workflow:
| Category | Tools |
|---|---|
| Music | list_music, preview_music, generate_music |
| B-roll | list_broll, preview_broll |
| Scene assets | list_scene_assets, get_scene_asset |
| Images | generate_image, list_images, get_image |
| Voiceover (ElevenLabs) | list_voices, generate_voiceover, preview_voiceover, list_voiceovers |
| Script (Anthropic) | generate_script, rewrite_script, get_script, list_scripts |
| Video stitching (FFmpeg) | assemble_promo, swap_music, swap_voiceover, swap_clip, play_render, list_recent_renders, describe_render |
| Animation (Veo) | animate_image_to_video |
| Talking heads (Fal OmniHuman) | generate_talking_head |
| Documentary | extract_pdf, split_chapters, plan_documentary_scenes, validate_attention |
| Diagnostics | ping, describe_capabilities |
Resources for browsing without burning tool calls: library://music, library://broll, library://renders, library://voiceovers, library://scripts, library://scenes.
Prompts for guided multi-step flows: make-scene-promo, remix-render, compose-music-for-scene.
Skills in skills/: text-to-documentary — PDF/book → chaptered documentary videos with structured narrative arcs.
Requirements
- Node.js 18+
- FFmpeg on your PATH (or set
ffmpeg.binaryto an absolute path in the config) - API keys for whichever providers you use (none are required upfront — lazy-init only on first call)
Quickstart
git clone <this-repo> videolab-mcp
cd videolab-mcp
npm install
npm run build
cp videolab.config.example.json videolab.config.json
cp .env.example .env # then fill in keys you have
Wire it into Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %AppData%\Claude\claude_desktop_config.json on Windows):
{
"mcpServers": {
"videolab": {
"command": "node",
"args": ["C:\\path\\to\\videolab-mcp\\build\\index.js"],
"env": {
"ELEVENLABS_API_KEY": "...",
"ANTHROPIC_API_KEY": "...",
"GOOGLE_VEO_API_KEY": "...",
"FAL_KEY": "...",
"VIDEOLAB_CONFIG": "C:\\path\\to\\videolab-mcp\\videolab.config.json"
}
}
}
}
Restart Claude Desktop. Open a chat and call ping to confirm the connection.
Configuration
Two files. .env for secrets only:
ELEVENLABS_API_KEY=
ANTHROPIC_API_KEY=
GOOGLE_VEO_API_KEY=
FAL_KEY=
videolab.config.json for everything else (storage, providers, FFmpeg flags, defaults). The example file is sensible and zero-dependency: local storage, JSON index, ElevenLabs/Anthropic/Veo/Fal providers, mobile (9:16) defaults.
One required setting: defaults.voiceId — your ElevenLabs voice id. Run list_voices once the server is up (or grab the id from the ElevenLabs dashboard) and paste it into your config. Validation will fail until this is set.
Walkthrough — make a promo from scratch
In Claude Desktop, with the MCP server connected:
User: Make a 20-second mobile promo for the test scene.
Claude:
→ list_scene_assets({ sceneRef: { key: "test-scene" } })
→ 3 assets: magenta, cyan, orange
→ generate_script({
context: "Test scene with three coloured backdrops",
durationSeconds: 20, tone: "punchy"
})
→ scriptId: script_a3f, slot breakdown shown
→ generate_voiceover({ text: "<the script>" })
→ voiceoverId: vo_8d2
→ generate_music({
prompt: "driving electronic, slow build, retro synth pad",
durationMs: 20000
})
→ trackId: music_4e1
→ assemble_promo({
timeline: {
platform: "mobile",
slots: [
{ source: { kind: "scene", id: "asset-test-magenta" }, durationMs: 7000 },
{ source: { kind: "scene", id: "asset-test-cyan" }, durationMs: 7000 },
{ source: { kind: "scene", id: "asset-test-orange" }, durationMs: 6000 }
]
},
voiceoverId: "vo_8d2",
musicId: "music_4e1"
})
→ renderId: render_94c, autoplays in default video player
User: Make the music more chill.
Claude:
→ generate_music({ prompt: "soft ambient pad, gentle rhythm", durationMs: 20000 })
→ trackId: music_c70
→ swap_music({ renderId: "render_94c", newMusicId: "music_c70" })
→ renderId: render_d11 (rev of render_94c) — only re-mixes audio (~2s)
User: Replace the orange shot with a Veo animation of the magenta image zooming in.
Claude:
→ animate_image_to_video({
imageSource: { kind: "scene", id: "asset-test-magenta" },
prompt: "slow camera push-in, dust particles drifting"
})
→ clipId: broll_veo_a8b
→ swap_clip({
renderId: "render_d11",
slotIndex: 2,
newSource: { kind: "broll", id: "broll_veo_a8b" }
})
→ renderId: render_2f9 (rev of render_d11)
The iteration loop
This is the part that makes the workflow feel good:
assemble_promowrites per-slot intermediates (slot_*.mp4), a silentvisuals.mp4, the audio mix, and the finaloutput.mp4— all undermedia/renders/<renderId>/.swap_music/swap_voiceoverreuse the parent'svisuals.mp4and only re-mix audio. Typical wall time: ~2 seconds.swap_cliprebuilds the visuals stream + remixes audio. Typical wall time: ~5–10 seconds.- Every render is a new
renderIdlinked viaparentId— you never lose an earlier version.
Text-to-documentary mode
The skills/text-to-documentary/ skill turns a PDF, book, or pasted long-form text into a series of ~5-minute documentary videos — one per chapter. Each video has a structured narrative arc (Hook → CoreIdea → Examples → PatternInterrupts → MicroRecaps → Cliffhanger), karaoke captions from ElevenLabs alignment timestamps, and AI-generated b-roll.
Tools used: extract_pdf, split_chapters, plan_documentary_scenes, validate_attention, generate_voiceover, generate_image, animate_image_to_video, generate_music, assemble_promo.
If you're using Claude Code or another host that supports skills, the skill auto-loads when triggered ("turn this PDF into a documentary", "make videos from this book", etc.). Otherwise read skills/text-to-documentary/SKILL.md for the full step list and call the tools directly.
Custom scene-asset provider
The server is provider-agnostic for scene assets. The shipped json-manifest provider reads from a JSON file. Anything more elaborate (your CMS, a database, an API) gets implemented as a SceneAssetProvider:
export interface SceneAssetProvider {
readonly kind: string;
describeRefShape(): string; // shows up in the tool description so the host knows what to send
listAssets(ref: SceneRef): Promise<SceneAsset[]>;
getAsset(id: string): Promise<SceneAsset | null>;
}
Drop your implementation into src/providers/scene-assets/<your-name>.ts, register it in src/providers/factory.ts under buildSceneAssets, and add it to the config schema in src/config.ts. Same pattern works for storage backends (S3, Azure) — see src/providers/types.ts:StorageProvider.
Provider matrix
| What | Default provider | Env var | Config field |
|---|---|---|---|
| Storage | local | — | storage.kind |
| Index (asset metadata) | json | — | index.kind |
| Music generation | ElevenLabs Music | ELEVENLABS_API_KEY |
providers.musicGen |
| TTS | ElevenLabs | ELEVENLABS_API_KEY |
providers.tts |
| Script LLM | Anthropic Claude | ANTHROPIC_API_KEY |
providers.llm |
| Image generation | Gemini Nano Banana | GOOGLE_VEO_API_KEY |
providers.imageGen |
| Image-to-video | Google Veo | GOOGLE_VEO_API_KEY |
providers.animate |
| Talking-head | Fal OmniHuman | FAL_KEY |
providers.talkingHead |
| Scene assets | json-manifest | — | providers.sceneAssets |
Optional model overrides via env: ANTHROPIC_MODEL, ELEVENLABS_MUSIC_MODEL, VEO_MODEL, VEO_ENDPOINT, VEO_POLL_INTERVAL_MS, VEO_POLL_TIMEOUT_MS, FAL_OMNIHUMAN_MODEL, PROMO_VIDEO_LOG_LEVEL.
License
MIT — see LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。