video-harness
video-harness is an MCP server that gives any agent a small, focused job surface over DaVinci Resolve: inspect a project, import media, place clips on a timeline, color them, and stamp typed metadata markers.
Diagnose/connect:
doctorchecks Resolve connectivity (Studio scripting vs free-edition in-app bridge);reconnectdrops and rebuilds the cached session.Inspect:
inspectsnapshots app, project, current timeline (tracks, items, markers) and media pool (media: currentbin orall).Marker types:
type_registry_getreturns the id → color / scope (timeline|item|clip) / duration (point|range) registry.Import media:
media_importpulls files into the current media pool folder and returns amedia_idper clip.Timelines:
timeline_ensureidempotently creates and switches to a named timeline;timeline_assembledoes ensure + import + place as a one-call rough cut.Placement:
timeline_placeappends clips by media_id / clip_name / path with track type and index, record frame, source in/out, and media type (video/audio).Lift:
timeline_liftdeletes items by unique_id or frame range (with optional ripple) — note effects on those items are lost.Color:
clip_set_colorsets Resolve clip colors (empty clears), matched by unique_ids, media_id, or clip_name, or applied to every item if unscoped.Markers:
marker_upsertcreates/replaces typed markers idempotently on payload.id;markers_queryfilters timeline/item/clip markers by type, color, scope, frame range;markers_from_metadatamaps metadata events (or clip metadata fields viafrom_clips) onto typed markers;markers_cleardeletes by id, frame, or color.Clip metadata:
clip_metadata_getreads built-in and third-party metadata for a media pool clip.
Caveat: the README's vision/edit-aware tools (clip_describe_start, clip_describe_status, clip_search_visual, timeline_draft_cut) are not present in this schema.
Provides tools for inspecting DaVinci Resolve projects, importing media, placing clips on timelines, and adding typed metadata markers.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@video-harness Import the folder 'Raw' and assemble a timeline from its clips"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
video-harness
DaVinci Resolve harness and MCP server for timeline placement, folder import, clip color, and typed metadata markers.
It does not wrap the whole Resolve API. Agents get a small job surface: inspect, import, place, color, mark.
Current release: 0.1.10 — CHANGELOG. License: MIT. Attributions: docs/attributions.md. Agents (any model) read AGENTS.md.
Docs
Site: sakethramanujam.github.io/video-harness
Page | Contents |
Install, which Resolve you have, start the Lua bridge | |
Transports (Studio / HTTP / Lua file-queue), API limits | |
MCP tools, client config, agent prompts | |
Wire this MCP into Grok and prompt import / place / color | |
Import folders, place clips, proxies, marker types | |
Doctor output, Scripts menu, sandbox, limitation dialog | |
MIT license, Blackmagic, MCP, dHash, persona sources |
Related MCP server: davinci-resolve-mcp
Quick start (free Resolve)
python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
video-harness install-bridge
video-harness doctorOpen Resolve and a project.
Workspace → Scripts → Utility → video_harness_bridge (click once). No window — that is expected. Do not use Scripts → Edit (that menu is for Edit-page scripts).
video-harness doctor→"bridge": { "ok": true, "bridge": "0.1.1" }and amethodslist that includesset_clip_color.After every
install-bridge, click Utility once more so RAM matches disk. TwofuscriptPIDs race — stop extras; never startfuscriptfrom a shell on App Store Lite.video-harness inspect(use MCPmedia=nonewhen you only need the timeline).
App Store (“Lite”) vs website install: see Setup. Lite is sandboxed; the website free build is the better $0 option.
How it talks to Resolve
Agent / CLI → Harness → Studio scriptapp
→ or Lua script inside Resolve (file queue)Free editions cannot be driven from an external scriptapp. The Lua script runs from Workspace → Scripts and polls JSON under the Resolve config dir (container path on App Store Lite).
MCP
{
"mcpServers": {
"video-harness": {
"command": "/ABS/PATH/TO/video-harness/.venv/bin/video-harness",
"args": ["mcp"]
}
}
}Example: Import /Users/you/Movies/DaVinci Resolve/Proxy, index visual context, and assemble draft cut Proxy_Cut in style montage. Color-code with clip_set_color (Cyan→Teal, Mint→Lime, Red→Violet; see workflows).
Vision & Edit-Aware Tools
clip_describe_start: Background VideoToolbox + dHash visual context indexing with hard Metal/RAM bounds.clip_describe_status: Poll progress, segments count, and physical memory footprint.clip_search_visual: Instant keyword search over compact JSONL sidecar without touching Lua bridge.timeline_draft_cut: Generate a first-pass edit cut in a specified style (montage,talking_head_highlights,fast_paced_social) and return structured feedback prompts for iteration.
Full tool list and prompts: MCP and agents.
What Resolve will not do through this API
Razor, trim, nudge, or move an existing timeline item (place is append-at-frame; lift is delete).
Script GUIs (UIManager) on free, since 19.1.
Out-of-process scripting on free.
LinkProxyMediais not exposed yet — importing a proxy folder edits those files as sources.
Layout
AGENTS.md persona + document-and-commit habit
src/video_harness/
types.yaml marker type → color / scope
clip_colors.py timeline clip colors + aliases
harness.py inspect / import / place / color / mark
session.py direct | HTTP | Lua
scripts/video_harness_bridge.lua in-app listener (Utility only)
scripts/vh_runtime.py Python Resolve ops (Studio)
mcp_server.pyLicense
MIT © 2026 Saketha Ramanjam. DaVinci Resolve is a product of Blackmagic Design Pty Ltd; this project is not affiliated with or endorsed by Blackmagic Design. Full citations: License and attributions.
Available Tools
15 toolsclip_metadata_getC
Read built-in and third-party metadata for a media pool clip.
Inputs: path, media_id, clip_name. Returns: result
clip_set_colorA
Set Resolve clip color on timeline items (Orange, Green, Blue, …). Empty color clears.
Match by unique_ids, media_id, or clip_name. If none given, colors every video/audio item.
Inputs: color (required), media_id, clip_name, unique_ids. Returns: result
doctorA
Diagnose Resolve connection (direct Studio scripting vs free-edition in-app bridge).
Inputs: no named parameters. Returns: result
inspectA
Snapshot of app, project, current timeline (tracks, items, markers), and media pool.
media: 'current' (current bin) or 'all' (entire pool).
Inputs: media. Returns: result
markers_clearB
Delete markers by payload id, frame, or color. scope: timeline (default), item, clip.
Inputs: id, color, frame, scope, +2 more. Returns: result
markers_from_metadataB
Map metadata events onto typed markers.
Event: {type, at (timecode or frame), id?, duration_frames?, note?, scope?, media_id? or clip: {media_id, name, path}, attrs?, source?}. from_clips=true also stamps clip metadata fields (Keywords, Shot, …) as clip-scope markers.
Inputs: events, field_map, from_clips. Returns: result
markers_queryA
Query timeline, item, and clip markers. Filter by type, color, scope, frame range.
Inputs: end, type, color, scope, +1 more. Returns: result
marker_upsertA
Create or replace typed markers. Idempotent on payload.id.
Each marker: type/name, frame, optional scope (timeline|item|clip), color, note, duration, unique_id (item), media_id (clip), payload {id, type, source, attrs}. If payload is omitted, pass type and id and the server will still store customData JSON if you include payload. Prefer markers_from_metadata for mapping.
Inputs: markers (required). Returns: result
media_importA
Import files into the current media pool folder. Returns media_id for each clip.
Inputs: paths (required). Returns: result
reconnectA
Drop the cached Resolve session and connect again.
Inputs: no named parameters. Returns: result
timeline_assembleC
Ensure a timeline, optionally import media, and place clips. Rough cut in one call.
Inputs: timeline (required), items, paths. Returns: result
timeline_ensureB
Create the named timeline if needed and switch to it. Idempotent.
Inputs: name (required). Returns: result
timeline_liftA
Delete timeline items by unique_id or by range. Effects on those items are lost.
Inputs: end, start, ripple, track_type, +2 more. Returns: result
timeline_placeC
Place clips on the current timeline.
Each item: media_id or clip_name or path; optional track_type, track_index, record_frame, source_in, source_out, media_type (1=video, 2=audio).
Inputs: items (required). Returns: result
type_registry_getB
Marker type registry: id → color, scope (timeline|item|clip), duration (point|range).
Inputs: no named parameters. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Most tools target clearly distinct resources and actions, with clear prefixes for media, timeline, markers, and clips. The main overlap is between marker_upsert and markers_from_metadata, plus timeline_assemble combining functions that individual tools already provide, but descriptions make the intended use reasonably clear.
The dominant pattern is resource-first names like timeline_place and markers_query, which is predictable and readable. Minor inconsistencies exist: standalone verbs like reconnect, doctor, and inspect, plus singular/plural mixing between marker_upsert and markers_query/clear.
At 15 tools, the set stays within the well-scoped range and each tool serves a distinct purpose in the video editing workflow. The count feels appropriate for covering connection diagnostics, project inspection, media import, timeline assembly, clip styling, markers, and metadata without bloat.
The core lifecycle for building a rough cut is well covered: import media, ensure timelines, place/lift clips, set colors, and manage markers. However, there is no media deletion/rename, metadata write support, or render/export capability, so full end-to-end project management is not possible.
Maintenance
Related MCP Connectors
MCP server for Clipkit — gives AI agents a video toolbox via the Clipkit schema.
AutoRender's MCP server for media assets, transformations, delivery, and workflow automation.
MCP connector for Demovela video libraries, render status, templates and reviewable video briefs.
An MCP connector for Adobe After Effects. Real, editable layers and keyframes, not scripts.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceComprehensive MCP server for DaVinci Resolve with 295+ tools to control projects, timelines, editing, color grading, rendering, and more via natural language.113 PyPI7MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that connects AI coding assistants to DaVinci Resolve, enabling query and control through natural language.MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that exposes the complete DaVinci Resolve scripting API, enabling AI assistants to control DaVinci Resolve programmatically with over 440 tools for project management, timeline editing, color grading, rendering, and more.28MIT
- AlicenseCqualityDmaintenanceA stdio MCP server for DaVinci Resolve on macOS, enabling project control, timeline navigation, frame capture, grade application, and validation through the official Resolve scripting API.64MIT