mcp-video-studio
Provides atomic tools for programmatic FFmpeg video editing, enabling synchronized silence removal, vertical 9:16 reframing, 3D LUT grading, media metadata inspection and audio extraction, and deterministic media transformations on disk.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-video-studio Remove the silence from interview.mp4 and make a vertical Shorts version"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-video-studio
A Model Context Protocol (MCP) server and local web studio for programmatic FFmpeg video editing and native CapCut Desktop draft generation.
I built this project because automating video edits through Claude and Cursor was frustrating. Large language models understand edit pacing, timestamps, and color grading intent, but turning those decisions into complex FFmpeg filtergraphs or manual timeline cuts in an NLE took too many repetitive steps.
This server exposes atomic, deterministic tools over stdio so AI agents can execute media transformations on disk and export ready-to-open CapCut Desktop projects without intermediate manual timeline reconstruction.
Capabilities
Silence Removal (
remove_silence): Identifies silent intervals usingsilencedetect, applies boundary padding buffers to prevent clipped speech onsets/decays, and slices non-silent segments viatrim/atrim+concatfilters to preserve A/V sync.Vertical 9:16 Reframing (
smart_crop_vertical): Converts horizontal 16:9 footage into vertical Shorts/Reels/TikTok format using ambient background blur padding (blur_pad), direct center crop (center_crop), or letterboxing (fit_black_bars).3D LUT Grading (
apply_lut_grade): Applies.cubeand.3dlLook-Up Tables with Windows-safe path escaping and opacity blending (blend=all_opacity).Media Inspection (
extract_audio_and_metadata): UsesffprobeJSON parsing to inspect codecs, resolutions, aspect ratios, framerates, and sample rates, with optional audio stream ripping.CapCut Draft Synthesis (
generate_capcut_draft): Generates validdraft_content.jsonanddraft_meta_info.jsonproject folders with microsecond precision ($1\text{s} = 1,000,000,\mu\text{s}$) that CapCut Desktop loads directly.Local NLE Web Studio (
mcp-video-studio-ui): A dark-themed local browser studio (DaVinci/Linear style) for manual inspection, real-time preview, and batch processing.
Related MCP server: WeCut
Installation
Prerequisites
Python 3.10 or higher.
FFmpeg and
ffprobeinstalled and accessible in your systemPATH.Windows:
winget install Gyan.FFmpegmacOS:
brew install ffmpegLinux:
sudo apt-get install -y ffmpeg
Install via pip or uv
# Direct install
pip install git+https://github.com/mehmeterenozturkk-max/mcp-video-studio.git
# Or with uv
uv pip install git+https://github.com/mehmeterenozturkk-max/mcp-video-studio.gitLocal Development Setup
git clone https://github.com/mehmeterenozturkk-max/mcp-video-studio.git
cd mcp-video-studio
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv pip install -e ".[dev]"AI Agent Integration
Claude Desktop
Add mcp-video-studio to your Claude Desktop configuration:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"video-studio": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/mehmeterenozturkk-max/mcp-video-studio.git",
"mcp-video-studio"
]
}
}
}If you installed the package locally in a virtualenv:
{
"mcpServers": {
"video-studio": {
"command": "python",
"args": [
"-m",
"mcp_video_studio.server"
]
}
}
}Cursor & Claude Code
In .cursor/mcp.json or your MCP client configuration:
{
"mcpServers": {
"video-studio": {
"command": "mcp-video-studio",
"transport": "stdio"
}
}
}Local Desktop Web Studio
For previewing edits outside of chat, run the local desktop studio:
mcp-video-studio-ui
# Or directly with Python:
python -m mcp_video_studio.studio_uiNavigate to http://127.0.0.1:7860 to access the interface:
Media Pool & Inspector: Drag-and-drop or path loading with real-time stream metadata inspection.
Viewport: Video playback with timecode (
HH:MM:SS:FF) and A/B switcher for original vs rendered video.Parameters: Interactive controls for silence threshold (dB), vertical reframing, 3D LUT blending, and CapCut export.
FFmpeg Console: Live console displaying exact command lines and execution output.
Tool Reference
remove_silence
Cuts dead silence while maintaining audio-video synchronization.
Parameter | Type | Default | Description |
|
| required | Absolute or relative path to media file. |
|
|
| Output destination. Defaults to |
|
|
| Decibel threshold below which sound is silence. |
|
|
| Minimum silence length (seconds) to trigger cut. |
|
|
| Voice boundary buffer (seconds) before/after speech. |
smart_crop_vertical
Reframes horizontal footage into 9:16 vertical video.
Parameter | Type | Default | Description |
|
| required | Source video path. |
|
|
| Output destination. |
|
|
|
|
|
|
| Canvas width. |
|
|
| Canvas height. |
apply_lut_grade
Applies a 3D LUT (.cube or .3dl) with opacity blending.
Parameter | Type | Default | Description |
|
| required | Source video path. |
|
| required | Path to |
|
|
| Output destination. |
|
|
| Blend opacity (0.0 to 1.0). |
extract_audio_and_metadata
Inspects stream properties and optionally extracts audio.
Parameter | Type | Default | Description |
|
| required | Source media file. |
|
|
| Extract audio stream. |
|
|
| Audio format ( |
|
|
| Destination audio path. |
generate_capcut_draft
Generates an openable CapCut Desktop draft folder.
Parameter | Type | Default | Description |
|
| required | Folder and project title. |
|
| required | List of clips ( |
|
|
| Secondary audio tracks ( |
|
|
| Defaults to system CapCut drafts folder. |
|
|
| Project canvas width. |
|
|
| Project canvas height. |
|
|
| Project framerate. |
Technical Notes
Filtergraph Synchronization
Standard silenceremove filters in FFmpeg only strip audio samples, leading to severe A/V desynchronization when applied to video containers. mcp-video-studio uses silencedetect in a discovery pass to compute valid speech intervals, adds safety padding, and constructs a synchronized trim/atrim + concat filtergraph:
[0:v]trim=start=S0:end=E0,setpts=PTS-STARTPTS[v0];
[0:a]atrim=start=S0:end=E0,asetpts=PTS-STARTPTS[a0];
...
[v0][a0][v1][a1]concat=n=N:v=1:a=1[outv][outa]CapCut Draft Schemas
CapCut Desktop uses microsecond timestamps ($1\text{s} = 1,000,000,\mu\text{s}$) across its track segments, speeds, and material dictionaries. The draft generator calculates cross-referenced UUID keys for video assets, speeds, and canvas configs so projects appear immediately in the editor's home screen under "Recent Drafts".
Testing
Run tests with pytest:
pytest -vAll video transformations are validated against dynamic synthetic test streams generated via FFmpeg lavfi inputs.
License
MIT License. See LICENSE for details.
Available Tools
5 toolsapply_lut_gradeA
Apply professional 3D Look-Up Table (.cube or .3dl) color grading to a video.
Args: input_path: Full file path to the input video. lut_path: Path to the .cube or .3dl LUT file. output_path: Optional output path. Defaults to '{name}_graded.{ext}'. intensity: Grading strength multiplier from 0.0 (original) to 1.0 (100% LUT grade).
Returns: JSON string with LUT details, intensity applied, and output file path.
Inputs: lut_path (required), input_path (required), intensity, output_path. Returns: result
extract_audio_and_metadataA
Extract complete media metadata (FPS, resolution, bitrate, codecs) and optionally extract audio.
Args: input_path: Path to the media file. extract_audio: Whether to rip the audio track to a standalone file (default: True). audio_format: Format for extracted audio ('wav', 'mp3', 'aac', 'flac'). output_audio_path: Optional destination path for extracted audio.
Returns: JSON string containing comprehensive audio/video stream parameters and audio file path.
Inputs: input_path (required), audio_format, extract_audio, output_audio_path. Returns: result
generate_capcut_draftA
Generate native CapCut Desktop draft_content.json and draft_meta_info.json project files.
Directly importable into CapCut Desktop / Jianying Pro without manual timeline setup.
Args: project_name: Name of the project (e.g. 'TikTok_Highlights_01'). clips: List of video clip definitions with 'path', optional 'start_sec', 'end_sec', 'speed', 'volume'. audio_tracks: Optional list of background music or sound effects with 'path', 'timeline_start_sec', 'volume'. output_dir: Base directory where project will be saved. Defaults to CapCut's native drafts directory. width: Canvas width (default: 1080). height: Canvas height (default: 1920). fps: Timeline frame rate (default: 30.0). ratio: Aspect ratio ('9:16', '16:9', '1:1', 'original').
Returns: JSON string with project directory, JSON file paths, timeline duration, and opening instructions.
Inputs: clips (required), project_name (required), fps, ratio, +4 more. Returns: result
remove_silenceA
Cut silent gaps from a video or audio file while keeping video and audio perfectly in sync.
Args: input_path: Full file path to the source video or audio. output_path: Optional explicit output path. Defaults to '{name}_no_silence.{ext}'. db_threshold: Volume threshold in dB below which sound is considered silence (e.g. -30.0). min_silence_duration: Minimum silence length in seconds to trigger a cut (default: 0.5). padding: Seconds of voice buffer retained before and after speech to avoid clipping (default: 0.1).
Returns: JSON string containing cut statistics, durations, reduction percentage, and output path.
Inputs: input_path (required), padding, output_path, db_threshold, +1 more. Returns: result
smart_crop_verticalA
Transform horizontal 16:9 video into 9:16 vertical Shorts, Reels, or TikTok format.
Args: input_path: Full file path to the source video. output_path: Optional output path. Defaults to '{name}vertical{mode}.{ext}'. mode: Framing method: - 'blur_pad': (Default) Blurred video background with centered sharp original. - 'center_crop': Direct 9:16 crop from the center. - 'fit_black_bars': Scale to fit with black letterbox padding. target_width: Canvas width (default: 1080). target_height: Canvas height (default: 1920).
Returns: JSON string with framing details, target resolution, and output file path.
Inputs: input_path (required), mode, output_path, target_width, +1 more. Returns: result
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 targets a clearly distinct operation: silence removal, vertical reframing, LUT color grading, metadata/audio extraction, and CapCut draft generation. There is essentially no overlap in purpose or input semantics, so an agent can select the right tool unambiguously.
All names use consistent snake_case with verb-led phrasing (remove_silence, apply_lut_grade, extract_audio_and_metadata, generate_capcut_draft), with smart_crop_vertical being the only minor adjective-led variant. The convention is predictable and readable throughout.
Five tools is a reasonable, well-scoped set where each earns its place in a short-form video pipeline. It leans slightly thin for a 'video studio' that could plausibly offer basic trim/concat, but nothing is bloated or redundant.
The tools cover a coherent shorts-production workflow (inspect → silence-cut → vertical crop → grade → assemble CapCut project). Minor gaps exist around primitive editing operations like trimming, concatenation, or subtitle generation, but these can be worked around via the CapCut draft output.
Maintenance
Related MCP Connectors
FFmpeg as a service for AI agents: typed video editing tools, async jobs, downloadable outputs.
Open-source AI video editor: cut, caption, clip and animate real Revline projects from your agent.
Transform video, audio and images, and generate media from prompts. FFmpeg, captions, models.
AI video editor your agent can drive: plan scenes, edit a multi-track timeline, and render MP4s.
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables AI coding agents to programmatically assemble vertical videos and manage local CapCut Desktop drafts, including AI background removal, audio mastering to -14 LUFS or Demucs vocal isolation, music auto-ducking, punch zooms, karaoke captions, PiP proof overlays, hook badges, safe-zone linting, proxy previews, and EN→ES cloning/dubbing. It outputs real CapCut draft JSON ready for review and export.172MIT
- 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
- 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
- AlicenseNot gradedqualityAmaintenanceLocal FFmpeg video and audio editing for coding agents: 42 tools with a machine-readable contract and an MCP server. Cut, captions, reframe, loudness, platform exports. No cloud, no API keys.17,616 npm9,468MIT