mcp-ffmpeg
MCP server for video/audio processing with FFmpeg. Gives AI assistants (Claude, etc.) the ability to work with media files — convert, trim, compress, extract audio, add subtitles, overlays, and more.
Built with Rust. Communicates over stdio using the Model Context Protocol.
Requirements
- FFmpeg and
ffprobeinstalled and available inPATH - Rust toolchain (to build from source)
Installation
git clone https://github.com/aitherlab-dev/mcp-ffmpeg.git
cd mcp-ffmpeg
cargo build --release
The binary will be at target/release/mcp-ffmpeg.
Configuration
Add to your Claude Code config (~/.claude.json):
{
"mcpServers": {
"mcp-ffmpeg": {
"command": "/path/to/mcp-ffmpeg",
"type": "stdio"
}
}
}
Tools
Examples
Ask your AI assistant:
- "Get info about video.mp4"
- "Convert this video to webm"
- "Cut the first 30 seconds from the video"
- "Compress the video, medium quality"
- "Extract audio as mp3"
- "Take 10 frames evenly spaced from the video"
- "Merge part1.mp4 and part2.mp4"
- "Add subtitles from subs.srt"
- "Put a watermark logo.png in the bottom-right corner"
- "Make it 9:16 for Instagram Reels"
License
MIT