
Opencut Controller
io.github.JXUE0由 GitHub 帳號 JXUE0 發布v1.30.0更新於 Oct 24, 2026
Professional MCP server for video editing automation with OpenCut.
概覽
一個本機 MCP 伺服器,透過 Playwright 驅動 OpenCut 影片編輯器,讓助理以程式方式編輯時間軸、場景、媒體與匯出。
- 可以做什麼
- 建立、開啟、儲存並匯出 OpenCut 專案,管理場景與播放狀態。編輯時間軸軌道與片段:裁剪、分割、移動、複製、套用特效與關鍵影格,以及複製、剪下、貼上和復原重做。匯入、搜尋與裁剪媒體,加入文字疊加、混音並加入貼圖與畫布調整。轉錄音訊並管理最終算圖,還可將編輯器即時狀態、專案與軌道作為資源檢視。
- 適用情境
- 當你在本機執行舊版 OpenCut 編輯器,並希望助理自動完成製作片頭、加入背景音樂或套用轉場等剪輯工作,或透過 HTTP 將 OpenCut 接入工作流程工具時使用。
- 執行需求
- 本機需安裝 pnpm 或 Bun,複製並以提供的指令碼修補的封存舊版 OpenCut 編輯器,以及 Playwright Chromium(安裝時自動下載)。編輯器必須在本機執行,不支援正式站台。HTTP 模式使用 TRANSPORT_TYPE 與 PORT,選用 bearer 驗證使用 MCP_AUTH_TOKEN。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Opencut Controller,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
🎬 OpenCut Controller (MCP Server)
🌐 Leer en Español: README.es.md
[Model Context Protocol] [npm version] [pnpm] [License: MIT]
[!NOTE] OpenCut Controller is a robust Model Context Protocol (MCP) server designed to fully automate and control the OpenCut Video Editor directly from AI models (like Claude or agents inside n8n).
By leveraging Playwright under the hood, this server seamlessly injects into the OpenCut browser environment, granting LLMs programmatic access to manipulate the timeline, scenes, media assets, rendering engine, and more—effectively turning OpenCut into an AI-driven, headless video editing powerhouse.
✨ Key Features
- 161 Comprehensive MCP Tools: Full programmatic control over OpenCut's core editing capabilities.
- Dual Transport Support: Connect locally via
stdio(default) or integrate remotely via modernHTTP Streamabletransport. - Playwright Integration: Connects directly to the OpenCut web interface to manipulate application state in real-time.
- Contextual Resources: Inspect the editor's live state, current projects, and timeline tracks.
- Pre-built MCP Prompts: Ready-to-use templates for common high-level editing tasks.
🚀 Installation
Ensure you have pnpm (or Bun) installed on your system.
[!IMPORTANT] OpenCut Controller requires the Legacy OpenCut (Next.js App Router) — the version with a complete editor, timeline, and stores. The current public repo (
OpenCut-app/OpenCut) is an early rewrite (Rust core + GPUI desktop app + Vite web shell) whose editor is not implemented yet, so there is nothing to control there. Use the archived legacy repo:OpenCut-app/opencut-classic— upstream itself recommends it for now.
[!TIP] The
pnpm installcommand will automatically trigger apostinstallscript to download the required Playwright Chromium binaries. No manual browser setup is needed!
[!NOTE] The patcher is idempotent: running it again on an already patched editor is a no-op. If you patched with a version older than 1.32.0, restore
apps/web/src/components/providers/editor-provider.tsxfrom git before re-running it — the old patch exposed store state instead of the stores.
⚙️ Configuration
Conventions: every time value (startTime, duration, time, trimStart, …) is in seconds; the controller converts to OpenCut's internal ticks. FPS accepts plain numbers (30, 29.97). Element volume is in dB (-60 to 20, 0 = original).
💻 Usage
The server can be launched using two different transport protocols depending on your client environment.
1. stdio Transport (Default)
Ideal for standard local MCP clients like Claude Desktop.
Latest version straight from GitHub (built on install): npx -y --allow-git=all github:JXUE0/opencut-controller (--allow-git is required since npm 12).
From a clone of this repo: pnpm build && node dist/index.js.
2. HTTP Streamable Transport
Ideal for integrating with external workflow tools like n8n or remote services. The server listens at http://localhost:3002/mcp.
[!WARNING] Environment variable syntax varies depending on your operating system. Make sure to use the correct command below to prevent errors.
Linux / macOS (Bash):
Windows (PowerShell):
3. HTTP with Authentication
For secure remote access, set a bearer token:
Then include Authorization: Bearer your-secure-token in requests.
🛠️ Available MCP Tools (161)
The controller exposes 161 highly granular tools to the LLM, categorized as follows:
[!NOTE] OpenCut's main track is magnetic: its first clip always starts at
0. Use an overlay element (text, sticker, a second clip) for free positioning. Tracks are created automatically when an element is inserted withouttrackId; OpenCut deletes empty tracks, sotimeline_track_addreturns an explanatory error.
export_project accepts outputPath to write the rendered .mp4/.webm file to disk.
📦 MCP Resources
Resources provide context directly to the LLM about the current state of OpenCut:
opencut://projects- JSON array of all available OpenCut projects.opencut://editor/state- Live tracking of the active project, scene, playhead time, and playback status.opencut://timeline/tracks- Detailed breakdown of tracks in the active scene.
🤖 MCP Prompts
Quick-start templates for complex actions:
create_intro_video- Automates creating a 10-second intro with text overlays.add_background_music- Searches the OpenCut sound library and trims music to fit.apply_transition- Seamlessly blends two clips with a specified effect.
🔌 Integrating with Claude Desktop
To connect OpenCut Controller to your local Claude Desktop app, add the following to your claude_desktop_config.json:
The browser is closed automatically when the client disconnects.
⚠️ Troubleshooting
- "Playwright browser not found": Ensure
postinstallran successfully. You can trigger it manually withnpx playwright install chromium. npm 12+ blocks install scripts by default, so withnpxrunnpx playwright install chromiumonce before first use. - "PowerShell: The term 'TRANSPORT_TYPE=http' is not recognized": You are using bash syntax in Windows. Use
$env:TRANSPORT_TYPE="http"; npx -y opencut-controllerinstead. - Connection Refused /
ERR_CONNECTION_REFUSED: OpenCut is not running onOPENCUT_URL(default port3001, not Next.js' default3000).
[!TIP] To check types during development run
pnpm run typecheck;pnpm run buildbundlesdist/.
1. Error: window.__opencut is undefined / Editor not ready after 30000ms
Cause: You are trying to use the MCP server with the production web app (opencut.app).
Fix: You must run the patched OpenCut editor locally (pnpm run patch-editor <path>). The production site doesn't expose the internal hooks required for MCP control. If the editor fails to compile, check its terminal for module-not-found errors.
Export notes
MP4 export forces software H.264 encoding (--disable-accelerated-video-encode) because the Windows hardware encoder stalls OpenCut's exporter, and runs in Chromium's new headless mode because the legacy headless shell crashes while rendering.
2. Error: Incompatible React versions
Cause: react and react-dom versions mismatch in the monorepo.
Fix: Ensure both are set to the exact same version (e.g., 19.2.0) in the root package.json and run pnpm install.
3. Error: Invalid input: expected string, received undefined (Zod Error)
Cause: Missing environment variables in apps/web/.env.
Fix: Ensure you have a .env file in apps/web/. We have updated the code to make most variables optional, but BETTER_AUTH_SECRET may still be needed for some features.
4. Connection Timeout
Cause: The local OpenCut server (Next.js) is still compiling.
Fix: Wait until you see ✓ Ready in the editor terminal before starting the MCP server.
📄 Credits & Acknowledgments
This project's original codebase and concept were inspired by and built upon the foundational work done in RavenMeld/OpenCut-MCP. We extend our sincere gratitude to RavenMeld for their pioneering work on connecting OpenCut via the Model Context Protocol.
📄 License
This project is licensed under the MIT License.
來源:README.md,提交 337af67
工具
0版本歷史
1- v1.30.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分