FFmpeg MCP Server
Run FFmpeg and FFprobe from an AI agent with typed tools and GPU encoding
FFmpeg MCP Server is a free MCP server for design and media. It runs locally on your machine and is started by your AI client.
- Pricing
- Free
- Platforms
- CLI, macOS, Linux
- Runs
- Locally
- What it can do
- Can change data (3 tools)
- Version
- 0.7.2
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add ffmpeg-mcp-server -- npx -y @ash_j1997/ffmpeg-mcp-serverAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"ffmpeg-mcp-server": {
"command": "npx",
"args": [
"-y",
"@ash_j1997/ffmpeg-mcp-server"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"ffmpeg-mcp-server": {
"command": "npx",
"args": [
"-y",
"@ash_j1997/ffmpeg-mcp-server"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"ffmpeg-mcp-server": {
"command": "npx",
"args": [
"-y",
"@ash_j1997/ffmpeg-mcp-server"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"ffmpeg-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@ash_j1997/ffmpeg-mcp-server"
]
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add ffmpeg-mcp-server -- npx -y @ash_j1997/ffmpeg-mcp-serverOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.ffmpeg-mcp-server]
command = "npx"
args = ["-y", "@ash_j1997/ffmpeg-mcp-server"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"ffmpeg-mcp-server": {
"command": "npx",
"args": [
"-y",
"@ash_j1997/ffmpeg-mcp-server"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "ffmpeg-mcp-server": { "command": "npx", "args": [ "-y", "@ash_j1997/ffmpeg-mcp-server" ] } } }Or run: gemini mcp add -s user ffmpeg-mcp-server npx -- -y @ash_j1997/ffmpeg-mcp-server
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "ffmpeg-mcp-server": { "command": "npx", "args": [ "-y", "@ash_j1997/ffmpeg-mcp-server" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "ffmpeg-mcp-server": { "command": "npx", "args": [ "-y", "@ash_j1997/ffmpeg-mcp-server" ] } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "ffmpeg-mcp-server": { "command": "npx", "args": [ "-y", "@ash_j1997/ffmpeg-mcp-server" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "ffmpeg-mcp-server": { "command": "npx", "args": [ "-y", "@ash_j1997/ffmpeg-mcp-server" ] } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "ffmpeg-mcp-server": { "command": "npx", "args": [ "-y", "@ash_j1997/ffmpeg-mcp-server" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "ffmpeg-mcp-server": { "command": "npx", "args": [ "-y", "@ash_j1997/ffmpeg-mcp-server" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "ffmpeg-mcp-server": { "command": "npx", "args": [ "-y", "@ash_j1997/ffmpeg-mcp-server" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About FFmpeg MCP Server
The reason this server exists, per its README, is that agents often invent invalid FFmpeg flags or incompatible pixel formats. Instead of writing a command line, the model fills in typed parameters such as an input path and a preset, and the server runs a valid command locally with error handling and progress notifications.
It detects hardware encoders automatically, including VideoToolbox on macOS and NVENC, Quick Sync, AMF and VA-API elsewhere, and cancels child FFmpeg processes when the client aborts. Image-producing tools such as thumbnails, waveforms and keyframe contact sheets can return base64 previews so vision models can look at the media. Social-video helpers reformat landscape clips to 9:16 with blurred borders, burn in subtitles and stack split-screen reels.
Two resources describe the local FFmpeg install and platform presets, and two prompts cover a social clip workflow and Whisper audio prep. FFmpeg and FFprobe must be installed locally and Node.js 18 or later is needed.
Tools this server provides (19)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 3 of 19 tools change data; 16 names don't say.
From the server's own tool labels and tool names; not verified by us.
- media_probe
- Inspect a file with ffprobe and return metadata as JSON.
- media_convert
- Convert video and audio formats with presets and GPU acceleration.
- trim_media
- Cut a segment by stream copy or re-encoding.
- extract_audio
- Pull an audio track, including a 16 kHz mono WAV preset.
- extract_thumbnail
- Capture a still image at a timestamp.
- compress_video
- Compress to a target size.
- reformat_aspect_ratio
- Change to 9:16, 1:1 or 4:5.
- create_split_screenName suggests: changes
- Stack two videos top-bottom or side by side.
- trim_silence
- Remove silent pauses while keeping sync.
- concat_media
- Join files in order.
- generate_waveform
- Create a PNG waveform image.
- add_subtitlesName suggests: changes
- Embed SRT or VTT tracks without re-encoding.
- burn_subtitles
- Hardcode styled subtitles onto frames.
- extract_keyframes
- Extract frames and build a contact sheet.
- normalize_audio
- Normalise loudness with EBU R128.
- add_overlayName suggests: changes
- Place a watermark image on video.
- change_speed
- Speed up or slow down with pitch correction.
- mux_media
- Combine or replace audio and video streams.
- detect_scenes
- Detect cut points and scene transitions.
What it does
- Typed tools
- 19 tools with schemas, so the agent never writes raw FFmpeg flags.
- Hardware acceleration
- Uses VideoToolbox, NVENC, Quick Sync, AMF or VA-API when present.
- Progress and cancel
- Reports live progress and stops processes on abort.
- Vision previews
- Returns thumbnails, waveforms and contact sheets as base64 images.
- Social formats
- Vertical reformatting, burned subtitles and split-screen reels.
- Audio cleanup
- Loudness normalisation, silence trimming and Whisper-ready WAV extraction.
Good for
- Compress a clip to fit a size limit for a pull request or chat
- Turn landscape video into a vertical short with captions
- Normalise podcast audio to -16 LUFS
- Find scene cuts in a video for editing
Pricing
Free
Free npm package
FFmpeg MCP Server FAQ
What do I need installed?
Node.js 18 or later plus FFmpeg and FFprobe on your machine.
Does FFmpeg MCP Server process files locally?
Yes, the server runs FFmpeg locally and communicates over stdio.
How many tools are there?
19 tools, such as media_probe, media_convert and compress_video.
How do I run FFmpeg MCP Server?
Use npx with the @ash_j1997/ffmpeg-mcp-server package in your client config.
Is FFmpeg MCP Server free?
Yes. FFmpeg MCP Server is free to use.
How do I add FFmpeg MCP Server to Claude Code?
Run this command in your terminal: claude mcp add ffmpeg-mcp-server -- npx -y @ash_j1997/ffmpeg-mcp-server
What are the best alternatives to FFmpeg MCP Server?
The closest alternatives to FFmpeg MCP Server are REA, HyperFrames by HeyGen, Context7, Chrome DevTools MCP and Codebase Memory.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.


