ffmpeg-mcp-lite
by kevinwatt·★ 24·综合分 46
功能丰富的 MCP 服务器,使用 FFmpeg 处理视频/音频,支持转换、压缩、剪切等工具。
概述
ffmpeg-mcp-lite 是一个全面的 MCP 服务器,将 FFmpeg 的强大媒体处理能力与 Claude、Dive 等 AI 系统连接起来。它提供了广泛的工具,包括格式转换、视频压缩、修剪、音频提取、帧捕获和字幕处理。该服务器使用 FastMCP 框架构建,采用异步子进程执行,确保高效且非阻塞的媒体处理。
试试问 AI
装完之后,这里有 3 个你可以让 AI 做的事:
什么时候选它
当您需要在 AI 系统中执行视频/音频处理任务而不离开 MCP 兼容环境时,选择此服务器。
什么时候不要选它
如果您需要同时批量处理许多文件,请不要选择此服务器,因为它似乎是为通过交互式 AI 代理执行单个文件操作而设计的。
此 server 暴露的工具
从 README 抽取出 8 个工具ffmpeg_get_infofile_path: strGet comprehensive video/audio metadata
ffmpeg_convertfile_path: str, output_format: str, scale: str, video_codec: str, audio_codec: strConvert video/audio to different formats
ffmpeg_compressfile_path: str, quality: str, scale: str, preset: strCompress video to reduce file size
ffmpeg_trimfile_path: str, start_time: str, end_time: str | duration: strTrim video to extract a segment
ffmpeg_mergefile_paths: List[str], output_path: strConcatenate multiple videos into one
ffmpeg_extract_audiofile_path: str, audio_format: str, bitrate: strExtract audio track from video
ffmpeg_extract_framesfile_path: str, interval: str | count: int, format: strExtract frames as images
ffmpeg_add_subtitlesfile_path: str, subtitle_path: str, style: str, font_size: int, output_path: strBurn-in subtitles to video (hardcode)
可对比工具
安装
前置要求
在您的系统上安装 FFmpeg:
| 平台 | 命令 | |----------|---------| | Windows | winget install FFmpeg | | macOS | brew install ffmpeg | | Linux | sudo apt install ffmpeg |
安装
将以下配置添加到您的 MCP 客户端:
{
"mcpServers": {
"ffmpeg": {
"command": "uvx",
"args": ["ffmpeg-mcp-lite"]
}
}
}或手动安装:
pip install ffmpeg-mcp-liteClaude Desktop 配置
添加到您的 claude_desktop_config.json:
{
"mcpServers": {
"ffmpeg": {
"command": "uvx",
"args": ["ffmpeg-mcp-lite"]
}
}
}ffmpeg-mcp-lite 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。