MC

mrbuslov/capcut-ai-editor

API 开发

本页由 AI 翻译,技术细节请以原文为准。 查看原文

129 stars 27 forks 质量 80 趋势 8MIT

mrbuslov/capcut-ai-editor 是一个从 https://github.com/mrbuslov/capcut-ai-editor. 导入的 MCP 服务器候选

概览

mrbuslov/capcut-ai-editor 是一个从 https://github.com/mrbuslov/capcut-ai-editor. 导入的 MCP 服务器候选

概述(AI 翻译)

MCP服务器,用于自动“访谈头”视频剪辑。读取CapCut自动生成的字幕,直接在CapCut项目中查找和删除沉默和重复镜头。

它是如何运作的

  1. 录制视频,导入到CapCut
  2. 在 CapCut 中生成字幕(文字→自动字幕)
  3. 关闭 CapCut
  4. 问Claude:“Smart剪掉了我的’播客第五集’项目”
  5. 在CapCut中重新打开,查看剪辑内容

SmartCut读取CapCut的字幕以了解语音位置。字幕间的空档>1秒会被剪掉。如果说话者重复某个短语(重复镜头),之前的尝试会被删除,最后的版本保留。

无需API密钥——启发式分析可在本地运行。可选设置OPENAI_API_KEY以实现GPT增强的重复检测。

要求

  • Python 3.10+
  • CapCut(用于剪辑和字幕生成)

安装

对于可选的 OpenAI 增强型重复检测:

Claude 代码 / Claude 桌面设置

添加到MCP配置:

针对GPT增强复制品的可选环境:

用途

列出项目:

检查一个项目:

智能剪辑(主要功能):

经过OpenAI增强:

警告: 智能剪辑会在原地修改项目(无备份)。

本页由 AI 翻译,技术细节请以原文为准。

README

SmartCut MCP Server

MCP server for automated “talking head” video editing. Reads CapCut’s auto-generated subtitles to find and remove silences and duplicate takes — directly in the CapCut project.

How it works

  1. Record your video, import into CapCut
  2. Generate subtitles in CapCut (Text → Auto Captions)
  3. Close CapCut
  4. Ask Claude: “Smart cut my ‘Podcast Episode 5’ project”
  5. Reopen in CapCut, review the cuts

SmartCut reads CapCut’s subtitles to understand where speech is. Gaps between subtitles > 1 second are cut. If the speaker repeats a phrase (duplicate take), earlier attempts are removed and the last version is kept.

No API keys required — heuristic analysis works locally. Optionally set OPENAI_API_KEY for GPT-enhanced duplicate detection.

Requirements

  • Python 3.10+
  • CapCut (for editing and subtitle generation)

Installation

cd capcut-ai-editor
python -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate
pip install -e .

For optional OpenAI-enhanced duplicate detection:

pip install -e ".[openai]"

Claude Code / Claude Desktop Setup

Add to MCP config:

{
  "mcpServers": {
    "smartcut": {
      "command": "/path/to/capcut-ai-editor/venv/bin/python",
      "args": ["-m", "smartcut.server"]
    }
  }
}

Optional env for GPT-enhanced duplicates:

"env": {
  "OPENAI_API_KEY": "sk-..."
}

Usage

List projects:

Show me my CapCut projects

Inspect a project:

Open CapCut project "My Vlog"

Smart cut (main function):

Smart cut my "Podcast Episode 5" project

With OpenAI enhancement:

Smart cut "My Video" with use_openai=true

Warning: Smart cut modifies the project in place (no backup). Make a copy in CapCut first if you want to keep the original.

Environment Variables

Variable Required Description
OPENAI_API_KEY No OpenAI API key (for GPT-enhanced duplicate detection)
CAPCUT_DRAFTS_DIR No Path to CapCut drafts folder (auto-detected)

Troubleshooting

“No auto-generated subtitles found” Open the project in CapCut, select the video track, use Text → Auto Captions, save, then try again.

CapCut doesn’t see changes Restart CapCut. It monitors the drafts folder but sometimes needs a restart.

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "smartcut": { "command": "/path/to/capcut-ai-editor/venv/bin/python", "args": ["-m", "smartcut.server"] } } }