How hetpatel-11/adobe_premiere_pro_mcp works
Purpose and Runtime Model
This is a local Node.js 20+ MCP server that lets MCP clients operate Adobe Premiere Pro projects. It exposes a large editing/tool surface, but Premiere automation runs indirectly through a local file-backed bridge because the Node process cannot call Premiere’s DOM directly. Production uses CEP; UXP is explicitly experimental. Core entry points are src/index.ts (MCP server) and src/cli.ts (installation, diagnostics, and client setup).
MCP Server and Tool Catalog
The server registers MCP tools, resources, and prompts for discovery and agent workflows. Tools span project inspection, timeline mutations, effects, export, and composed editing workflows; generated ExtendScript is the host-side execution payload. The main tool definition/registration boundary is concentrated in:
• src/tools/index.ts
• src/tools/expanded.ts
• src/index.ts
Tool calls should inspect state first, mutate narrowly, then read back results, especially for Premiere/QE operations whose host acceptance may not establish the final timeline state.
File-Based Bridge Protocol
The primary control flow is: MCP client → Node tool handler → generated ExtendScript/request files → Premiere panel polling → script execution → response files → structured MCP response. Bridge logic owns serialization, polling-compatible request/response protocol, script generation/injection, timeouts, and result parsing:
• src/bridge/index.ts
• src/bridge/types.ts
• src/utils/security.ts
The material trust boundary is between untrusted MCP arguments and executable ExtendScript. Advanced raw scripting capabilities require explicit trusted input; script construction and argument serialization are architecture-critical safeguards.
Premiere Host Integrations
The supported host adapter is a CEP extension loaded inside Premiere. Its JavaScript invokes Adobe CEP’s CSInterface.evalScript(), allowing ExtendScript to access Premiere DOM and QE APIs:
• cep-plugin/index.html
• cep-plugin/bridge-cep.js
• cep-plugin/CSXS/manifest.xml
cep-plugin/CSInterface.js is Adobe’s CEP interface dependency. The alternative UXP panel has separate manifest/bridge assets but is not the validated install path:
• uxp-plugin/manifest.json
• uxp-plugin/bridge.js
Agent-Facing Context and Guidance
MCP resources provide reusable Premiere context/instructions, while prompts package guided workflows. Skills distribute install, verification, and safe editing guidance into Codex/Claude ecosystems:
• src/resources/index.ts
• src/prompts/index.ts
• skills/premiere-pro-mcp/SKILL.md
Plugin manifests pair MCP server configuration with the same editing skill for client-specific installation:
• plugins/premiere-pro-mcp/.mcp.json
• claude-plugins/premiere-pro-mcp/.mcp.json
Installation, Packaging, and Operations
The CLI installs/configures the CEP bridge and supported MCP clients, while platform scripts implement setup, health checks, and removal. Releases distribute npm content, CEP ZXP artifacts, and Claude Desktop MCPB bundles:
• src/cli.ts
• scripts/install-macos.sh
• scripts/install-windows.ps1
• scripts/build-mcpb.mjs
• scripts/sign-zxp.mjs
External dependencies are Adobe Premiere Pro 2020+, local MCP clients, Adobe CEP/ExtendScript/QE APIs, and optionally Adobe Media Encoder for queue/encode workflows. ffmpeg is used locally for silence detection.
Verification and Reliability Boundaries
verify_premiere_connection is the canonical non-mutating readiness check: it validates CEP responsiveness and reports host/project/active-sequence state before edits. The real-host sweep exercises the live catalog against a disposable project:
• scripts/live-tool-sweep.mjs
• src/utils/logger.ts
• src/utils/demoAssets.ts
Operational failures divide cleanly into server/build availability, bridge-directory/panel state, and Premiere host/API limitations. CEP panel restart/reload is required after bridge changes; host APIs can reject, quantize, or expose incomplete state, so tool results must distinguish confirmed from merely accepted actions.
Main entry points: src/index.ts MCP server · bridge/index.ts Bridge protocol · index.html CEP extension · tools/index.ts Tool catalog
Components 21
MCP Server
- MCP server
src/index.ts - Tool catalog · Registers inspection, editing, effects, export, and workflow tools.
src/tools/index.ts - Expanded tools
src/tools/expanded.ts
File Bridge
- Bridge protocol · Serializes requests, polls files, injects scripts, times out, and parses results.
src/bridge/index.ts - Bridge types
src/bridge/types.ts - Script security · Safely serializes arguments and gates trusted raw scripting.
src/utils/security.ts - Bridge files · Polling-compatible ExtendScript request and response payloads.
Premiere CEP Host
- CEP panel bridge · Polls bridge files and invokes ExtendScript through CSInterface.
cep-plugin/bridge-cep.js - CEP extension
cep-plugin/index.html - CEP manifest
cep-plugin/CSXS/manifest.xml - Premiere Pro · Premiere DOM and QE APIs execute generated ExtendScript.
- UXP bridge · Alternative, unvalidated panel integration.
uxp-plugin/bridge.js
Agent Guidance
- MCP resources
src/resources/index.ts - MCP prompts
src/prompts/index.ts - Editing skill
skills/premiere-pro-mcp/SKILL.md - Client plugin config · Pairs server configuration with the editing skill.
plugins/premiere-pro-mcp/.mcp.json
Install & Operations
- CLI · Installs the bridge and configures supported MCP clients.
src/cli.ts - Platform installers
scripts/install-macos.sh - Release packaging · Builds MCPB bundles and signs CEP ZXP artifacts.
scripts/build-mcpb.mjs - Live verification · Checks CEP/project readiness and exercises the live tool catalog.
scripts/live-tool-sweep.mjs
Other components
- MCP clients
Connections 22
- MCP clients → MCP server: MCP requests
- MCP server → Tool catalog: registers
- Tool catalog → Expanded tools: includes
- MCP server → MCP resources: serves
- MCP server → MCP prompts: serves
- Tool catalog → Bridge protocol: tool execution
- Bridge protocol → Bridge types: uses
- Bridge protocol → Script security: secures inputs
- Script security → Bridge files: serialized scripts
- Bridge protocol → Bridge files: writes and polls
- Bridge files → CEP panel bridge: requests and responses
- CEP extension → CEP panel bridge: loads
- CEP manifest → CEP extension: declares
- CEP panel bridge → Premiere Pro: evalScript
- UXP bridge → Premiere Pro: experimental access
- CLI → CEP extension: installs
- Platform installers → CLI: run setup
- Release packaging → CEP extension: packages
- Editing skill → MCP clients: guides agents
- Client plugin config → Editing skill: ships with
- Live verification → MCP server: checks readiness
- Live verification → Premiere Pro: live host sweep