Token导航 LogoToken导航TokenDH.com
MCP Ffmpeg Tools logo
运维云端stdio官方级别未说明来源级核验

MCP Ffmpeg Tools

MCP Server

一个开源的Python MCP服务器,使大型语言模型能够执行FFmpeg命令、接收执行结果并根据FFmpeg源代码验证命令。

工具数

4

提示词数

0

GitHub Stars

0

资源数

0
开源工具PythonClaude跨平台Claude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

gamhoi

提供方

gamhoi

最后核验

2026/5/17 20:22

运行时

Python

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

uv run python3 client/test.py

详细介绍

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/

目录标签

目录标签

开源工具PythonClaude跨平台FFmpeg本地部署媒体处理命令执行

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Python

工具数量(toolCount,工具数)

4

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP