FFmpeg MCP
Enables video and audio processing through FFmpeg, supporting format conversion, compression, trimming, audio extraction, frame extraction, video merging, and subtitle burning through natural language commands.
What is FFmpeg MCP?
FFmpeg MCP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to enables video and audio processing through ffmpeg, supporting format conversion, compression, trimming, audio extraction, frame extraction, video merging, and subtitle burning through natural language...
Enables video and audio processing through FFmpeg, supporting format conversion, compression, trimming, audio extraction, frame extraction, video merging, and subtitle burning through natural language commands.
This server falls under the APIs category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Enables video and audio processing through FFmpeg, supportin
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx ffmpeg-mcpConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use FFmpeg MCP
FFmpeg MCP (also published as ffmpeg-mcp-lite) is a Python-based MCP server that wraps FFmpeg, enabling AI assistants to perform video and audio processing through natural language commands. It exposes eight tools covering format conversion, compression, trimming, audio extraction, frame extraction, video merging, and subtitle burning. Instead of remembering FFmpeg command-line syntax, users can describe what they want and the server constructs and executes the appropriate FFmpeg command. FFprobe integration provides media metadata inspection before processing.
Prerequisites
- Python 3.10 or later with pip or uv installed
- FFmpeg installed on your system (ffmpeg and ffprobe binaries on PATH)
- An MCP client such as Claude Desktop or Claude Code
- Sufficient disk space for output files (defaults to ~/Downloads)
Install FFmpeg on your system
The MCP server is a wrapper around the FFmpeg binary, so FFmpeg must be installed separately on your operating system before installing the Python package.
# macOS
brew install ffmpeg
# Windows
winget install FFmpeg
# Ubuntu/Debian
sudo apt install ffmpegInstall the ffmpeg-mcp-lite Python package
Install the package using pip or uv. The uv approach is recommended for isolated environments and faster installs.
# Using pip
pip install ffmpeg-mcp-lite
# Using uv
uv pip install ffmpeg-mcp-liteConfigure your MCP client
Add the FFmpeg MCP server to your client configuration. Use uvx to run the package in an isolated environment. Optionally set FFMPEG_OUTPUT_DIR to control where output files are saved.
{
"mcpServers": {
"ffmpeg": {
"command": "uvx",
"args": ["ffmpeg-mcp-lite"],
"env": {
"FFMPEG_OUTPUT_DIR": "/Users/you/Downloads"
}
}
}
}Add via Claude Code CLI (alternative)
If you use Claude Code, you can register the server with a single command instead of editing the config file manually.
claude mcp add ffmpeg uvx ffmpeg-mcp-liteUnderstand the available tools
The server exposes eight ffmpeg_ prefixed tools: ffmpeg_get_info (media metadata via ffprobe), ffmpeg_convert (format/codec conversion), ffmpeg_compress (file size reduction), ffmpeg_trim (extract a time range), ffmpeg_extract_audio (isolate audio track), ffmpeg_extract_frames (capture still images), ffmpeg_merge (concatenate videos), and ffmpeg_add_subtitles (hardcode subtitle overlays).
Configure custom FFmpeg binary paths (optional)
If FFmpeg is not on your PATH, specify exact binary locations using environment variables in your MCP client config.
{
"mcpServers": {
"ffmpeg": {
"command": "uvx",
"args": ["ffmpeg-mcp-lite"],
"env": {
"FFMPEG_PATH": "/usr/local/bin/ffmpeg",
"FFPROBE_PATH": "/usr/local/bin/ffprobe",
"FFMPEG_OUTPUT_DIR": "/tmp/ffmpeg-output"
}
}
}
}FFmpeg MCP Examples
Client configuration
Standard Claude Desktop configuration for FFmpeg MCP using uvx with a custom output directory.
{
"mcpServers": {
"ffmpeg": {
"command": "uvx",
"args": ["ffmpeg-mcp-lite"],
"env": {
"FFMPEG_OUTPUT_DIR": "/Users/you/Downloads"
}
}
}
}Prompts to try
Use natural language to describe video and audio processing tasks to Claude once FFmpeg MCP is connected.
- "Convert /tmp/video.mp4 to WebM format"
- "Compress /tmp/large_video.mp4 to reduce its file size using the fast preset"
- "Trim /tmp/recording.mp4 from 00:01:00 to 00:02:30 and save the clip"
- "Extract the audio from /tmp/video.mp4 as an MP3 file"
- "Merge /tmp/part1.mp4 and /tmp/part2.mp4 into a single video"
- "Add subtitles from /tmp/subs.srt to /tmp/movie.mp4"Troubleshooting FFmpeg MCP
ffmpeg command not found or binary not accessible
Install FFmpeg using your system package manager (brew install ffmpeg on macOS, apt install ffmpeg on Ubuntu). If FFmpeg is installed but not on PATH, set FFMPEG_PATH and FFPROBE_PATH environment variables in your MCP client config to the exact binary paths.
Output files are not where expected
By default, output files are saved to ~/Downloads. Set FFMPEG_OUTPUT_DIR in the env block to a specific directory. Ensure the directory exists and is writable by the process running the MCP server.
Format conversion fails with codec errors
Use ffmpeg_get_info first to inspect the source file's codec and container details. Some conversions require specific codec libraries to be compiled into your FFmpeg installation. Install FFmpeg with full codec support (brew install ffmpeg installs most codecs on macOS by default).
Frequently Asked Questions about FFmpeg MCP
What is FFmpeg MCP?
FFmpeg MCP is a Model Context Protocol (MCP) server that enables video and audio processing through ffmpeg, supporting format conversion, compression, trimming, audio extraction, frame extraction, video merging, and subtitle burning through natural language commands. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install FFmpeg MCP?
Follow the installation instructions on the FFmpeg MCP GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with FFmpeg MCP?
FFmpeg MCP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is FFmpeg MCP free to use?
Yes, FFmpeg MCP is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.
FFmpeg MCP Alternatives โ Similar APIs Servers
Looking for alternatives to FFmpeg MCP? Here are other popular apis servers you can use with Claude, Cursor, and VS Code.
Kong
โ 43.4k๐ฆ The API and AI Gateway
API Mega List
โ 5.4kThis GitHub repo is a powerhouse collection of APIs you can start using immediately to build everything from simple automations to full-scale applications. One of the most valuable API lists on GitHubโperiod. ๐ช
Fetch
โ 5.4kFetch web content and convert to markdown for AI consumption
Fusio
โ 2.1kSelf-Hosted API Management for Builders
Korean Law
โ 1.8k๊ตญ๊ฐ๋ฒ๋ น์ ๋ณดMCP v4.0 | ๋ฒ์ ์ฒ 41๊ฐ API โ 17๊ฐ MCP ๋๊ตฌ. ๋ฒ๋ นยทํ๋กยท์กฐ๋ก ๊ฒ์ + LLM ํ๊ฐ ๋ฐฉ์ง ์ธ์ฉ๊ฒ์ฆ + ์กฐ๋ฌธ ์ํฅ ๊ทธ๋ํ(impact_map) + ์์ ๋น๊ต ์๋ diff(time_travel) + ์๋ฏผ 5๋จ๊ณ ์คํ ๊ฐ์ด๋(action_plan) | 41 Korean legal APIs โ 17 MCP tools
RuleGo
โ 1.5kโ๏ธRuleGo is a lightweight, high-performance, embedded, next-generation component orchestration rule engine framework for Go.
Browse More APIs MCP Servers
Explore all apis servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up FFmpeg MCP in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use FFmpeg MCP?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.