Skip to main content
Glama

Reelwright

An MCP server that lets AI agents edit video through a structured timeline, with transcripts, scene detection, and preview renders for self-checking.

AI agents can't drag clips on a timeline, and they can't watch or listen to footage in real time. Reelwright gives them what they need instead:

  • Eyes and ears. Contact sheets, scene-cut detection, silence and loudness maps, waveforms, and word-timestamped transcripts.

  • A timeline as data. A JSON edit list with ripple editing and undo/redo, driven by tool calls like delete_range and add_text.

  • A way to check its own work. check_frames renders frames of the edited timeline, overlays and captions included, so the agent can verify each change before exporting.

Everything renders locally with ffmpeg, so footage never leaves your machine.

Features

Area

What it does

Perception

Contact sheets of any source range, scene-change detection, silence detection, EBU R128 loudness curves, waveform images, transcripts (faster-whisper or imported .srt/.vtt)

Editing

Add, trim, split, move and delete clips; ripple-delete any timeline range across clip boundaries; one-call silence removal with padding; per-clip volume, speed (0.1–16×) and crop

Reframing

blur fit puts 16:9 footage on a blurred fill for 9:16 reels; per-clip crop zooms into the action

Layers

Text overlays (top, center, bottom, lower-third), background music with automatic ducking under speech, fades

Captions

Generated from transcripts and kept in sync with the edit; burned in or exported as .srt

Review UI

A local web page to watch the edit, scrub the timeline and pin notes like "cut this pause" for the agent; updates live as the agent edits

Output

Low-res range previews; exports for YouTube 1080p/4K, Shorts 9:16 and square, with -14 LUFS loudness normalisation; GPU encoders (NVENC, QSV, AMF, VideoToolbox)

Related MCP server: vidcut

Requirements

  • Python 3.10+

  • ffmpeg and ffprobe on your PATH, built with libass and libfreetype (standard full builds include both)

    • Windows: winget install Gyan.FFmpeg

    • macOS: brew install ffmpeg

    • Linux: sudo apt install ffmpeg

Install

git clone https://github.com/BitLess246/Reelwright.git
cd Reelwright
pip install -e .                  # core
pip install -e ".[transcribe]"    # optional: local transcription with faster-whisper
reelwright doctor                 # check ffmpeg, filters, fonts and GPU encoders

Connect it to an MCP client

Claude Desktop. Add this to claude_desktop_config.json (on Windows: %APPDATA%\Claude\claude_desktop_config.json), then restart Claude Desktop:

{
  "mcpServers": {
    "reelwright": {
      "command": "reelwright",
      "env": { "REELWRIGHT_HOME": "C:/Users/YOU/Videos/Reelwright" }
    }
  }
}

If reelwright isn't on the PATH Claude Desktop sees, use the full path to your Python with "args": ["-m", "reelwright"].

Claude Code:

claude mcp add reelwright -- reelwright

Other clients. Run reelwright for stdio or reelwright serve --http for streamable HTTP.

REELWRIGHT_HOME is where projects are stored (default: ~/Reelwright/projects). REELWRIGHT_FFMPEG and REELWRIGHT_FFPROBE override the ffmpeg binaries.

Example

Ask your agent something like:

Make a project called "beam-lesson", import D:/footage/lecture.mp4 and D:/music/calm.mp3. Remove the silences, add a title card that says "Simply Supported Beams" for the first 3 seconds, put the music under it at low volume, turn on captions, check a few frames, then export for YouTube and as a Short.

A typical run looks like this:

create_project  → import_media → inspect_media / transcribe
remove_silences (dry_run=True, then for real)
add_text, add_music, set_captions
check_frames [0.5, 2.0, 45.0]  → looks at the result, fixes anything off
render_preview (a range) → export preset=youtube → export preset=shorts

Tools

Tool

Purpose

list_projects, create_project, get_timeline, update_settings

Manage projects; get_timeline returns the whole edit with timeline and source times

undo, redo, history

Every edit is one undo step, persisted on disk

import_media

Probe and add video, audio and image files

inspect_media

Contact sheet of a source range with timestamps (image)

detect_scenes, detect_silence

Shot changes and silent ranges, in source time

audio_loudness, audio_waveform

Loudness curve and LUFS, or a waveform image, for an asset or a render

transcribe, import_transcript, get_transcript

Word-timestamped transcripts; read in source time or as the edited timeline

add_clip, trim_clip, split_clip, delete_clip, delete_range, move_clip, set_clip_volume

Main-track editing (ripple)

set_clip_speed, set_clip_crop

Speed ramps and zoom-in reframing per clip

remove_silences

Detect and cut dead air across the timeline; supports dry_run

add_text, update_text, remove_text

Text overlays

add_music, remove_music

Background audio with ducking and fades

set_captions

Captions from transcripts, burned in or as .srt

add_note, list_notes, resolve_note

Review notes pinned to timeline times

open_review

Start the local review UI and open it in the browser

check_frames, timeline_contact_sheet

Frames of the edited timeline for self-checking (image)

render_preview, export

Low-res range previews and final exports

How the timeline works

A project is one project.json:

  • clips form the main track and play back-to-back. Each clip has src_in/src_out in source time; its position on the timeline is implied by the clips before it, so deleting anything ripples automatically.

  • overlays and music sit at absolute timeline times. Ripple deletes shift them so they stay attached to the content around them.

  • Transcripts are stored per asset in source time and mapped through the edit whenever captions or get_transcript need them, so captions stay correct after every cut.

<REELWRIGHT_HOME>/<project>/
  project.json     the edit
  history.json     undo/redo
  cache/           transcripts, analysis, frames, contact sheets
  renders/         previews and exports

Review UI

reelwright review beam-lesson

This opens a page on http://localhost:8765 (local only). The agent can also open it with the open_review tool.

  • Watch a low-res preview of the edit. A badge tells you when the agent has changed the edit since the last render; one click re-renders.

  • Scrub the timeline: video clips, text overlays, music and notes each get their own lane. Click any transcript line or clip to jump there.

  • Leave notes: pause, press N, type what you want changed, press Enter. The note is pinned to that moment, and the agent reads it with list_notes. Agent notes (questions for you) show up in blue.

  • Undo/redo the agent's edits from the page.

Keys: Space play/pause, ←/→ 1 s (Shift for 5 s), ,/. one frame, N new note, Ctrl+Z undo.

CLI

reelwright doctor                          # environment check
reelwright review beam-lesson              # open the review UI
reelwright info beam-lesson                # print the timeline
reelwright note beam-lesson 42.5 "cut this pause"   # leave feedback for the agent
reelwright export beam-lesson --preset shorts --encoder h264_nvenc

Development

pip install -e ".[dev]"
pytest

The tests generate small synthetic clips with ffmpeg, so no media files are needed.

Roadmap

  • Local review UI: scrub the timeline in a browser and leave notes

  • Filler-word removal ("um", "uh") from word timestamps

  • Transitions (crossfade, dip to black) and Ken Burns on images

  • Picture-in-picture and B-roll overlay track

  • Render progress reporting and background export jobs

  • Speaker diarisation and face-aware auto-reframing for Shorts

License

Apache-2.0. Reelwright calls the ffmpeg you have installed and does not bundle it.

Available Tools

37 tools
add_clipA

Place [src_in, src_out] of an asset on the main track (appends unless index is given). Images default to 5 seconds.

Inputs: project (required), asset_id (required), index, src_in, +2 more.

add_musicA

Lay background audio under the main track from timeline time start. duck=True lowers it automatically whenever the main track has sound (speech).

Inputs: project (required), asset_id (required), duck, start, +5 more.

add_noteC

Pin a review note to a timeline time (e.g. a question for the human).

Inputs: text (required), time (required), project (required), author.

add_textC

Add a text overlay at timeline times. font_size is relative to a 1080p canvas. Use \n for line breaks.

Inputs: end (required), text (required), start (required), project (required), +4 more.

audio_loudnessB

Integrated loudness (LUFS), true peak, and a per-window loudness curve for an asset or a rendered file. YouTube normalises to about -14 LUFS.

Inputs: project (required), window, asset_id, render_path.

audio_waveformC

Waveform image of an asset's or a rendered file's audio, to spot speech, pauses and peaks.

Inputs: project (required), end, start, asset_id, +1 more.

check_framesA

Render frames of the EDITED timeline at the given timeline times (overlays and captions included) and return them as one labelled grid. Use after every edit to verify it.

Inputs: times (required), project (required), width, columns.

create_projectB

Create a new project. width/height/fps define the canvas; fit controls how sources with a different aspect ratio are placed (contain = letterbox, cover = crop).

Inputs: name (required), fit, fps, width, +1 more.

delete_clipC

Remove a clip; everything after it ripples left.

Inputs: clip_id (required), project (required).

delete_rangeA

Ripple-delete [start, end] of the timeline (e.g. a pause, a fumbled sentence). Works across clip boundaries; overlays and notes after it shift left.

Inputs: end (required), start (required), project (required).

detect_scenesB

Shot-change timestamps (source time) in a video asset. Lower threshold = more sensitive.

Inputs: project (required), asset_id (required), threshold.

detect_silenceC

Silent ranges [start, end] (source time) in an asset's audio.

Inputs: project (required), asset_id (required), noise_db, min_duration.

exportB

Final render. Presets set resolution and loudness (-14 LUFS for youtube/shorts/square). Use a GPU encoder (h264_nvenc etc.) if the machine has one. Writes a sidecar .srt when captions are enabled.

Inputs: project (required), preset, encoder, quality, +1 more.

get_timelineC

The full edit: clips with timeline and source times, overlays, music, open notes, assets.

Inputs: project (required).

get_transcriptA

Read a transcript as timestamped lines. With asset_id: source time. Without it: the edited timeline (only words that survive the edit). query filters lines containing text.

Inputs: project (required), end, query, start, +1 more. Returns: result

historyC

Undo/redo stack descriptions (oldest first).

Inputs: project (required).

import_mediaB

Add media files (video, audio, images) to the project's asset library. Paths must be absolute paths on the machine running this server.

Inputs: paths (required), project (required), labels.

import_transcriptA

Attach an existing .srt or .vtt file (in source time) as an asset's transcript.

Inputs: project (required), asset_id (required), subtitle_path (required).

inspect_mediaB

Contact sheet: count evenly spaced frames from [start, end] of a source asset, each labelled with its source timestamp. Use it to see what is in a clip.

Inputs: project (required), asset_id (required), end, count, +2 more.

list_notesB

Review notes (human feedback such as "cut this pause"), in timeline order.

Inputs: project (required), include_resolved.

list_projectsB

List existing Reelwright projects.

Inputs: no named parameters.

move_clipB

Move a clip to a new position on the main track (0 = first).

Inputs: index (required), clip_id (required), project (required).

redoC

Redo the last undone edit.

Inputs: project (required).

remove_musicC

Delete a music cue.

Inputs: project (required), music_id (required).

remove_silencesA

Cut dead air across the whole timeline: detects silence in every clip's audio and ripple-deletes it, keeping padding seconds either side so speech isn't clipped. Use dry_run=True to preview the cuts first.

Inputs: project (required), dry_run, padding, noise_db, +1 more.

remove_textC

Delete a text overlay.

Inputs: project (required), overlay_id (required).

render_previewB

Fast low-res MP4 of the edit (or of [start, end]) for review. Returns the file path.

Inputs: project (required), end, start.

resolve_noteC

Mark a review note as handled.

Inputs: note_id (required), project (required).

set_captionsB

Turn captions on/off. Captions are generated from asset transcripts and follow the edit automatically. burn_in=False exports a sidecar .srt instead of drawing them.

Inputs: project (required), burn_in, enabled, font_size, +2 more.

set_clip_volumeB

Set a clip's audio gain (1.0 = unchanged, 0 = mute).

Inputs: volume (required), clip_id (required), project (required).

split_clipC

Split the clip under a timeline time into two clips.

Inputs: time (required), project (required).

timeline_contact_sheetC

Evenly spaced frames across the edited timeline (or a range of it) in one image.

Inputs: project (required), end, count, start.

transcribeA

Transcribe an asset with word timestamps (needs pip install reelwright[transcribe]). Results are cached; read them with get_transcript.

Inputs: project (required), asset_id (required), model, language.

trim_clipC

Change a clip's in/out points (source time). Later clips ripple.

Inputs: clip_id (required), project (required), src_in, src_out.

undoC

Undo the last edit.

Inputs: project (required).

update_settingsC

Change canvas settings (resolution, fps, fit, background colour, font file for text).

Inputs: project (required), fit, fps, width, +3 more.

update_textC

Change any property of a text overlay.

Inputs: project (required), overlay_id (required), box, end, +5 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 37 tools

    Disambiguation4/5

    Most tools map cleanly to one resource+action (clips, text, music, notes, transcripts), and the analysis tools (detect_scenes, detect_silence, audio_loudness, audio_waveform) are clearly separated. The only real blur is the preview trio — check_frames vs timeline_contact_sheet both render grids of the edited timeline, and inspect_media does the same for source assets — plus remove_silences overlaying detect_silence/delete_range. Descriptions do enough to steer an agent, but those pairs could be misselected.

    Naming Consistency4/5

    Strong verb_noun snake_case pattern: add_clip, trim_clip, split_clip, delete_clip, move_clip, add_text/update_text/remove_text, add_music/remove_music, add_note/list_notes/resolve_note. The deviations are few and readable — noun-phrase analysis tools (audio_loudness, audio_waveform, timeline_contact_sheet) and bare commands (undo, redo, history, export, transcribe). Nothing chaotic, just minor convention drift.

    Tool Count3/5

    37 tools is heavy for a single server, though the domain (ingest, analyze, edit, overlay, caption, render) genuinely demands breadth and almost every tool is doing distinct work. It still sits well past the comfortable 3-15 range and the preview/inspection cluster in particular feels padded. Borderline heavy rather than gratuitous.

    Completeness4/5

    Coverage is unusually deep: full clip lifecycle (add/trim/split/delete/move/volume/delete_range), overlays and music CRUD, transcripts, undo/redo/history, preview and final export with caption handling. Gaps are minor but real — no delete_project or asset/media removal, no read-side settings getter, and no transitions or fades between clips. Agents can work around these, but a few lifecycle ends are dead.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      AI-native timeline editor for short-form video. Your agent cuts, captions, adds motion graphics and renders against a real, editable timeline over MCP — not a render queue. Human-in-the-loop by design: it calls request_review and waits while you supervise in a browser. Local-first and AGPL; your footage never leaves your machine.
      2
      AGPL 3.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to edit talking-head videos locally by transcribing footage, applying validated edit operations like cutting fillers and silences, adding zooms, captions, looks and branding, and checking results with rendered previews. Agents can also read pinned editor feedback notes with annotated frames, resolve them, and export MP4, SRT or OTIO while the user watches changes live.
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to edit video locally through FFmpeg: probing media, validating and previewing JSON edit projects, rendering short-form clips with captions, reframing, transitions and ducked music. Also analyses existing videos and applies or saves reusable format templates, without cloud services or API keys.
      1
      Apache 2.0