jianying-edit
Generates editable JianyingPro (剪映) draft projects with multi-track timelines, subtitles, music, and invokes JianyingPro's headless renderer to export MP4s; JianyingPro is ByteDance's video editing application.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@jianying-edit 把 E:\素材\展会 里的片段剪成30秒横屏介绍片,带字幕和配乐"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
剪映 AI 剪辑 MCP
让 AI 直接产出可以在剪映里继续改的工程,而不是丢给你一段改不了的视频。
支持把它接进 豆包工作 / Claude Desktop / Trae / Cursor 等任何支持 MCP 的工具。
它和别的"AI 剪辑"有什么不一样
普通 AI 剪辑工具 | 这个 | |
产出 | 一段 MP4,改一个字要重剪 | 剪映草稿工程(多轨时间线 + 字幕轨 + 音乐轨) |
二次修改 | 只能重来 | 在剪映里随便拖、随便改 |
出片 | 云端渲染 | 调剪映自己的渲染引擎无头导出(不占桌面) |
素材留在哪 | 上传到别人服务器 | 全程本机,不上传 |
Related MCP server: CapCut MCP Server
快速开始(Windows)
第 1 步:装剪映和 jy-draftc
# 剪映(版本必须与你下载的 jy-draftc 匹配,当前验证组合是 11.6.0.14552)
winget install --id ByteDance.JianyingPro --exact --version 11.6.0.14552去 jy-draftc releases 下载对应版本的
jy-draftc-11.6.0.14552-*.zip,解压出 jy-draftc.exe,放到 C:\tools\jy-draftc\ 下即可
(程序会自动找到它,也可以放别处再设环境变量)。
⚠️ 装完剪映请关掉自动更新。剪映一升级,草稿结构和加密方式可能变化,jy-draftc 就得跟着换。
第 2 步:装 MCP 包(二选一)
方式 A:一条命令(推荐)
pip install git+https://github.com/G-GGbond/jianying-edit-mcp方式 B:下载仓库 + 一键脚本(适合想用启动器、不想管 PATH 的人)
git clone https://github.com/G-GGbond/jianying-edit-mcp
cd jianying-edit-mcp
powershell -ExecutionPolicy Bypass -File .\install.ps1install.ps1 会自动检查 Python、装依赖、探测剪映和 jy-draftc、生成启动器,并打印你要粘贴的配置。
第 3 步:接进豆包
打开豆包工作客户端(先登录),然后:
侧边栏 → 「技能 · 连接器 · 伙伴」 → 「技能 · 连接器」
右上角 「+ 新建」 → 「新建自定义连接器」
传输类型选
STDIO(默认是 HTTP,一定要改)按下表填:
字段 | 方式 A 填这个 | 方式 B 填这个 |
服务器名称 |
| 同左 |
传输类型 |
| 同左 |
命令 |
|
|
参数 |
| 留空 |
环境变量 | 留空(自动探测) | 留空(已写进启动器) |
环境变量不用填:server 会自动找剪映(取版本号最大的那个)和
jy-draftc.exe(依次找tools\目录、PATH、C:\tools\jy-draftc\)。 只有探测失败时,才需要设JYC_JY_DRAFTC/JYC_JIANYING_DIR手动指路。
保存。如果提示「连接器运行失败」,到「我的技能 → 连接器」列表点「重新启动」(首次初始化慢,正常)。
建议:把 docs/AI-工作规则.md 的内容贴进连接器的"描述/系统提示"。
不然 AI 不知道"剪映工程"该怎么建,可能一上来就想用 ffmpeg 拼成片。
第 4 步:说一句话试试
先用剪映工具做个体检
把
E:\素材\展会里那几段剪成 30 秒横屏介绍片,带字幕和配乐
把工程打包发给同事
连不上?先跑自检
python examples\selfcheck.py它会打印探测到的剪映与 jy-draftc,然后跑完整流程(建工程 → 出片)。 全绿就说明 server 没问题,问题在客户端连接器配置。
在其他客户端里用
编辑 claude_desktop_config.json:
{
"mcpServers": {
"jianying-edit": {
"command": "C:\\你的路径\\start-jianying-mcp.bat",
"args": []
}
}
}同样填 mcpServers 结构,命令指向 start-jianying-mcp.bat。
{
"mcpServers": {
"jianying-edit": {
"command": "python",
"args": ["-m", "jianying_edit_mcp.mcp_server"],
"env": {
"JYC_JY_DRAFTC": "C:\\tools\\jy-draftc.exe",
"JYC_JIANYING_DIR": "C:\\Users\\you\\AppData\\Local\\JianyingPro\\Apps\\11.6.0.14552"
}
}
}
}JYC_JIANYING_DIR 必须是指向 videoeditor.dll 的那一层目录。
pip install jianying-edit-mcp
# 环境体检
jianying-edit doctor
# EDL → 剪映草稿
jianying-edit build --edl examples\edl-12s-demo.json --out .\out
# 无头导出
jianying-edit render --draft .\out\xxx_剪映可读 --out .\out\final.mp4五个工具
工具 | 做什么 |
| 环境体检:Python 依赖、ffmpeg、剪映版本、jy-draftc、草稿位置 |
| 剪辑方案(EDL JSON)→ 剪映草稿(同时给明文版和剪映可读版) |
| 调剪映自己的引擎无头导出 MP4 |
| 读草稿结构:轨道、片段数与时长、素材数量(加密草稿自动解密) |
| 打包分享:工程 + 全部素材 + 说明 → zip |
EDL 长什么样
{
"name": "我的片子",
"canvas": { "width": 1920, "height": 1080, "fps": 30 },
"tracks": [
{ "type": "audio", "name": "音乐", "start": 0,
"clips": [{ "src": "E:\\music.wav", "in": 0, "duration": 30, "fadeIn": 0.4, "fadeOut": 1.8 }] },
{ "type": "video", "name": "主画面", "start": 0,
"clips": [{ "src": "E:\\a.mp4", "in": 1.2, "duration": 2.4 },
{ "src": "E:\\b.mp4", "in": 0.8, "duration": 3.6 }] },
{ "type": "text", "name": "主标题",
"texts": [{ "start": 0.3, "duration": 3.1, "text": "标题",
"style": { "size": 12, "transformY": -0.62 } }] }
]
}要点:文字必须分轨(主标题一条轨、副标题另一条),同轨时间重叠会失败;
素材写绝对路径;in + duration 不能超过素材实际时长。
完整说明见 docs/AI-工作规则.md。
依赖
依赖 | 必需 | 说明 |
Windows | ✅ | 依赖剪映的 |
剪映专业版 | ✅ | 提供草稿格式与渲染引擎,版本要与 jy-draftc 对齐 |
✅ | 草稿加解密 + 无头导出,按剪映版本选发行包 | |
Python 3.10+ | ✅ | 运行 MCP server 与引擎 |
ffmpeg | 建议 | 素材探针、抽帧、预处理(不加也能建工程,但少了素材分析) |
安装 MCP 包时会自动装 pyJianYingDraft(写剪映草稿的库)。
常见问题
Q:连接器提示「运行失败」? 首次启动初始化慢,去「我的技能 → 连接器」点「重新启动」。还不行就看下一题。
Q:怎么确认 MCP server 本身没问题?
python examples\selfcheck.py全绿会打印六行 OK。如果它全绿而豆包连不上,问题一定在连接器配置,不在 server。
Q:jy_doctor 报找不到剪映?
JYC_JIANYING_DIR 要指向含 videoeditor.dll 的那一层,形如
...\JianyingPro\Apps\11.6.0.14552,不是 Apps 本身。
Q:导出 0 字节一直等?
路径经过 cmd /c 转发被转成乱码。不要用 cmd 包装,直接调用启动器。
Q:草稿在剪映里看不到? 本工具只生成文件,不改剪映草稿注册表(剪映启动时会覆盖手工改的注册表)。 正确做法:把草稿文件夹复制到剪映「全局设置 → 草稿位置」目录下,重启剪映。
Q:剪映能打开但元素错乱?
草稿结构版本不匹配。jy_build 的 structuralVersion 默认 189.0.0(对应剪映 11.x),
版本不同要改,或者换对应版本的剪映。
Q:发给别人的工程打不开、素材丢失?
用 jy_share 打包。剪映草稿只记录素材绝对路径,只发工程目录对方一定找不到素材。
Q:pip install 卡住不动?
在某些代理环境下 pip 解析旧的 numpy 元数据会卡很久。加参数重试:
pip install --no-cache-dir --retries 1 --timeout 30 jianying-edit-mcp或先 pip install -U pip 再装。
Q:能跨版本用吗? 不能保证。剪映升级会改草稿结构与加密,jy-draftc 是按版本适配的。 关掉剪映自动更新是最省心的做法。
能力边界
能做:多轨时间线、片段截取与变速、关键帧、转场、特效滤镜动画、文本样式/花字、 词级字幕、配乐淡入淡出、无头导出、工程打包。
不能做(要人在剪映里补):曲线变速、复合片段、部分新版特效、精细调色手感。
AI 也不该替你做的:审美与节奏拍板、文案定稿、要不要旁白、哪句该删。 这些让它给 2~3 个候选,你来选。
致谢
pyJianYingDraft —— 剪映草稿生成的基石
jy-draftc —— 高版本草稿加解密与无头导出
Model Context Protocol —— 让这套能力能被任何 AI 调用
License
MIT
Available Tools
5 toolsjy_buildA
把剪辑方案(EDL JSON)写成剪映草稿工程。EDL 描述画布、轨道与片段(视频/音频/文本)。同时输出明文草稿(可读可 diff)与剪映可读草稿(加密)。文字必须分轨:主标题一条轨、副标题另一条轨,否则同轨时间重叠会失败。
Inputs: outDir (required), edlPath (required), structuralVersion.
jy_doctorA
剪映 AI 剪辑环境体检:检查 Python 依赖(pyJianYingDraft)、ffmpeg、剪映专业版安装与版本、jy-draftc、草稿位置。返回 problems/hints 说明缺什么、怎么修。开始任何剪辑工作前先跑一次。
Inputs: no named parameters.
jy_inspectA
读取剪映草稿的结构摘要(时长、画布、每条轨道的片段数与各片段时长、素材数量)。加密草稿会自动解密后读取。修改别人的工程前先看一眼。
Inputs: draftDir (required).
jy_renderA
无头导出:不打开剪映界面,直接调剪映自己的渲染引擎把草稿渲染成 MP4。30 秒成片约 10 余秒。
Inputs: outPath (required), draftDir (required), fps, size, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool targets a distinct stage of the pipeline: environment check (jy_doctor), draft construction (jy_build), inspection (jy_inspect), export (jy_render), and packaging (jy_share). There is no overlap in purpose, and the descriptions explicitly position each tool relative to the others (e.g. run doctor before any work, inspect before modifying).
All tools share a consistent jy_ prefix plus a short snake_case action word (doctor, build, render, inspect, share). While 'doctor' is a noun rather than a verb, the pattern is uniform and highly predictable across the set.
Five tools map cleanly onto the five stages of an editing workflow (check, build, inspect, render, share), with no redundant or filler tools. The count is well-scoped for a focused draft-authoring server.
The core lifecycle—validate environment, author a draft, inspect it, render it, and share it—is fully covered. The main gap is direct mutation of existing drafts: jy_inspect hints at modifying others' projects, but the only write path is rebuilding from an EDL, and there is no tool to list or delete drafts.
Maintenance
Related MCP Connectors
AI video editor for agents and humans: timeline, captions, color, audio and generation as MCP tools.
AI video editor your agent can drive: plan scenes, edit a multi-track timeline, and render MP4s.
AI video editor: create projects, edit timelines, add captions and effects, and render videos.
The agentic video editor for ChatGPT and Claude. Ask in your chat and it cuts, captions, adds music, titles and motion graphics on a real timeline you can open and adjust.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants like Claude Code to build and edit CapCut video projects locally by creating drafts, adding media and effects, and saving projects that open in CapCut desktop.2Apache 2.0
- AlicenseBqualityCmaintenanceEnables AI coding agents to programmatically assemble vertical videos and manage local CapCut Desktop drafts, including AI background removal, audio mastering to -14 LUFS or Demucs vocal isolation, music auto-ducking, punch zooms, karaoke captions, PiP proof overlays, hook badges, safe-zone linting, proxy previews, and EN→ES cloning/dubbing. It outputs real CapCut draft JSON ready for review and export.172MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI coding agents to generate cinematic video and image assets and perform autonomous timeline assembly, multi-track audio editing, chroma-key compositing, and local draft manipulation from conversational prompts.3MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to edit talking-head videos locally by transcribing footage, applying validated edit operations like cutting fillers and silences, adding zooms, captions, looks and branding, and checking results with rendered previews. Agents can also read pinned editor feedback notes with annotated frames, resolve them, and export MP4, SRT or OTIO while the user watches changes live.1MIT