
VectCutAPI
MCP开源的视频剪辑 API 与 MCP 服务:添加视频、音频、字幕、贴纸、特效与关键帧动画,生成可导入剪映或 CapCut 继续编辑的草稿。需本地部署 Python 服务并安装 FFmpeg。
Connect AI generates via VectCutAPI Try it online
Preview
VectCut is a toA (toAgent) video editing tool. It provides a rich set of cloud-based editing APIs and Skills, including features such as adding subtitles, illustrations, picture-in-picture (PiP), AI voiceovers, filters, and more.
You can integrate our editing tools into any Agent-based environment, whether it’s a manually orchestrated workflow platform (such as Coze, Dify, or N8N) or an autonomous planning platform (such as OpenClaw, Claude Code, or Trae). This enables you to meet your needs for automated and bulk video production.
We have open-sourced our interface code on GitHub, making it easy for various AI models to train on and learn our interfaces. Instead of fine-tuning models yourself, you can let the AI actively learn our API (feel free to give us a star to help AI index it even faster! 🤩).
Enjoy It! 😀😀😀
Advantages
-
API-Powered Editing: Access all powerfull editing features, including multi-track editing and keyframe animation, through a powerful API.
-
Real-Time Cloud Preview: Instantly preview your edits on a webpage without downloads, dramatically improving your workflow.
-
Flexible Local Editing: Export projects as drafts to import into CapCut or Jianying for further refinement.
-
Automated Cloud Generation: Use the API to render and generate final videos directly in the cloud.
Demos
Key Features
| Feature Module | API | MCP Protocol | Description |
|---|---|---|---|
| Draft Management | ✅ | ✅ | Create and save Jianying/CapCut draft files |
| Video Processing | ✅ | ✅ | Import, clip, transition, and apply effects to multiple video formats |
| Audio Editing | ✅ | ✅ | Audio tracks, volume control, sound effects processing |
| Image Processing | ✅ | ✅ | Image import, animation, masks, filters |
| Text Editing | ✅ | ✅ | Multi-style text, shadows, backgrounds, animations |
| Subtitle System | ✅ | ✅ | SRT subtitle import, style settings, time synchronization |
| Effects Engine | ✅ | ✅ | Visual effects, filters, transition animations |
| Sticker System | ✅ | ✅ | Sticker assets, position control, animation effects |
| Keyframes | ✅ | ✅ | Property animation, timeline control, easing functions |
| Media Analysis | ✅ | ✅ | Get video duration, detect format |
Quick Start
1. System Requirements
- Python 3.10+
- Jianying or CapCut International version
- FFmpeg
2. Installation and Deployment
# 1. Clone the project
git clone https://github.com/sun-guannan/VectCutAPI.git
cd VectCutAPI
# 2. Create a virtual environment (recommended)
python -m venv venv-capcut
source venv-capcut/bin/activate # Linux/macOS
# or venv-capcut\Scripts\activate # Windows
# 3. Install dependencies
pip install -r requirements.txt # HTTP API basic dependencies
pip install -r requirements-mcp.txt # MCP protocol support (optional)
# 4. Configuration file
cp config.json.example config.json
# Edit config.json as needed
3. Start the service
python capcut_server.py # Start the HTTP API server, default port: 9001
python mcp_server.py # Start the MCP protocol service, supports stdio communication
Skill Integration Guide
MCP Integration Guide
1. Client Configuration
Create or update the mcp_config.json configuration file:
{
"mcpServers": {
"capcut-api": {
"command": "python3",
"args": ["mcp_server.py"],
"cwd": "/path/to/VectCutAPI",
"env": {
"PYTHONPATH": "/path/to/VectCutAPI",
"DEBUG": "0"
}
}
}
}
2. Connection Test
# Test MCP connection
python test_mcp_client.py
# Expected output
✅ MCP server started successfully
✅ Got 11 available tools
✅ Draft creation test passed
Usage Examples
1. API Example
Add video material
import requests
# Add background video
response = requests.post("http://localhost:9001/add_video", json={
"video_url": "https://example.com/background.mp4",
"start": 0,
"end": 10
"volume": 0.8,
"transition": "fade_in"
})
print(f"Video addition result: {response.json()}")
Create stylized text
import requests
# Add title text
response = requests.post("http://localhost:9001/add_text", json={
"text": "Welcome to VectCutAPI",
"start": 0,
"end": 5,
"font": "Source Han Sans",read
"font_color": "#FFD700",
"font_size": 48,
"shadow_enabled": True,
"background_color": "#000000"
})
print(f"Text addition result: {response.json()}")
More examples can be found in the example.py file.
2. MCP Protocol Example
Complete workflow
# 1. Create a new project
draft = mcp_client.call_tool("create_draft", {
"width": 1080,
"height": 1920
})
draft_id = draft["result"]["draft_id"]
# 2. Add background video
mcp_client.call_tool("add_video", {
"video_url": "https://example.com/bg.mp4",
"draft_id": draft_id,
"start": 0,
"end": 10,
"volume": 0.6
})
# 3. Add title text
mcp_client.call_tool("add_text", {
"text": "AI-Driven Video Production",
"draft_id": draft_id,
"start": 1,
"end": 6,
"font_size": 56,
"shadow_enabled": True,
"background_color": "#1E1E1E"
})
# 4. Add keyframe animation
mcp_client.call_tool("add_video_keyframe", {
"draft_id": draft_id,
"track_name": "main",
"property_types": ["scale_x", "scale_y", "alpha"],
"times": [0, 2, 4],
"values": ["1.0", "1.2", "0.8"]
})
# 5. Save the project
result = mcp_client.call_tool("save_draft", {
"draft_id": draft_id
})
print(f"Project saved: {result['result']['draft_url']}")
Advanced text effects
# Multi-style colored text
mcp_client.call_tool("add_text", {
"text": "Colored text effect demonstration",
"draft_id": draft_id,
"start": 2,
"end": 8,
"font_size": 42,
"shadow_enabled": True,
"shadow_color": "#FFFFFF",
"background_alpha": 0.8,
"background_round_radius": 20,
"text_styles": [
{"start": 0, "end": 2, "font_color": "#FF6B6B"},
{"start": 2, "end": 4, "font_color": "#4ECDC4"},
{"start": 4, "end": 6, "font_color": "#45B7D1"}
]
})
3. Downloading Drafts
Calling save_draft will generate a folder starting with dfd_ in the current directory of capcut_server.py. Copy this to the CapCut/Jianying drafts directory to see the generated draft in the application.
Draft output is selected by draft_profile in config.json:
capcut_legacy: existing CapCut template.jianying_legacy: existing Jianying template.jianying_pro_10: Jianying Pro 10.x Windows-style folder layout usingdraft_content.json.
Pattern
You can find a lot of pattern in the pattern directory.
Community & Support
We welcome contributions of all forms! Our iteration rules are:
- No direct PRs to main
- PRs can be submitted to the dev branch
- Merges from dev to main and releases will happen every Monday
Contact Us
🤝 Collaboration
-
Video Production: Want to use this API for batch production of videos with AIGC?
-
Join us: Our goal is to provide a stable and reliable video editing tool that integrates well with AI-generated images, videos, and audio. If you are interested, submit a PR and I'll see it. For more in-depth involvement, the code for the MCP Editing Agent, web-based editing client, and cloud rendering modules has not been open-sourced yet.
Contact: abelchrisnic@gmail.com
📈 Star History
Made with ❤️ by the CapCutAPI Community
相關資源

capcut-cli
CLI在终端里创建和修改剪映 / CapCut 本地草稿,可按静音粗剪、加带样式字幕、生成多语种版本,结果仍能在剪映里逐轨精修,适合课程和自媒体视频。需要 Node 18+ 与桌面版剪映或 CapCut,字幕需 Whisper,翻译需 Anthropic API Key;剪映 6.0 起的加密草稿读不了。非字节官方项目。
renezander030/capcut-cli1.3k
Video Recap Skills
Plugin把一段或多段视频剪成中文解说成片:理解画面与对白、写解说稿、配音混音、烧录字幕,并可导出剪映草稿继续修改。本地需 Python 3.10+ 与 ffmpeg,另需小米 MiMo API Key(按量付费)。
zenstory-ai/video-recap-skills662
HyperFrames
CLI用 HTML、CSS 与可逐帧定位的动画写视频,命令行预览并渲染成确定性的 MP4;附带产品发布视频、字幕、口播重剪等 agent 技能。HeyGen 官方维护,需要 Node.js 22+ 与 FFmpeg。
heygen-com/hyperframes93.9k
HyperFrames
PluginHeyGen 官方的视频插件:用 HTML、CSS 与动画编排画面,渲染成确定性的 MP4,附产品宣传片、字幕、配音配乐、PR 讲解视频等创作流程技能。需 Node.js 22+ 与 FFmpeg。
heygen-com/hyperframes93.4k
video-use
SkillBrowser Use 出品的剪辑技能:把原始素材放进文件夹,和 Claude Code 或 Codex 对话就能出成片,自动删口头禅和停顿、调色、烧字幕、加动画并逐个剪点自检。需本地装 ffmpeg 与 Python(uv),并准备 ElevenLabs API Key 用于转写。
browser-use/video-use31.8k
pyVideoTrans
CLI视频翻译与配音一站式工具:串起语音识别、字幕翻译、多角色 AI 配音与音画合成,可接 Faster-Whisper、DeepSeek、Edge-TTS 等本地或在线模型;cli.py 支持无界面批处理。需要 FFmpeg。
jianchang512/pyvideotrans19.9k



