Video-Director-MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
🎬 AI Video Director MCP (Video-Director-MCP) — EN / PL
Local MCP (Model Context Protocol) server + AI Director Skill that turns your AI coding/agent assistant (Antigravity, Claude Desktop, Cursor, etc.) into a 100% local AI video editor.
Instead of cutting blindly, the AI detects audio/scene highlights, generates timestamped JPG storyboards and visually inspects them, batch-trims the best moments, adds 30+ xfade transitions, frame-accurate Impact FX + synthesized SFX, and beat-aligned background music, and visually verifies the rendered MP4 — all locally via FFmpeg with zero cloud uploads.
🧩 Required Companion Apps (Ecosystem)
This MCP server orchestrates the local FFmpeg engines from two open-source companion apps. Both repositories are required:
App | Repository | Role in the AI Pipeline |
✂️ EventCut Studio | Video probing, keyframe inspection, frame-exact ( | |
🎞️ Video Montage Studio | Multi-clip compilation rendering, 30+ |
Zero-config auto-discovery: If you clone all three repositories into the same parent folder,
Video-Director-MCPautomatically findsVideo-TrimmerandVideo-Montage— no path tweaking needed!
workspace/
├── Video-Trimmer/ # https://github.com/PHPSmoker/Video-Trimmer
├── Video-Montage/ # https://github.com/PHPSmoker/Video-Montage
└── Video-Director-MCP/ # https://github.com/PHPSmoker/Video-Director-MCPRelated MCP server: mcp-video-studio
🇬🇧 Quick Start (English)
1. Clone all 3 repositories side-by-side
git clone https://github.com/PHPSmoker/Video-Trimmer.git
git clone https://github.com/PHPSmoker/Video-Montage.git
git clone https://github.com/PHPSmoker/Video-Director-MCP.gitMake sure FFmpeg/FFprobe is available (either in system
PATH, or simply launchVideo-Trimmer(START.bat) orVideo-Montage(start.bat/start.sh) once so portable FFmpeg binaries are downloaded automatically).
2. Install MCP server dependencies (Python 3.10+)
cd Video-Director-MCP
python -m venv .venvWindows (PowerShell):
.\.venv\Scripts\pip install -r requirements.txtmacOS / Linux:
./.venv/bin/pip install -r requirements.txt
3. Verify everything with the end-to-end smoke test
# Windows
.\.venv\Scripts\python.exe test_smoke.py
# macOS / Linux
./.venv/bin/python test_smoke.pyIf your companion apps live in custom folders, set environment variables before running:
VIDEO_TRIMMER_DIR— path toVideo-Trimmer(EventCut Studio)VIDEO_MONTAGE_DIR— path toVideo-Montage(Video Montage Studio)VIDEO_MONTAGE_OUTPUT_DIR— optional custom output folder (defaults to<VIDEO_MONTAGE_DIR>/output)
4. Connect to your AI Client (MCP)
Option A: Antigravity (Recommended — includes AI Director Skill)
This repository ships with a ready-to-use Antigravity plugin bundle in plugin/video-director/ (plugin.json, assets/logo.svg, and the full director workflow in skills/video-director/SKILL.md):
Copy
plugin/video-director/to your Antigravity plugins folder (e.g.~/.gemini/config/plugins/video-director).Copy
mcp_config.example.jsontomcp_config.jsoninside that plugin folder and update the paths to your.venvPython,server.py,Video-Trimmer, andVideo-Montage.
Option B: Claude Desktop / Cursor / Any MCP Client
Add to your MCP config (claude_desktop_config.json, .cursor/mcp.json, etc.) — see mcp_config.example.json:
{
"mcpServers": {
"video-director-mcp": {
"command": "/ABSOLUTE/PATH/TO/Video-Director-MCP/.venv/Scripts/python.exe",
"args": ["/ABSOLUTE/PATH/TO/Video-Director-MCP/server.py"],
"env": {
"PYTHONUTF8": "1",
"VIDEO_TRIMMER_DIR": "/ABSOLUTE/PATH/TO/Video-Trimmer",
"VIDEO_MONTAGE_DIR": "/ABSOLUTE/PATH/TO/Video-Montage"
}
}
}
}(On macOS/Linux use .venv/bin/python instead of .venv/Scripts/python.exe.)
How the AI Director Workflow Works
Long Video → Highlight Reel / Short Clip:
Scans metadata (
probe_media) & runsdetect_highlights(audio RMS spikes + FFmpeg scene changes + 12-zone energy map).Generates macro + zoomed-in timestamped JPG storyboards (
extract_storyboard) and visually inspects them before choosing cuts.Plans a Hook → Build-up → Climax narrative, batch-trims segments (
batch_trim_clips), finds the best music drop (analyze_music), adds Impact FX + SFX on key action frames, renders the final MP4 (render_montage), and verifies the output visually (preview_montage_result).
Folder of Short Clips → TikTok / Reels / Shorts / YouTube Compilation:
Scans all videos & music (
scan_media_folder) and generates a single contact sheet (extract_clips_overview, up to 16 clips per sheet).Trims dead intros/outros, orders the shots for maximum pacing, applies
xfadetransitions (including per-cut overrides) + continuous music, and renders in9:16,16:9,1:1, orauto(blur/crop/pad).
MCP Tools (12)
Tool | Description |
| Checks both companion engines ( |
| Scans a folder for video & audio files with duration, resolution, orientation, FPS, and audio info |
| Reads detailed metadata for a single video/audio file (optionally including I-frame keyframes) |
| Detects high-energy moments via audio RMS peaks + FFmpeg scene detection + 12-zone energy map |
| Analyzes a music track and suggests best |
| Renders a JPG frame grid with burned-in timestamps (full video or zoomed-in window) |
| Renders a multi-clip overview sheet (1 row = 1 clip with filenames & timestamps, up to 16 clips) |
| Batch-trims selected segments via EventCut Studio ( |
| Lists all 30+ |
| Renders the final MP4 via Video Montage Studio (transitions, Impact FX + SFX, continuous music, auto-batching) |
| Generates a QA storyboard of the rendered MP4 so the AI can visually verify framing and pacing |
| Opens the output folder / highlights the rendered MP4 in your OS file manager |
Example Prompts
"Turn this 20-minute gameplay recording into a punchy 45-second 9:16 TikTok highlight clip with Impact FX on the best goals and my music track."
"Scan my clips folder, show me a storyboard plan of the best moments first, then trim and render a 16:9 YouTube montage with smooth transitions."
"Find the most energetic drop in
track.mp3and sync my best 8 clips to it."
FAQ (English)
No. All video/audio processing, FFmpeg rendering, trimming, and storyboard generation run 100% locally on your machine. Only lightweight JPG storyboard contact sheets (small thumbnails) are inspected by your multimodal AI agent to pick the best timestamps.
Each app has a focused, battle-tested local FFmpeg engine: EventCut Studio (Video-Trimmer) handles keyframe analysis and fast precise / lossless batch cutting, while Video Montage Studio (Video-Montage) handles multi-clip xfade timelines, Impact FX + synthesized SFX, continuous music mixing, and automatic batching for large compilations. Both can also be used standalone with their own desktop web UIs!
Never. Trimmed intermediate clips are saved in a temporary session folder (work/trimmed/), and rendered compilations are written as new MP4 files in the output directory.
🇵🇱 Szybki start (Polski)
Lokalny serwer MCP (Model Context Protocol) + Skill AI Reżysera, który zamienia Twojego agenta AI (Antigravity, Claude Desktop, Cursor itp.) w w 100% lokalnego montażystę wideo.
AI nie tnie „na ślepo” — najpierw wykrywa najmocniejsze momenty (skoki audio + zmiany scen), generuje storyboardy JPG z timestampami i ogląda je oczami, masowo przycina ujęcia, dokłada 30+ przejść xfade, punktowe efekty Impact FX + dźwięki SFX i dopasowany podkład muzyczny, a na koniec wizualnie sprawdza gotowy plik MP4.
Wymagane aplikacje (ekosystem 3 projektów)
Serwer MCP korzysta bezpośrednio z lokalnych silników FFmpeg dwóch otwartych aplikacji — obie są wymagane:
✂️ EventCut Studio (
Video-Trimmer) — odczyt metadanych, klatki kluczowe, masowe cięcieprecise(co do klatki, CRF 15) i bezstratnelossless(-c copy) oraz przenośne binarki FFmpeg/FFprobe.🎞️ Video Montage Studio (
Video-Montage) — montaż z 30+ przejściamixfade, efekty punktowe Impact FX & SFX (lens flare, punch zoom + shake, shockwave, RGB glitch, micro slow-mo + dźwięki SFX), ciągły podkład muzyczny, formaty16:9/9:16/1:1(blur/crop/pad) i automatyczny batching powyżej 12 klipów.
Instalacja krok po kroku
Sklonuj wszystkie 3 repozytoria obok siebie w jednym folderze (wtedy serwer wykryje je automatycznie bez ustawiania ścieżek):
git clone https://github.com/PHPSmoker/Video-Trimmer.git git clone https://github.com/PHPSmoker/Video-Montage.git git clone https://github.com/PHPSmoker/Video-Director-MCP.git(Upewnij się, że masz FFmpeg w
PATHalbo uruchom razSTART.batwVideo-Trimmer/start.batwVideo-Montage, żeby przenośny FFmpeg pobrał się automatycznie).Utwórz środowisko wirtualne i zainstaluj pakiety (
requirements.txt):cd Video-Director-MCP python -m venv .venv .\.venv\Scripts\pip install -r requirements.txtUruchom test smoke (sprawdza oba silniki + cały pipeline end-to-end):
.\.venv\Scripts\python.exe test_smoke.pyPodłącz do Antigravity / Claude Desktop / Cursor:
W folderze
plugin/video-director/znajdziesz gotową paczkę pluginu do Antigravity (z instrukcją reżyserskąSKILL.mdi ikonąlogo.svg).Przykładową konfigurację MCP znajdziesz w
mcp_config.example.json.Jeśli trzymasz aplikacje w innych katalogach niż obok siebie, ustaw zmienne środowiskowe
VIDEO_TRIMMER_DIR,VIDEO_MONTAGE_DIRoraz opcjonalnieVIDEO_MONTAGE_OUTPUT_DIR.
Przykładowe polecenia do AI
„Zrób dynamiczny 45-sekundowy klip 9:16 z najlepszych momentów mojego długiego nagrania, dodaj Impact FX przy najmocniejszych akcjach i podkład z pliku
muzyka.mp3.”„Przejrzyj folder z moimi krótkimi klipami, wytnij nudne wstępy i zmontuj kompilację na YouTube 16:9 z płynnymi przejściami.”
„Wykryj najbardziej emocjonujące momenty w moim filmie i pokaż mi plan ze storyboardem do zatwierdzenia przed montażem.”
FAQ (Polski)
Nie. Całe przetwarzanie wideo, cięcie, efekty i renderowanie FFmpeg odbywa się w 100% lokalnie na Twoim komputerze. Agent AI ogląda jedynie lekkie, wygenerowane lokalnie arkusze miniatur JPG (storyboardy), żeby świadomie wybrać najlepsze sekundy cięcia i punkty uderzeń (X, Y).
Nigdy. Przycięte wycinki trafiają do roboczego folderu sesji (work/trimmed/), a gotowy film zapisuje się jako nowy plik MP4 w folderze output/.
Tak! Obie aplikacje (Video-Trimmer oraz Video-Montage) to pełnoprawne, samodzielne aplikacje z nowoczesnym interfejsem webowym PL/EN — ten serwer MCP pozwala dodatkowo oddać ich silniki pod kontrolę agenta AI.
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
FFmpeg as a service for AI agents: typed video editing tools, async jobs, downloadable outputs.
Transform video, audio and images, and generate media from prompts. FFmpeg, captions, models.
Orccut: a real timeline video editor for AI agents - journaled edits, FFmpeg/MLT rendering
AI video editor your agent can drive: plan scenes, edit a multi-track timeline, and render MP4s.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to edit video locally through FFmpeg: probing media, validating and previewing JSON edit projects, rendering short-form clips with captions, reframing, transitions and ducked music. Also analyses existing videos and applies or saves reusable format templates, without cloud services or API keys.1Apache 2.0
- AlicenseAqualityBmaintenanceEnables AI agents to perform deterministic FFmpeg video edits—silence removal, vertical reframing, 3D LUT grading, and metadata/audio extraction—and generate native CapCut Desktop drafts, with a local web studio for previewing and batch processing.51MIT
- AlicenseNot gradedqualityBmaintenanceEnables local-first video editing for creators and AI agents through tools for auto-editing, shorts, captions, music, QC, transcription, reframing, rendering, and project handoff while footage stays on the user's machine.318 npm4MIT
- AlicenseBqualityCmaintenanceEnables AI agents to edit video through a structured timeline with scene detection, word-timestamped transcripts, captions, overlays, music, and preview renders for self-checking, rendered locally with ffmpeg.37Apache 2.0