mcp-ffmpeg
Provides tools for running FFmpeg video processing jobs such as trimming, format conversion, resolution changes, subtitle conversion, audio extraction, and transcript extraction.
Click on "Install 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-ffmpegtrim the first 30 seconds of intro.mp4"
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-FFMPEG
An MCP (Model Context Protocol) server and CLI for running FFmpeg jobs via a job queue with configurable parallel workers.
Features
Job queue — Enqueue video jobs; workers process them in the background.
Parallel workers — Run multiple jobs at once (number set in config).
Two interfaces
CLI — Interactive menu to pick an action and enter parameters.
MCP server — Tools for AI assistants (e.g. Claude Desktop) to enqueue and check jobs.
Actions
Trim — Cut a segment from a video (start time + duration).
Change video format — Convert to another container (e.g. mp4 → mkv) without re-encoding.
Change resolution — Convert to another resolution, height and width provided by user.
Change Subtitle format — Convert to another subtitle format (e.g. srt -> vtt).
Extract Audio - Extract audio from an input video file
Extract video transcript - Extracts the transcript of a video file
Caching — Same inputs produce the same job ID; completed jobs are reused unless
force_runis used.
Related MCP server: MCP FFmpeg Helper
Requirements
Python 3.13+
FFmpeg — Must be on your system PATH or set via
FFMPEG_PATH(see Configuration).
Installation
Choose one of the following:
Option 1: Install from PyPI
pip install mcp-ffmpegOr with uv:
uv add mcp-ffmpegOption 2: Clone the repository
git clone https://github.com/priyanshum143/MCP-FFMPEG.git
cd MCP-FFMPEGThen install from the project root:
# With uv
uv sync
# Or with pip (editable install)
pip install -e .Configuration
FFmpeg path
Default: use
ffmpegfrom system PATH.Optional: set env var
FFMPEG_PATHto the full path of the FFmpeg executable (e.g. for Claude Desktop).
Worker and paths
Editsrc/MCP_ffmpeg/utils/variables.py(classCommonVariables):PARALLEL_EXECUTIONS_ALLOWED— Number of jobs that can run at once (default: 3).WORKER_RE_RUN_TIME— Seconds to wait between queue checks (default: 10).OUTPUT_DIR/LOGS_DIR— Where job outputs and logs are stored (default:outputs/andlogs/under project root).
Running
CLI (interactive)
You get a menu: choose an action, enter the requested parameters. Jobs are enqueued and processed by background workers. Logs show which worker picked which job.
If you installed from PyPI:
mcp-ffmpeg-cliIf you cloned the repo:
# With uv (from project root)
uv run python -m MCP_ffmpeg.main
# Or after pip install -e .
mcp-ffmpeg-cliMCP server (e.g. Claude Desktop)
Use the mcp-ffmpeg command so the MCP server runs over stdio.
If you installed from PyPI: use mcp-ffmpeg in your MCP config.
If you cloned the repo: after pip install -e ., use mcp-ffmpeg the same way. If you used uv sync, use uv run mcp-ffmpeg in the terminal, or in your MCP config use the path to your venv’s mcp-ffmpeg script so the server runs in that environment.
Add this to your %APPDATA%\Claude\claude_desktop_config.json (Windows) or the equivalent config for your MCP client:
{
"mcpServers": {
"mcp-ffmpeg": {
"command": "mcp-ffmpeg",
"env": {
"FFMPEG_PATH": "C:\\path\\to\\your\\ffmpeg.exe"
}
}
}
}On macOS/Linux, use your normal config path and set FFMPEG_PATH to the path of your ffmpeg binary if needed.
Project layout
src/MCP_ffmpeg/
├── main.py # CLI entrypoint
├── mcp_server.py # MCP server entrypoint + tool definitions
├── actions/ # FFmpeg actions (trim, change format)
├── jobs/ # Job queue, manager, worker
└── utils/ # Logging, paths, CLI helpersoutputs/ — One folder per job (by job ID), containing
job_details.json, output file, and optionalffmpeg_logs.log.logs/ — Application logs.
License
No license required, Clone/Fork the repo and enjoy.
Author
Priyanshu CSE 2025 Graduate | Software Engineer at Amagi Media Labs
GitHub: priyanshum143
LinkedIn: Priyanshu Mehta
Project Repository: MCP-FFMPEG
PyPi: MCP-FFmpeg
Feel free to reach out for collaborations or if you encounter any issues!
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceEnables video editing using natural language commands powered by FFmpeg, supporting operations like trimming, merging, format conversion, and more with real-time progress tracking and error handling.Last updated51
- AlicenseAqualityFmaintenanceA lightweight server that exposes FFmpeg's video processing capabilities to AI assistants through the Model Context Protocol (MCP), supporting operations like video format conversion, audio extraction, and adding watermarks.Last updated89525MIT
- AlicenseBqualityDmaintenanceProvides powerful video and audio editing capabilities through FFmpeg, enabling AI assistants to perform professional-grade operations including format conversion, trimming, overlays, transitions, and advanced audio processing.Last updated2782MIT
- AlicenseAqualityCmaintenanceEnables video and audio processing through FFmpeg, supporting format conversion, compression, trimming, audio extraction, frame extraction, video merging, and subtitle burning through natural language commands.Last updated826MIT
Related MCP Connectors
Serverless media processing: FFmpeg jobs, timeline composition, captions, and compression.
A real timeline video editor for AI agents: journaled edits, FFmpeg/MLT rendering, exports
Multimodal video analysis MCP — transcription, vision, and OCR for any video URL.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/priyanshum143/MCP-FFMPEG'
If you have feedback or need assistance with the MCP directory API, please join our Discord server