MCP 媒体处理服务器是一个基于 Node.js 的服务器,实现了模型上下文协议(MCP),可用于媒体处理操作,具备强大的视频和图像编辑功能。
将以下内容添加到你的 claude_desktop_config.json 中:
{
"mcpServers": {
"mediaProcessor": {
"command": "npx",
"args": [
"-y",
"mcp-media-processor"
]
}
}
}
在使用此服务器之前,请确保已安装以下依赖项:
brew install ffmpeg
sudo apt-get install ffmpeg
brew install imagemagick
sudo apt-get install imagemagick
execute-ffmpeg:执行 FFmpeg 命令
inputPath:输入视频路径command:FFmpeg 处理命令outputPath:输出视频路径convert-video-format:转换视频格式
inputPath:输入视频路径outputFormat:输出视频格式(如:mp4, avi)outputPath:输出视频路径add-watermark:添加水印到图像
inputPath:输入图像路径watermarkPath:水印图像路径position:水印位置(默认:右下角)opacity:水印透明度(0 - 100)outputPath:输出图像路径apply-effect:应用视觉效果到图像
inputPath:输入图像路径effect:效果类型(模糊, sharpen, edge, emboss, grayscale, sepia, negate)intensity:效果强度(0 - 100)outputPath:输出图像路径此 MCP 服务器根据 MIT License 发布。这意味着你可以自由地使用、修改和分发该软件,但需遵守 MIT License 的条款。有关详细信息,请参阅项目存储库中的 LICENSE 文件。