Provides video manipulation capabilities including video clipping, merging, and splitting through FFmpeg's processing engine, enabling precise time-based editing and format conversion.
Built on Node.js with specific version requirements (>=14.16.0), enabling cross-platform compatibility for the video processing tools.
🎬 Video Clip MCP
🎥 基于 Model Context Protocol (MCP) 的视频剪辑工具,支持视频裁剪、合并和分割功能。
✨ 功能特性
- 🎯 视频裁剪: 按时间段精确裁剪视频片段
- ✂️ 视频分割: 将长视频按时长或大小智能分割
- 🔗 视频合并: 无损合并多个视频文件
- 🚀 MCP 集成: 完整支持 Model Context Protocol
- 💻 CLI 工具: 提供强大的命令行接口
- ⚡ 高性能: 基于 FFmpeg 的高效处理
📦 安装方式
全局安装
本地安装
开发依赖安装
使用 Yarn
使用 pnpm
直接运行(无需安装)
package.json 配置方式
ES6 模块导入
CommonJS 导入
MCP 配置方式
Claude Desktop 配置
在 claude_desktop_config.json
中添加:
CodeBuddy 配置
在 CodeBuddy 的 MCP 设置中添加:
通用 MCP 客户端配置
本地安装后的配置
如果已全局安装,可以直接使用:
MCP 工具调用示例
🛠️ 系统要求
- Node.js: >= 14.16.0
- FFmpeg: 必须安装并添加到系统 PATH
- 操作系统: Windows, macOS, Linux
🚀 快速开始
作为 MCP 服务器运行
作为命令行工具使用
🎯 视频裁剪
🔗 视频合并
✂️ 视频分割
📋 API 参考
MCP 工具列表
工具名称 | 功能描述 | 参数 |
---|---|---|
clip_video | 裁剪视频片段 | input, output, start, end/duration |
merge_videos | 合并多个视频 | inputs, output, re-encode |
split_video | 分割视频文件 | input, pattern, type, value |
命令行参数
通用参数
-h, --help
: 显示帮助信息-v, --version
: 显示版本号--verbose
: 详细输出模式--quiet
: 静默模式
裁剪参数
-i, --input <file>
: 输入视频文件-o, --output <file>
: 输出视频文件-s, --start <time>
: 开始时间-e, --end <time>
: 结束时间-d, --duration <time>
: 持续时间
🔧 开发指南
本地开发
构建项目
发布到 npm
📊 使用统计
- 📦 包大小: ~7.2 kB
- 🚀 解压后: ~26.7 kB
- 📁 文件数量: 10 个
- ⭐ 支持格式: MP4, AVI, MOV, MKV 等
🤝 贡献指南
我们欢迎所有形式的贡献!
- 🍴 Fork 本项目
- 🌟 创建特性分支 (
git checkout -b feature/AmazingFeature
) - 💾 提交更改 (
git commit -m 'Add some AmazingFeature'
) - 📤 推送到分支 (
git push origin feature/AmazingFeature
) - 🔄 创建 Pull Request
📄 许可证
本项目采用 MIT 许可证 - 查看 LICENSE 文件了解详情。
🔗 相关链接
💡 常见问题
Q: 如何安装 FFmpeg?
A: 请访问 FFmpeg 官网 下载并安装,确保添加到系统 PATH。
Q: 支持哪些视频格式?
A: 支持所有 FFmpeg 支持的格式,包括 MP4、AVI、MOV、MKV 等。
Q: 如何获得技术支持?
A: 请在 GitHub 上提交 Issue 或发送邮件至项目维护者。
⭐ 如果这个项目对您有帮助,请给我们一个 Star!
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
A Model Context Protocol server that provides video manipulation capabilities, allowing users to clip, merge, and split video files through MCP integration.
Related MCP Servers
- AsecurityFlicenseAqualityA Node.js server that provides advanced video and image processing capabilities through the Model Context Protocol, enabling operations like conversion, compression, editing, and effects application.Last updated -10120JavaScript
- -securityAlicense-qualityA Model Context Protocol server that provides file system operations, analysis, and manipulation capabilities through a standardized tool interface.Last updated -4TypeScriptMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables enhanced file system operations including reading, writing, copying, moving files with streaming capabilities, directory management, file watching, and change tracking.Last updated -1215TypeScriptMIT License
- AsecurityFlicenseAqualityA comprehensive Model Context Protocol (MCP) server that provides 39 professional image processing tools including basic operations, geometric transformations, color adjustments, filter effects, and advanced batch processing capabilities.Last updated -39Python