Skip to main content
Glama
README.md
<p align="center">
  <img src="assets/banner.svg" alt="premiere-mcp: let your AI assistant edit in Adobe Premiere Pro" width="100%">
</p>

<p align="center">
  <img alt="macOS: tested" src="https://img.shields.io/badge/macOS-tested-1f7a3d?logo=apple&logoColor=white">
  <img alt="Windows: beta" src="https://img.shields.io/badge/Windows-beta-9a4a00?logo=windows&logoColor=white">
  <img alt="Premiere Pro 2022 to 2027" src="https://img.shields.io/badge/Premiere%20Pro-2022%E2%80%932027-4b2fa8">
  <img alt="Node 20 or newer" src="https://img.shields.io/badge/node-%E2%89%A520-2b6a0f?logo=node.js&logoColor=white">
  <img alt="MCP server" src="https://img.shields.io/badge/MCP-server-3a2c8c">
  <img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-444d56">
</p>

**premiere-mcp** is an [MCP](https://modelcontextprotocol.io) server that lets Claude (or any MCP client) edit in **Adobe Premiere Pro**. Here is what it does:

- cuts, trims and keyframes
- applies your Effects-panel presets
- writes **editable** subtitles from a local Whisper transcript
- makes jump cuts
- grades with Lumetri looks and LUTs
- exports
- screenshots or records Premiere's own UI for tutorials

Everything runs on your computer: no subscription, no cloud, no telemetry.

<p align="center">
  <img src="assets/demo.gif" alt="Claude editing in Premiere Pro: jump cuts, transcription, subtitles, a Lumetri look and a preset, with the Premiere MCP panel narrating each step" width="100%">
  <br><em>One request, about 15 seconds: cut the pauses, transcribe, add subtitles, grade every shot, add an intro preset. (Sped up 1.4×, recorded with the server's own <code>record_ui</code>.)</em>
</p>

<table>
  <tr>
    <td width="62%"><img src="assets/result.jpg" alt="Rendered frame with an editable Bold Web Caption subtitle"></td>
    <td width="38%"><img src="assets/panel.png" alt="The Premiere MCP panel: live status, activity and setup check"></td>
  </tr>
  <tr>
    <td>The result: native, editable Premiere text graphics (not burned-in images), timed word by word.</td>
    <td>The <b>Premiere MCP</b> panel inside Premiere: what's running now, every action with its timing, and a setup check.</td>
  </tr>
</table>

**Contents:** [What it can do](#what-it-can-do) · [Compatibility](#compatibility) · [Install](#install) · [How it works](#how-it-works) · [Feature notes](#feature-notes) · [Premiere quirks](#premiere-quirks-this-works-around)

## What it can do

90 tools, grouped roughly like this:

| Area | Tools |
|---|---|
| State | `status`, `project_state`, `sequence_state` (clips carry stable `id`s), `selection`, `select_clip`, `clip_properties`, `list_effect_properties` |
| Project | `import_files` (auto-converts variable-frame-rate video), `create_bin`, `move_items`, `create_sequence` (optional `fps`/`width`/`height`), `set_sequence_settings`, `duplicate_sequence`, `open_sequence`, `save_project` |
| Timeline | `place_clip` (overwrite or A/V-safe insert), `trim_clip`, `move_clip`, `slip_clip`, `slide_clip`, `roll_edit`, `remove_clips`, `remove_range(s)` (ripple across all tracks), `razor`, `set_clip_enabled`, `set_speed`, `set_time_interpolation` (optical flow), `scale_to_frame`, `loop_clip` |
| Effects | `set_clip_property` (keyframes with linear/ease/hold), `wiggle`, `find_effects`, `apply_effect`, `apply_effect_batch`, `copy_effects`, `apply_transition`, `list_presets`, `apply_preset` |
| Color | `list_lumetri_looks`, `apply_lumetri_look`, `apply_lut` |
| Generated | `freeze_frame`, `add_color_matte`, `add_adjustment_layer`, `add_text`, `list_templates` |
| Speech & audio | `transcribe`, `get_transcript`, `add_subtitles` (editable graphics or native captions), `export_srt`, `import_captions`, `detect_silence`, `jump_cut`, `set_volume`, `duck_music` |
| Sequences | `auto_reframe` (e.g. 9:16 for Shorts), `scene_edit_detection` |
| Media | `create_subclip`, `interpret_footage`, `replace_media`, `make_proxies`, `attach_proxy`, `proxy_info`, `set_label`, `relink`, `find_offline`, `find_unused`, `sort_project`, `clean_empty_bins`, `consolidate_duplicates` |
| Checks | `qc` (gaps, flash frames, offline media, speed changes, loudness) |
| Markers & output | `add_markers`, `delete_markers`, `set_playhead`, `set_in_out`, `export_frame`, `export_sequence`, `queue_export` (Media Encoder), `export_xml` (FCP XML / project) |
| Premiere's UI | `capture_ui`, `record_ui`, `focus_panel`, `timeline_view`, `effect_controls_scroll`, `list_workspaces`, `set_workspace` |
| Batch & escape hatches | `apply_edit_plan` (many steps in one call), `run_extendscript`, `reload_bridge` |

Example requests:

- "Cut the silences, then transcribe and add subtitles with my Bold Caption template."
- "Apply the `double zoom` preset to every clip where I say 'wait'."
- "Make a 9:16 version of this sequence for Shorts."
- "Duck the music on A2 under the voice on A1 to -20 dB."
- "Put the Kodak 2393 look on all B-roll and export a 1080p H.264."
- "Screenshot the Effect Controls panel with the Transform effect for my tutorial."

## Compatibility

| | macOS | Windows |
|---|---|---|
| Editing tools (everything except the row below) | **Yes**, tested | **Beta**: supported, not yet tested on a real Windows PC |
| Premiere UI tools (`capture_ui`, `record_ui`, `focus_panel`, `timeline_view`, `effect_controls_scroll`) | **Yes**, on macOS 15 Sequoia or later | **No**, not yet (they return a clear error) |
| Installer (`npm run setup`) | **Yes** | **Yes** |

| Premiere Pro | Status |
|---|---|
| 2027 (27.x) | **Works**, tested on 27.0 |
| 2026 (26.x) | **Works**, tested on 26.5 (main development version) |
| 2022–2025 (22.x–25.x) | **Should work, untested.** The panel needs CEP 11, which ships with 22.0, but these versions are untested. Newer APIs may be missing: Lumetri looks, and the GPU Transform effect some presets use. Those tools then report an error instead of half-applying. |
| 2021 and older | **Not supported** |

Premiere Pro is still adding UXP; this project uses CEP panels, which Premiere 2027 still runs. If a future version drops CEP, the panel will need a UXP port.

**Software you need:**

| | macOS | Windows |
|---|---|---|
| Node.js 20+ | `brew install node` | `winget install OpenJS.NodeJS.LTS` |
| ffmpeg (frames, audio analysis, silence, proxies) | `brew install ffmpeg` | `winget install Gyan.FFmpeg` |
| Python 3 (reads your effect presets) | built in with `xcode-select --install` | python.org or `winget install Python.Python.3.12` |
| whisper.cpp + model (transcription, subtitles; optional) | `brew install whisper-cpp` | a release build from [whisper.cpp](https://github.com/ggml-org/whisper.cpp/releases), `whisper-cli.exe` on PATH |
| Xcode command line tools (builds the UI helper; optional) | `xcode-select --install` | — |

The Whisper model goes in `~/.whisper-models/ggml-large-v3-turbo.bin` (on Windows, `C:\Users\<you>\.whisper-models\`). `npm run setup` prints the download command.

## Install

```bash
git clone https://github.com/Jashanxd/premiere-mcp.git
cd premiere-mcp
npm run setup
```

`npm run setup` (same command on macOS and Windows):

1. Installs dependencies.
2. Links the **Premiere MCP** panel into Premiere's CEP extensions folder:
   - macOS: `~/Library/Application Support/Adobe/CEP/extensions`
   - Windows: `%APPDATA%\Adobe\CEP\extensions`, as a junction, so no admin rights are needed
3. Turns on CEP debug mode, so Premiere loads this unsigned panel (`defaults` on macOS, `HKCU\Software\Adobe\CSXS.*` on Windows).
4. Checks for ffmpeg, Python and Whisper.
5. On macOS, builds the helper app.
6. Prints the exact lines to add to your MCP client.

Then:

1. **Restart Premiere.** The Premiere MCP panel starts by itself (Window › Extensions › Premiere MCP). It shows a green status when it is listening.
2. **Add the server to your MCP client:**
   - Claude Code: `claude mcp add premiere -- node /path/to/premiere-mcp/server/index.js`
   - Claude Desktop: add this to `claude_desktop_config.json`. On macOS it is in `~/Library/Application Support/Claude/`; on Windows, in `%APPDATA%\Claude\`.
     ```json
     { "mcpServers": { "premiere": { "command": "node", "args": ["/path/to/premiere-mcp/server/index.js"] } } }
     ```
3. **macOS, for the UI tools only:** in System Settings › Privacy & Security, turn on **Premiere MCP Helper** under both *Screen & System Audio Recording* and *Accessibility*. If it isn't listed, add it with **+** from `premiere-mcp/helper/`.

Start a new chat and ask it to run `status`.

### The helper app and its permissions (macOS)

The UI tools (`capture_ui`, `record_ui`, `focus_panel`, `timeline_view`, `effect_controls_scroll`) use a small Swift app, `helper/Premiere MCP Helper.app`. It's a separate app so that macOS asks for Screen Recording and Accessibility for the helper itself, not for your terminal or Claude.

macOS ties those permissions to the app's code signature. An ad-hoc signature changes on every build and silently voids them. `npm run setup` therefore offers to create a local self-signed certificate, "Premiere MCP Helper Signing" (`npm run signing-cert`), and `npm run build-helper` signs with it, so the permissions survive rebuilds. You can delete it in Keychain Access at any time.

## How it works

```
MCP client ──stdio──▶ server/index.js ──HTTP 127.0.0.1──▶ "Premiere MCP" panel (CEP) ──evalScript──▶ host.jsx inside Premiere
                            │
                            ├─ ffmpeg / ffprobe / whisper-cli (local)
                            └─ Premiere MCP Helper.app (macOS: window capture, recording, menus, OCR)
```

- **`panel/`**: the **Premiere MCP** panel, a CEP panel that runs inside Premiere. Besides the bridge, it shows:
  - what is running now, with the current step
  - an activity list (click a row for its arguments, result or error)
  - a setup check (ffmpeg, Whisper, Python, helper)
  - Copy setup / Data folder / Reload buttons

  Its colours follow Premiere's own theme.
  - `main.js` runs an HTTP server on `127.0.0.1`. It is guarded by a random token in `~/.premiere-mcp/bridge.json` and refuses browser requests (anything with an `Origin` header).
  - `host/host.jsx` holds all the Premiere-side logic in ExtendScript (ES3), using Premiere's DOM and the undocumented QE DOM.
- **`server/index.js`**: the MCP server over stdio. It also does the work Premiere can't do itself:
  - Whisper transcription and subtitle chunking
  - building `.mogrt` text graphics
  - ffmpeg analysis (silence, loudness, frame extraction)
  - variable-frame-rate conversion
  - proxies
  - OCR-driven UI work
- **`scripts/presets.py`**: indexes your `.prfpset` effect presets, so `apply_preset` can replay them.
- **`helper/main.swift`**: the helper app.
  - Captures with ScreenCaptureKit and does OCR with Vision.
  - Presses menu items and reads panels through the Accessibility API.
  - Premiere stays in the background throughout.
- **`templates/adjustment-layer.prproj`**: Premiere has no scripting call to create an adjustment layer, so `add_adjustment_layer` imports this one.

Data the server writes lives in `~/.premiere-mcp/` (`%USERPROFILE%\.premiere-mcp` on Windows): transcripts, the presets index, frames, UI captures.

## Feature notes

### Subtitles

- **`mode: "graphics"`** (default): every subtitle is a native Premiere text graphic, editable with the Type tool. It is not a PNG.
  - Its look comes from a `.mogrt` template. The default is Premiere's built-in **Bold Web Caption**, and `list_templates` lists the others.
  - For your own style, design one subtitle in Premiere, then use **Graphics and Titles › Export As Motion Graphics Template**. Pass that `.mogrt`, or drop it in `templates/`.
  - Font, size and colour always come from the template, because Premiere ignores font overrides passed this way.
- **`mode: "captions"`**: a native caption track (edit in the Text panel).
- Word timing comes from Whisper's DTW alignment (`-dtw` with `-nfa`). Plain segment timestamps smear words across pauses.
- Lines follow the speech:
  - A line never runs across two sentences.
  - Long sentences are split into lines of similar length, preferring a comma near the middle.
  - Pauses start a new line.
- **Transcribe after you cut.** A transcript remembers the timeline it was made from. `add_subtitles` refuses a transcript whose timeline has since been cut or trimmed (pass `force: true` to override).

### Effect presets

Premiere's scripting can't apply an Effects-panel preset, so `apply_preset` replays it.

- **Sources:** your `Effect Presets and Custom Items.prfpset` plus Premiere's factory presets.
  - They're indexed into `~/.premiere-mcp/presets-index.json`.
  - The index rebuilds when a preset file changes: about 4 s for 3,600 presets.
- **Applying:**
  - Effects are matched by **match name**, so the right one of Premiere's two "Transform" effects is used.
  - Values, colors and keyframes are set and timed like Premiere does it: *scale* stretches the animation to the clip, *anchor to in* and *anchor to out* pin it to the clip's start or end.
  - If any effect is missing, everything the preset added is removed again.
- **Matching names:** names ignore case and extra spaces. When several folders hold a preset with the same name, pass `bin`, e.g. `"Standard Shake/MEDIUM"`.
- **Not replayable:** binary parameters (Lumetri grades, text-layer data) and colour animation (the first colour is used). For Lumetri, use `apply_lumetri_look` or `apply_lut` instead.

### Color

- **`apply_lumetri_look`** applies any of Premiere's Lumetri looks (`list_lumetri_looks`, about 300 Creative/Technical looks) through `app.project.applyLumetriPreset`.
- **`apply_lut`** loads a `.cube`/`.3dl` file as Lumetri's *Input LUT*. The path lives in an unnamed string parameter two slots after "Basic Correction", and the Input LUT menu must be set to 1 for it to render.

### Audio

- **`duck_music`:**
  1. Solos the voice tracks by muting the others for a moment.
  2. Detects speech by running silence detection on that mix.
  3. Keyframes the music clips down under speech, with fades.
- **`set_volume`** takes dB. Premiere stores Level as gain: `value = 10^((dB − 15) / 20)`.

### Premiere's UI (tutorial shots)

These tools never click or type on your screen; Premiere stays in the background.

- **`capture_ui`**: a PNG of the window or of one panel (`timeline`, `effect controls`, `program`, `project`, ...) at full Retina resolution.
- **`record_ui`**: an H.264 video of the window or one panel, with the cursor.
- **`focus_panel`** brings a panel forward via the Window menu.
- **`timeline_view`** zooms to fit or to a range. It reads the visible range off the time ruler by OCR.
- **`effect_controls_scroll`** finds a component in Effect Controls (maximizing the frame when needed) and captures just that component.

Limits, because Premiere ignores synthetic keys, scrolls and clicks unless it is the frontmost app:

- Zoom moves in 2× steps (Sequence › Zoom In/Out), so `fit` fills 50–100% of the width.
- No vertical track scrolling, and no scrolling inside Effect Controls.
- Playback can't be started for a recording.

## Development

- After editing `panel/host/host.jsx`, call the `reload_bridge` tool; no Premiere restart is needed.
- Changes to `panel/main.js` or the manifest need a Premiere restart.
- Rebuild the helper with `npm run build-helper` after editing `helper/main.swift`.
- `run_extendscript` runs raw ExtendScript for anything the tools don't cover.

## Premiere quirks this works around

Most of the work in this project is working around Premiere's scripting API. These are the things that behave unexpectedly, as of Premiere 2026 and 2027:

- **Range exports:** `exportAsMediaDirect` ignores in/out and work-area ranges, and `setWorkAreaIn/OutPoint` do nothing. Ranges are exported through a throwaway `createSubsequence`, and the previously active sequence is restored afterwards.
- **Frame grabs:** QE `exportFramePNG` ignores keyframe animation. `export_frame` renders through the export path by default; `fast: true` uses QE.
- **Linked clips:** `getLinkedItems()` returns null. Linked partners are found by matching source file and start/end.
- **Inserts:** a scripted `insertClip` pushes only its own track, which knocks A/V out of sync. Inserts instead razor every track, shift later clips and markers, then overwrite.
- **Item lengths:** stills, graphics and adjustment layers land at about 5 s. They are sized before placing, so overwrites never eat later footage.
- **Speed:**
  - QE `setSpeed` shifts later clips unpredictably. `set_speed` records positions and restores or ripples them exactly.
  - Sped-up clips report in/out divided by their speed.
- **Out points:** `trackItem.outPoint` isn't updated when a clip's end is trimmed by script, so `sequence_state` derives it from the in point and duration.
- **Keyframes:** times are in source seconds. `setInterpolationTypeAtKey` takes a number (0 linear, 4 hold, 5 bezier), not a Time.
- **Dialogs:** `qe.project.newColorMatte` opens a modal colour picker that freezes scripting. Mattes are generated PNGs instead.
- **Undo:** `qe.project.undo()` reports success but undoes the wrong thing, so there is no undo tool; use Cmd+Z.
- **Sequences becoming active:** `clone()` and `autoReframeSequence()` make the new sequence active, so the tools switch back to the original.
- **Drop-frame timecode:** QE razor takes timecode, and 29.97/59.94 drop-frame sequences need `;` timecode, or cuts drift.
- **Caption tracks:** they are invisible to scripting. Ripple edits don't move them (re-run `add_subtitles`), and they can't be read back.
- **Two "Transform" effects:**
  - `getVideoEffectByName("Transform")` returns the legacy one (`AE.ADBE Geometry`).
  - `getVideoEffectByName("AE.ADBE Geometry2", true)` looks up by match name instead.
  - Unknown names return an empty-named stub, not null.
- **Effect order:** new effects aren't always appended; a legacy Transform is slotted in above a GPU one. New components are found by diffing the component list, and removed with `qeItem.getComponentAt(i).remove()`.
- **Frame rates:** sequences made from stills default to 25 fps. `setSettings()` changes this, and existing cuts snap to the new frame grid.
- **Audio volume** is `Internal Volume Mono/Stereo`, not `AE.ADBE Volume`, and Level is stored as gain.
- **QE slip** moves the source the opposite way to its sign, and touches only the item you call it on. `slip_clip` flips the sign and also slips the linked audio.
- **Scene Edit Detection** ignores changes between flat solid colours; it needs real picture content.
- **Media Encoder:** `app.encoder.launchEncoder()` fails silently unless the matching Media Encoder version is installed. `queue_export` checks for it and says so.
- **Accessibility tree:**
  - Premiere builds it only for clients that set `AXManualAccessibility`, and drops it again (for example after maximizing a frame).
  - The zoom bar's values don't refresh, so the timeline is read by OCR.
- **Background input:** Premiere ignores posted keys and mouse events and `qe.startPlayback()` while it isn't frontmost. Menu presses and AXPress through accessibility do work.
- **Jump cuts on frame boundaries:** silence detection gives sub-frame times. Razor snaps to frames, but a ripple doesn't, so unsnapped cuts leave sliver overlaps and gaps between pieces. Cut points are rounded to the frame first.
- **ScreenCaptureKit crops:** a cropped screenshot (`sourceRect`) taken while another stream records the same window comes back shifted. The helper captures the whole window and crops the bitmap itself.
- **Variable-frame-rate recordings** import as audio-only. `import_files` converts them to constant frame rate first.

## License

MIT. See [LICENSE](LICENSE).

This project isn't affiliated with or endorsed by Adobe. Adobe and Premiere Pro are trademarks of Adobe Inc.

TDQS

B3.1/5.0

Scored across 90 tools

Disambiguation4/5

Most tools target clearly distinct actions, and descriptions help separate close pairs such as remove_clips vs remove_range and apply_effect vs apply_preset. Still, some overlaps remain, like set_clip_property vs set_volume and add_text vs add_subtitles, so the set is not fully unambiguous.

Naming Consistency3/5

The dominant pattern is snake_case verb_noun, but many tools are noun-only or bare verbs (status, selection, qc, razor, relink, wiggle, transcribe). The names remain readable, but the convention is not consistently applied across the 90-tool surface.

Tool Count1/5

90 tools is far beyond a well-scoped MCP surface, even for a complex domain like Premiere Pro. Many operations could be consolidated or grouped, and the sheer count makes discovery and correct tool selection difficult.

Completeness5/5

The surface covers import, project organization, timeline editing, effects and color, audio, captions, export, QC, proxies, UI capture, and an ExtendScript fallback. There are no obvious lifecycle gaps for the stated purpose.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues