MCP server for executing FFmpeg commands

MCP server for executing FFmpeg commands

mcp-ffmpeg-tools•bygamhoi

An open-source Python MCP server that enables LLMs to run FFmpeg commands, inspect media with ffprobe, capture screenshots, and validate commands against FFmpeg source code.

License: Not specified•Runtime: Awaiting documentation review•Category: media design

WHAT IT DOES

  • •Executes FFmpeg commands through an MCP interface and returns detailed execution results and errors.
  • •Provides ffprobe and screenshot tools to inspect media results such as resolution, bitrate, video layout, and quality.
  • •Exposes FFmpeg source code via tools so commands can be validated and corrected.
  • •Can be run in HTTP mode through Docker, exposing the MCP API over an HTTP port.

BEST FOR

  • •Extracting all media streams from a file and saving the outputs to a chosen path.
  • •Overlaying two videos, including scaling and positioning one over another.
  • •Processing local media inside a Docker deployment by mounting a host directory into the container.

ABOUT MCP-FFMPEG-TOOLS

MCP server for executing FFmpeg commands is cataloged as an MCP server attributed to gamhoi. An open-source Python MCP server that enables LLMs to run FFmpeg commands, inspect media with ffprobe, capture screenshots, and validate commands against FFmpeg source code. It is categorized under media design. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP server for executing FFmpeg commands are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What tools does the server provide to the LLM?

It provides execute_ffmpeg to run commands, execute_ffprobe to inspect results, get_screenshot to view media, and ls_ffmpeg_source_code plus get_ffmpeg_source_code to validate commands against FFmpeg source.

Can the server run over HTTP instead of stdio?

Yes, the server can run in HTTP mode via Docker, exposing the MCP API at the /mcp endpoint on an HTTP port.

Upstream README

View this exact version on GitHub

README.md · efe21d9206a9 · Fetched 2026-11-13 11:31:23 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

mcp-ffmpeg-tools

An open-source Python MCP (Model-Command Protocol) server designed to enable Large Language Models (LLMs) to execute FFmpeg commands, receive execution results, and validate commands against FFmpeg source code.

Prerequisites

Before installing mcp-ffmpeg-tools, you need to have FFmpeg installed on your system:

Windows

  1. Download FFmpeg from ffmpeg.org
  2. Extract the archive to a location of your choice
  3. Add the bin directory to your system PATH

macOS

brew install ffmpeg

Linux (Ubuntu/Debian)

sudo apt update
sudo apt install ffmpeg

Linux (Fedora)

sudo dnf install ffmpeg

Features

  • Execute FFmpeg commands through an MCP interface
  • Receive detailed execution results and error messages
  • Access FFmpeg source code for command correction
  • Cross-platform support (Windows, macOS, Linux)
  • Environment management using uv

Installation

  1. Clone the repository:
git clone https://github.com/gamhoi/mcp-ffmpeg-tools.git
cd mcp-ffmpeg-tools
  1. Install using uv:
uv venv
uv pip install -e .

The installation process will:

  1. Verify that FFmpeg is installed and accessible in your system PATH
  2. Download the corresponding FFmpeg source code for validation
  3. Install the Python package and its dependencies

If FFmpeg is not found or the source code download fails, the installation will fail.

Usage

Usage with Claude Desktop

Add the following configuration to your Claude Desktop settings:

{
    "mcpServers": {
        "mcp-ffmpeg-tools": {
            "command": "uv",
            "args": [
                "--directory",
                "PATH_TO/mcp-ffmpeg-tools",
                "run",
                "ffmpeg-tools"
            ]
        }
    }
}

Running Tests

uv run python3 client/test.py

Prompt Examples

Base prompt

Help me perform media conversion tasks using FFmpeg. You can:
- use tool:execute_ffmpeg to run FFmpeg commands
- use tool:execute_ffprobe to inspect results (e.g., resolution, bitrate)
- use tool:get_screenshot to inspect results (e.g., video layout, quality)
- use tool:ls_ffmpeg_source_code and tool:get_ffmpeg_source_code to validate commands using FFmpeg source code

Extract video and audio

Extract all media streams from the file 'YOU_FILE_PATH' and save outputs to 'YOU_OUTPUT_PATH'

Overlay 2 videos

Overlay file1 'YOU_FILE_PATH_1' and file2 'YOU_FILE_PATH_2', using file1 as the background. Scale file2 down to half its original resolution and position it at the top-right corner of file1. Save the output to 'YOUR_OUTPUT_PATH'.

Run with Docker

You can run the MCP FFmpeg Tools in HTTP mode via Docker. This allows you to expose the MCP API (/mcp) over an HTTP port for use by clients.

Option 1 — Pull from Docker Hub

You can directly pull and run the official image from Docker Hub:

docker pull gamhoi/mcp-ffmpeg-tools:latest

Run it on port 8000:

docker run -d -p 8000:8000 gamhoi/mcp-ffmpeg-tools:latest --port 8000

Add the following configuration to your Claude Desktop settings:

{
    "mcpServers": {
        "mcp-ffmpeg-tools-http": {
            "type": "streamableHttp",
            "url": "http://localhost:8000/mcp"
        }
    }
}

Note: The default URL http://localhost:8000/mcp assumes the MCP server runs locally. If you're running in a remote or networked environment, replace localhost with your host IP or domain name.

Option 2 — Build locally

If you prefer to build from Dockerfile:

docker build -t mcp-ffmpeg-tools .

Accessing local files

By default, the container’s internal ffmpeg cannot access your local files outside Docker. To allow it to process local videos, you must mount a host directory into the container.

Example:

docker run -d -p 8000:8000 -v /local_media:/media gamhoi/mcp-ffmpeg-tools:latest --port 8000

In this example:

  • You can put your local video files on: /local_media/sample.mp4
  • Inside the container, the same file will be accessible as: /media/sample.mp4

So when you ask the LLM to process a local file, you should do like this:

Extract all media streams from the file /media/sample.mp4 and save outputs to /media/

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP server for executing FFmpeg commands from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-ffmpeg-tools)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related media design MCP Servers

Alternative and complementary servers in the same category

View all in media design →

A Rust CAD application with an MCP server for creating, inspecting and rendering drawings, either headlessly or through a connection to the desktop app.

8K
Media & Design
Liquid Composer
liquid-composer•frontedu

Liquid Composer is a browser-based Liquid Glass icon design tool that offers a local MCP server for agent-driven icon workflows.

69
Media & Design

agent-media makes short drama series and other short vertical videos from Claude, ChatGPT or Codex through one MCP connection, with OAuth sign-in and no API keys.

1
Media & Design