MCP FFmpeg 视频处理器
一个基于 Node.js 和 FFmpeg 的视频处理服务器,支持调整分辨率和提取音频。
快速入门
- 安装 FFmpeg
- macOS:
brew install ffmpeg
- Ubuntu/Debian:
sudo apt update && sudo apt install ffmpeg
- Windows: 从 官网 下载并配置环境变量。
- macOS:
- 克隆仓库:
git clone https://github.com/bitscorp-mcp/mcp-ffmpeg.git cd mcp-ffmpeg
- 安装依赖:
npm install
- 启动服务:
npm start
- 开发模式(带热重载):
npm run dev
- 配置 Claude Desktop:
- 编辑配置文件(macOS:
~/.config/claude-desktop/config.json
),添加以下内容:{ "mcpServers": { "ffmpeg": { "command": "npx", "args": [ "--yes", "/absolute/path/to/mcp-ffmpeg" ] } } }
- 重启应用。
- 编辑配置文件(macOS:
- 示例命令:
npx mcp-ffmpeg