CapCut MCP Server
Enables AI assistants to fully control CapCut video editing projects, including creating projects, importing media, adding text/subtitles, managing audio, and editing timelines.
README
🎬 CapCut MCP Server
An MCP (Model Context Protocol) server that gives AI assistants full control over CapCut video editing projects. Create projects, import media, add text/subtitles, manage audio, and edit timelines — all through AI-powered tools.
How It Works
AI Assistant ──MCP Protocol──▶ CapCut MCP Server ──Read/Write JSON──▶ CapCut Draft Files
(Python/FastMCP) (draft_content.json)
CapCut stores every project as a folder with a draft_content.json file. This MCP server reads and writes those files directly. You edit via the AI, then open the project in CapCut to preview and export.
Quick Start
1. Install
# Clone your repository
git clone https://github.com/baizo7/capcut_MCP_server-.git
cd capcut_MCP_server-
# Using pip
pip install -e ".[cli]"
# Or using uv (recommended)
uv pip install -e .
2. Configure your MCP client
Gemini IDE / Antigravity
On Windows, open your Gemini MCP configuration file located at:
%USERPROFILE%\.gemini\config\mcp_config.json
Add this to your mcpServers object:
{
"mcpServers": {
"capcut": {
"command": "python",
"args": ["-m", "capcut_mcp.server"],
"env": {
"CAPCUT_DRAFTS_PATH": "C:\\Users\\LENOVO\\AppData\\Local\\CapCut\\User Data\\Projects\\com.lveditor.draft"
}
}
}
}
Note: After saving, restart the IDE for the new server to boot up.
Claude Desktop
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"capcut": {
"command": "python",
"args": ["-m", "capcut_mcp.server"]
}
}
}
Cursor IDE
Add to .cursor/mcp.json in your project:
{
"mcpServers": {
"capcut": {
"command": "python",
"args": ["-m", "capcut_mcp.server"]
}
}
}
3. Start editing!
Once configured, your AI assistant can use commands like:
- "Create a new TikTok project called 'Summer Vibes'"
- "Import all videos from D:\footage\vacation and add them to the timeline"
- "Add subtitles: 'Hello!' at 0-2s and 'Welcome!' at 2-5s"
- "Trim the first clip to start at 3 seconds"
🛑 Important Limitations & Workarounds
1. Windows Store Python Sandbox
If you are running the MCP server using Python installed from the Microsoft Store (which is common in Gemini IDE and Cursor), Windows automatically sandboxes writes to AppData\Local.
- The Issue: The AI will create projects perfectly, but Windows hides them from CapCut.
- The Fix: We built an automatic "Sandbox Escape" into the server using PowerShell! However, for best results, we highly recommend changing CapCut's default save location (Settings -> Project -> Save to) to your
Documentsfolder, and updating yourCAPCUT_DRAFTS_PATHenvironment variable to match it.
2. CapCut Does Not "Hot-Reload"
Because we are editing the raw JSON save files on your hard drive behind CapCut's back, CapCut does not instantly update its screen while you are actively editing a timeline.
- To see changes: You must click the "X" in CapCut to return to the Home screen, then click the project again to force CapCut to reload the timeline from the hard drive.
- For new projects: Simply switch tabs (e.g., from "Space" to "Home") to refresh the project list.
Configuration
| Environment Variable | Description | Default |
|---|---|---|
CAPCUT_DRAFTS_PATH |
Path to your CapCut drafts folder | Auto-discovered |
Auto-discovery
The server automatically checks these locations for CapCut projects:
%LOCALAPPDATA%\CapCut\User Data\Projects\com.lveditor.draft%LOCALAPPDATA%\CapCut\User Data\Drafts
Available Tools (25+)
📁 Project Management
| Tool | Description |
|---|---|
list_projects |
List all CapCut projects on this computer |
get_project_info |
Detailed project info: tracks, materials, segments |
create_project |
Create a new empty project (with canvas presets) |
duplicate_project |
Clone a project as a template |
delete_project |
Delete a project (requires confirmation) |
list_canvas_presets |
Show available canvas sizes (landscape, portrait, etc.) |
🎥 Media Import
| Tool | Description |
|---|---|
add_video |
Import a video file to the timeline |
add_image |
Add an image as a still clip |
add_media_batch |
Batch-import all media from a folder |
list_materials |
List all assets in a project |
remove_material |
Remove an asset and its timeline clips |
📝 Text & Subtitles
| Tool | Description |
|---|---|
add_text |
Add a text overlay at a specific time |
add_subtitles |
Bulk-add subtitles from a structured list |
update_text_style |
Change font, color, size, alignment |
update_text_content |
Change the text content |
🔊 Audio
| Tool | Description |
|---|---|
add_audio |
Add background music or sound effects |
set_volume |
Adjust volume of a specific clip |
mute_track |
Mute all clips on a track |
unmute_track |
Restore volume on a muted track |
✂️ Timeline Editing
| Tool | Description |
|---|---|
trim_clip |
Trim a clip's start/end point |
split_clip |
Split a clip into two parts at a timestamp |
move_clip |
Move a clip to a new timeline position |
delete_clip |
Remove a clip from the timeline |
reorder_clips |
Arrange clips sequentially with optional gaps |
set_clip_speed |
Change playback speed (slow-mo, fast-forward) |
Safety Features
- Automatic backups: Every edit creates a
.backupof the draft before modifying - Non-destructive: Delete operations require explicit confirmation
- Validation: All file paths are verified before import
Development
# Install in development mode
pip install -e ".[dev]"
# Run tests
python -m pytest tests/ -v
# Test with MCP Inspector (browser-based)
npx -y @modelcontextprotocol/inspector python -m capcut_mcp.server
Important Notes
⚠️ Unofficial: This server reverse-engineers CapCut's project format. It is not affiliated with ByteDance.
⚠️ Backups: The server automatically backs up projects before modification, but always keep your own backups of important projects.
⚠️ ffprobe: For accurate video/audio duration detection, install FFmpeg and ensure ffprobe is on your PATH. Without it, the server uses default duration estimates.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。