Skip to main content
Glama

capcut-mcp

English | Русский

An unofficial MCP server that lets Claude (or any other MCP client) build and edit CapCut desktop drafts: put videos, pictures and music on the timeline, add titles and subtitles, change clip length and order. You then open the draft in CapCut, check it, tweak it by hand and export as usual.

CapCut has no public scripting API, so the server writes the draft files (draft_content.json, draft_meta_info.json) directly. Draft generation is done by the pycapcut library by GuanYixuan.

Disclaimer. This is an independent community project. It is not affiliated with, endorsed by or connected to CapCut or ByteDance in any way. "CapCut" is a trademark of its owner.

Requirements

  • Windows 10/11

  • CapCut for desktop (tested with CapCut 7.9)

  • Python 3.10+ (or uv, which installs Python for you)

Related MCP server: CapCut MCP

Installation

Option A — run with uvx (no manual install):

uvx --from git+https://github.com/osmagulov/capcut-mcp capcut-mcp

Option B — install with pip:

pip install git+https://github.com/osmagulov/capcut-mcp

This gives you a capcut-mcp command. Normally you don't run it yourself: the MCP client starts it.

Where are the drafts?

The server finds the CapCut drafts folder automatically (from CapCut's root_meta_info.json, or %LOCALAPPDATA%\CapCut Drafts). If yours is elsewhere, set the CAPCUT_DRAFTS_PATH environment variable to the folder that contains your draft folders.

Configuration

Claude Desktop

Edit %APPDATA%\Claude\claude_desktop_config.json and restart Claude completely:

{
  "mcpServers": {
    "capcut": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/osmagulov/capcut-mcp", "capcut-mcp"]
    }
  }
}

If you installed with pip, use "command": "capcut-mcp" and "args": [] (or the full path to capcut-mcp.exe). To set a custom drafts folder add "env": {"CAPCUT_DRAFTS_PATH": "D:\\CapCut Drafts"}.

Claude Code

claude mcp add capcut -- uvx --from git+https://github.com/osmagulov/capcut-mcp capcut-mcp

Then ask, for example: "Make a vertical CapCut draft 'Holiday' from the videos in D:\Videos\Holiday, 4 seconds each, title 'Summer 2026' on top and D:\Music\song.mp3 quietly underneath."

Tools

Tool

What it does

list_drafts

List CapCut drafts (newest first), marks which ones this server can edit

inspect_draft

Show tracks and clips of any draft, including hand-made ones (read-only)

create_draft

New empty draft (1920x1080, 1080x1920 for Reels/TikTok/Shorts, 1080x1080, …)

get_project

Show the edit plan of a server-made draft: clip ids, start/end, settings

add_media

Add a video/picture to the main track or as an overlay, or audio to an audio track

add_text

Add a title/caption: size, colour, background, outline, font, animation

add_subtitles

Add subtitles from an .srt file, SRT text or a list of lines

update_clip

Change clip parameters (duration, volume, speed, position, text, …)

move_clip

Reorder clips on the main track

remove_clip

Delete a clip

undo_last_change

Roll the draft back to the previous backup

media_info

Duration and size of a media file

list_effects

Names of CapCut transitions, animations and fonts (Pro ones hidden by default)

All times are in seconds. Tool descriptions and messages are currently in Russian; Claude handles that fine.

Limitations

  • Only drafts created by this server can be changed. Other drafts (made by hand in CapCut) can only be viewed with inspect_draft. The server keeps its edit plan in claude_project.json inside the draft folder.

  • Backups before every change. Before each overwrite the previous files are copied to .claude_backups inside the draft folder (last 15 kept); undo_last_change restores them. If you edited a server-made draft by hand in CapCut, the server refuses to overwrite it unless you confirm (force=true).

  • CapCut 9.x may ask you to re-link media when opening a draft. Point it at the same files and continue.

  • If the draft is open in CapCut while it is being changed, go back to CapCut's home screen and reopen it.

  • Media files are referenced, not copied — keep them where they are.

  • Windows only (CapCut desktop and pycapcut target Windows).

Development

python -m venv .venv
.venv\Scripts\pip install -e ".[test]"
.venv\Scripts\python -m pytest

The tests build a draft in a temporary folder via CAPCUT_DRAFTS_PATH; CapCut does not need to be installed.

License

MIT. Dependencies keep their own licenses: pycapcut, MCP Python SDK (MIT).


capcut-mcp (по-русски)

English | Русский

Неофициальный MCP-сервер, через который Claude (или другой MCP-клиент) сам собирает черновики в CapCut для компьютера: кладёт видео, картинки и музыку на таймлайн, добавляет текст и субтитры, меняет длительность и порядок клипов. Потом вы открываете черновик в CapCut, смотрите, правите руками и экспортируете как обычно.

У CapCut нет официального способа управлять им из программ, поэтому сервер пишет файлы черновика напрямую. Сам черновик собирает библиотека pycapcut (автор — GuanYixuan).

Важно. Это независимый проект. Он никак не связан с CapCut или ByteDance и не одобрен ими. «CapCut» — товарный знак его владельца.

Что нужно

  • Windows 10/11

  • CapCut для компьютера (проверено на CapCut 7.9)

  • Python 3.10+ (или uv — он сам поставит Python)

Установка

Вариант А — запуск через uvx (ставить вручную ничего не нужно):

uvx --from git+https://github.com/osmagulov/capcut-mcp capcut-mcp

Вариант Б — установка через pip:

pip install git+https://github.com/osmagulov/capcut-mcp

Появится команда capcut-mcp. Обычно её не запускают руками — её запускает Claude.

Где черновики

Сервер сам находит папку черновиков CapCut (по файлу CapCut root_meta_info.json или %LOCALAPPDATA%\CapCut Drafts). Если у вас она в другом месте, задайте переменную окружения CAPCUT_DRAFTS_PATH — путь к папке, где лежат папки черновиков.

Подключение

Claude Desktop (приложение)

Откройте %APPDATA%\Claude\claude_desktop_config.json, добавьте блок и полностью перезапустите Claude:

{
  "mcpServers": {
    "capcut": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/osmagulov/capcut-mcp", "capcut-mcp"]
    }
  }
}

Если ставили через pip, укажите "command": "capcut-mcp" и "args": [] (или полный путь к capcut-mcp.exe). Своя папка черновиков: добавьте "env": {"CAPCUT_DRAFTS_PATH": "D:\\CapCut Drafts"}.

Claude Code

claude mcp add capcut -- uvx --from git+https://github.com/osmagulov/capcut-mcp capcut-mcp

Потом попросите, например: «Собери в CapCut вертикальный ролик "Отпуск": видео из папки D:\Видео\Отпуск по порядку, по 4 секунды, сверху заголовок "Лето 2026", снизу тихо музыка D:\Музыка\song.mp3».

Инструменты

Инструмент

Что делает

list_drafts

Список черновиков (новые сверху), отмечает, какие сервер может менять

inspect_draft

Показать дорожки и клипы любого черновика, в том числе сделанного руками (только чтение)

create_draft

Новый пустой черновик (1920x1080, 1080x1920 для Reels/TikTok/Shorts, 1080x1080 и т. д.)

get_project

План монтажа черновика сервера: id клипов, начало/конец, настройки

add_media

Видео/картинка на главную дорожку или поверх видео, аудио — на звуковую дорожку

add_text

Заголовок или надпись: размер, цвет, фон, обводка, шрифт, анимация

add_subtitles

Субтитры из файла .srt, текста SRT или списка строк

update_clip

Изменить клип (длительность, громкость, скорость, положение, текст и т. д.)

move_clip

Переставить клип на главной дорожке

remove_clip

Удалить клип

undo_last_change

Откатить черновик к предыдущей резервной копии

media_info

Длительность и размер медиафайла

list_effects

Названия переходов, анимаций и шрифтов CapCut (платные Pro по умолчанию скрыты)

Время везде в секундах.

Ограничения

  • Сервер меняет только черновики, которые создал сам. Остальные (сделанные руками в CapCut) можно только посмотреть через inspect_draft. План монтажа хранится в claude_project.json внутри папки черновика.

  • Перед каждым изменением делается резервная копия в папке .claude_backups внутри черновика (хранятся последние 15), undo_last_change возвращает её. Если вы поправили такой черновик руками в CapCut, сервер не перезапишет его без вашего согласия (force=true).

  • CapCut 9.x может попросить перепривязать медиа при открытии черновика. Укажите те же файлы и продолжайте.

  • Если черновик открыт в CapCut, пока его меняют, выйдите на главный экран CapCut и откройте его заново.

  • Видео и музыка не копируются в черновик, он ссылается на них — не перемещайте эти файлы.

  • Работает только на Windows.

Для разработчиков

python -m venv .venv
.venv\Scripts\pip install -e ".[test]"
.venv\Scripts\python -m pytest

Тест собирает черновик во временной папке через CAPCUT_DRAFTS_PATH; сам CapCut для этого не нужен.

Лицензия

MIT. У зависимостей свои лицензии: pycapcut, MCP Python SDK (MIT).

Available Tools

13 tools
add_mediaA

Добавить видео, картинку или аудио в черновик.

track:

  • "main" — главная видеодорожка: клипы идут друг за другом без пауз, в порядке добавления (или вставить в место position, считая с 0). start здесь не нужен.

  • "overlay" — видео/картинка поверх главной (картинка-в-картинке, логотип). Нужен start.

  • "audio" — музыка/озвучка. start по умолчанию 0. duration — сколько секунд клип идёт на таймлайне (по умолчанию: всё видео/аудио, картинка — 3 с). source_start — с какой секунды исходного файла начинать. volume 0..2 (0 — без звука), speed — скорость (2 = в 2 раза быстрее). scale/x/y — размер и положение: x,y от -1 до 1 (0,0 — центр; y=1 — верх). fade_in/fade_out — плавное появление/затухание звука, секунды. transition — переход к СЛЕДУЮЩЕМУ клипу (только main), intro/outro — анимация появления/исчезновения. Названия эффектов — через list_effects.

Inputs: path (required), draft (required), x, y, +14 more.

add_subtitlesC

Добавить субтитры. Источник — один из: srt_path (файл .srt), srt_text (текст в формате SRT) или lines — список {"start": сек, "end": сек, "text": "..."}. offset сдвигает все субтитры на N секунд.

Inputs: draft (required), y, size, color, +6 more.

add_textA

Добавить текст (заголовок, надпись) поверх видео.

start/duration — в секундах. size — размер шрифта (8 — обычный, 12–15 — крупный заголовок, 5 — как субтитры). color/background_color/outline_color — '#RRGGBB'. y: 0 — центр, 0.8 — сверху, -0.8 — снизу. font, intro, outro — названия из list_effects (fonts / text_intro / text_outro).

Inputs: text (required), draft (required), start (required), duration (required), +11 more.

create_draftC

Создать новый пустой черновик CapCut.

Размеры: 1920x1080 — обычное горизонтальное видео (YouTube), 1080x1920 — вертикальное (Reels/TikTok/Shorts), 1080x1080 — квадрат.

Inputs: name (required), fps, width, height.

get_projectB

Показать план монтажа черновика, созданного через Claude: все клипы с id, временем начала/конца и настройками.

Inputs: draft (required).

inspect_draftB

Показать содержимое любого черновика (дорожки и клипы), включая сделанные вручную. Только чтение.

Inputs: draft (required).

list_draftsA

Список черновиков CapCut на компьютере (новые сверху). editable=true — черновик создан через Claude и его можно менять.

Inputs: no named parameters.

list_effectsB

Найти названия переходов, анимаций и шрифтов CapCut. По умолчанию только бесплатные (без Pro).

Inputs: category (required), limit, search, include_pro.

media_infoB

Узнать длительность и размер видео/аудио/картинки, чтобы правильно спланировать монтаж.

Inputs: path (required).

move_clipB

Переставить клип главной дорожки на новое место (0 — первый). Остальные клипы сдвигаются автоматически.

Inputs: draft (required), clip_id (required), new_position (required), force.

remove_clipC

Удалить клип (видео, картинку, звук или текст) из черновика.

Inputs: draft (required), clip_id (required), force.

undo_last_changeB

Откатить черновик к предыдущей резервной копии (отменить последнее изменение Claude).

Inputs: draft (required).

update_clipC

Изменить параметры клипа. changes — словарь, например {"duration": 4}, {"start": 2.5}, {"volume": 0.3}, {"text": "Новый текст"}, {"source_start": 10}, {"speed": 1.5}, {"y": 0.8, "size": 12}, {"transition": null}. Допустимые ключи: duration, start (не для main), source_start, volume, speed, scale, x, y, rotation, opacity, fade_in, fade_out, transition, intro, outro, text, size, color, bold, italic, font, background_color, outline_color.

Inputs: draft (required), changes (required), clip_id (required), force.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 13 tools

    Disambiguation3/5

    get_project and inspect_draft both return draft contents (tracks and clips), and the distinction (Claude-created editable draft vs. any draft read-only) is easy to miss, risking misselection. Other tools are clearly separated by resource+action (add_media/add_text/add_subtitles, move/remove/update_clip), so the overlap is limited to this one pair.

    Naming Consistency4/5

    Names follow a clean snake_case verb_noun pattern (create_draft, add_media, update_clip, remove_clip, list_effects), with only minor deviations like media_info (noun-only) and undo_last_change. The differing verbs on the two read tools (get vs. inspect) reinforce rather than break the convention.

    Tool Count5/5

    13 tools is well within the sweet spot for a video-editing server, and each tool covers a distinct part of the editing workflow (draft lifecycle, media/text/subtitle insertion, clip manipulation, effects lookup, undo). No obviously redundant or filler tools.

    Completeness4/5

    The surface covers draft creation, media/text/subtitle addition, clip update/move/remove, undo, and prerequisite lookups (media_info, list_effects), which matches the stated editing workflow. Notable gaps remain: no export/render tool and no way to delete or duplicate a draft, though export may be intentionally left to the CapCut app.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables video editing operations such as trimming, merging, adding audio/text/effects, and exporting via MCP protocol, leveraging CapCut core functionalities.
      98
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables 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.
      2
      Apache 2.0
    • A
      license
      B
      quality
      D
      maintenance
      An MCP server that lets Claude read and edit CapCut desktop draft projects, enabling manipulation of video clips, text, audio, and images with atomic saves and validation.
      17
      24
      MIT