MCP.so
登录
F

Ffmpeg Python MCP Server

@mabh111111

基本信息

分类

其他

传输方式

stdio

作者

mabh111111

提交者

马邦

关于 Ffmpeg Python MCP Server

这是一个基于 Model Context Protocol (MCP) 的 FFmpeg 视频音频处理服务器。该项目为 AI 助手提供了强大的视频和音频处理能力,包括格式转换、切割合并、特效添加等功能,支持硬件加速处理。

#ffmpeg#ffmpeg-python#ffmpeg-python-mcp#ffmpeg-processor

Ffmpeg Python MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "ffmpeg-processor": {
      "command": "uv",
      "args": [
        "run",
        "python",
        "/path/to/ffmpeg_python_mcp/main.py"
      ],
      "cwd": "/path/to/ffmpeg_python_mcp"
    }
  }
}

Ffmpeg Python MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Ffmpeg_python_mcp?

Ffmpeg_python_mcp is a Model Context Protocol (MCP) server that integrates FFmpeg with AI assistants. It provides powerful video and audio processing capabilities—format conversion, cutting, merging, effects, and hardware acceleration—designed for developers who want to give their AI tools direct media manipulation abilities.

How to use Ffmpeg_python_mcp?

Ensure Python 3.12+, FFmpeg, and the uv package manager are installed. Clone the repository, run uv sync to install dependencies, then start the server with uv run mcp dev main.py or uv run python main.py. For AI clients like Claude Desktop, add the server configuration to the client’s JSON config file (command: uv run python main.py, working directory: project root, protocol: stdio).

Key features of Ffmpeg_python_mcp

  • Full video/audio processing: convert, cut, merge, compress
  • Hardware acceleration support (Intel QSV, NVIDIA NVENC)
  • Asynchronous concurrent processing for parallel task execution
  • Streaming support: M3U8 merging and live stream handling
  • Video effects: watermark, GIF conversion, speed change
  • AI-friendly interface using the standard MCP protocol

Use cases of Ffmpeg_python_mcp

  • Extract audio from a video and convert it to a desired format
  • Cut a segment or merge multiple video files into one
  • Convert video or audio between formats with codec and quality options
  • Add watermarks, resize videos, or create animated GIFs
  • Process streaming media by merging M3U8 manifests into MP4 files

常见问题

1

What dependencies are required to use Ffmpeg_python_mcp?

You need Python 3.12 or later, FFmpeg installed on your system (via Homebrew, apt, or the FFmpeg website), and the `uv` package manager.

2

How do I configure Ffmpeg_python_mcp with Claude Desktop?

Edit the Claude Desktop configuration file – `~/Library/Application Support/Claude/claude_desktop_config.json` on macOS or `%APPDATA%\Claude\claude_desktop_config.json` on Windows – and add an entry under `mcpServers` with command `uv`, args `["run", "python", "/path/to/ffmpeg_python_mcp/main.py"]`, and the working directory set to the project root.

3

What hardware acceleration is supported?

The server supports Intel Quick Sync Video (QSV) and NVIDIA NVENC hardware encoding. It includes a `check_hardware_acceleration()` function and an option to convert video using QSV (`convert_video_with_qsv`).

4

What transport protocol does the server use?

The server communicates via the stdio protocol, as shown in the MCP client configuration examples.

5

Is there a limit on concurrent tasks?

The server supports asynchronous concurrent processing, allowing AI assistants to call multiple tools in parallel, with claimed batch performance improvements of 3–5 times. No explicit task limit is stated in the README.

评论

其他 分类下的更多 MCP 服务器