
bitscorp-mcp/mcp-ffmpeg 是从 https://github.com/bitscorp-mcp/mcp-ffmpeg. 导入的 MCP 服务器候选。
概览
bitscorp-mcp/mcp-ffmpeg 是从 https://github.com/bitscorp-mcp/mcp-ffmpeg. 导入的 MCP 服务器候选。
概述(AI 翻译)
一个使用 FFmpeg 操作视频文件的Node.js服务器。该服务器提供以下 API
- 调整视频大小至不同分辨率(360p、480p、720p、1080p)
- 从各种格式(MP3、AAC、WAV、OGG)中提取音频
先修条件
在运行此应用之前,您需要先安装以下程序:
- Node.js(v14或更高)
- FFmpeg - 视频处理需要
安装FFmpeg
在macOS上: ####
关于Ubuntu/Debian:
####在Windows上:
- 从官方网站下载FFmpeg
- 将文件解压到文件夹(例如,
C:\ffmpeg) - 将
bin文件夹添加到你的PATH环境变量中
安装
-
克隆此仓库:
-
安装依赖:
通过Smithery安装
要通过Smithery自动安装Claude Desktop的mcp-ffmpeg:
运行服务器
服务器开局设定:
对于带有文件更改自动重启的开发:
通过Smithery安装
要通过Smithery自动安装Claude Desktop的mcp-ffmpeg:
要安装光标的mcp-ffmpeg,请进入设置 -> 光标设置 ->功能 -> MCP服务器 -> + 添加
选择类型:命令,并用Adjust里的API密钥粘贴下方
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
MCP FFmpeg Video Processor
A Node.js server that uses FFmpeg to manipulate video files. This server provides APIs to:
- Resize videos to different resolutions (360p, 480p, 720p, 1080p)
- Extract audio from videos in various formats (MP3, AAC, WAV, OGG)
Prerequisites
Before running this application, you need to have the following installed:
- Node.js (v14 or higher)
- FFmpeg - This is required for video processing
Installing FFmpeg
On macOS:
brew install ffmpeg
On Ubuntu/Debian:
sudo apt update
sudo apt install ffmpeg
On Windows:
- Download FFmpeg from the official website
- Extract the files to a folder (e.g.,
C:\ffmpeg) - Add the
binfolder to your PATH environment variable
Installation
- Clone this repository:
git clone https://github.com/bitscorp-mcp/mcp-ffmpeg.git
cd mcp-ffmpeg
- Install dependencies:
npm install
Installing via Smithery
To install mcp-ffmpeg for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @bitscorp-mcp/mcp-ffmpeg --client claude
Running the Server
Start the server with:
npm start
For development with auto-restart on file changes:
npm run dev
Installing via Smithery
To install mcp-ffmpeg for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @bitscorp-mcp/mcp-ffmpeg --client claude
To install mcp-ffmpeg for Cursor, go to Settings -> Cursor Settings -> Features -> MCP Servers -> + Add
Select Type: command and paste the below, using your API key from Adjust
npx -y @smithery/cli@latest run @bitscorp/mcp-ffmpeg
Using with Claude Desktop
This MCP FFmpeg server can be integrated with Claude Desktop to process videos through natural language requests.
Running with npx
You can run the server directly with npx:
npx /path/to/mcp-ffmpeg
Or if you’ve published the package to npm:
npx mcp-ffmpeg
Configuring Claude Desktop
To add this server to Claude Desktop, update your Claude Desktop configuration file:
-
Locate your Claude Desktop config file:
- macOS:
~/.config/claude-desktop/config.jsonor~/Library/Application Support/Claude Desktop/config.json - Windows:
%APPDATA%\Claude Desktop\config.json - Linux:
~/.config/claude-desktop/config.json
- macOS:
-
Add the FFmpeg MCP server to the
mcpServerssection:
{
"mcpServers": {
"ffmpeg": {
"command": "npx",
"args": [
"--yes",
"/absolute/path/to/mcp-ffmpeg"
]
}
}
}
If you’ve published the package to npm:
{
"mcpServers": {
安装
npx --yes /absolute/path/to/mcp-ffmpeg配置
{
"mcpServers": {
"ffmpeg": {
"command": "npx",
"args": [
"--yes",
"/absolute/path/to/mcp-ffmpeg"
]
}
}
}