Skip to main content
Glama

resolve-mcp

An MCP server that gives an AI assistant control of DaVinci Resolve Studio on macOS.

132 tools across projects, media, timelines, colour, rendering and Fusion — plus resolve_exec for anything the curated tools miss, and resolve_ui for the handful of operations Blackmagic never exposed to scripting at all.

"Import this folder, build a timeline in filename order, add a marker at every
 scene cut, then queue ProRes and H.264 renders and tell me when they're done."

Install

Requires macOS, DaVinci Resolve Studio (external scripting is a Studio feature), Python 3.13+ and uv.

git clone https://github.com/irstone-source/resolve-mcp.git
cd resolve-mcp
uv sync
uv run python scripts/smoke.py     # verify the connection before wiring anything up

Then register with Claude Code:

claude mcp add resolve -- uv run --directory /absolute/path/to/resolve-mcp resolve-mcp

One manual step, once. In Resolve: Preferences → System → General → External scripting using: Local. No API can set it, and without it nothing works. Full detail in docs/SETUP.md.

Related MCP server: resolve-mcp

Documentation

Setup

Requirements, permissions, headless mode

Tool reference

All 132 tools and 6 resources, generated from the server

Architecture

How it works and why it's built this way

Troubleshooting

Failure modes and Resolve's undocumented behaviour

Development

Adding tools, testing, conventions

How to drive it

Reach for capabilities in this order:

  1. A curated tool — project_*, media_*, timeline_*, track_*, marker_*, clip_*, lut_*, render_*, fusion_*. Typed, validated, with actionable errors.

  2. resolve_exec — arbitrary Python against the live connection, for the long tail of the API. The installed scripting reference is served as MCP resources, so calls are written against real signatures rather than recalled ones.

  3. resolve_ui — AppleScript menu clicks and keystrokes. Only where no API exists.

Handles

Resolve returns live objects that can't be sent as JSON, so clips, timeline items, folders and stills pass between calls as handles:

clip:1a2b3c      a media pool clip
item:0091        a clip on a timeline
folder:root      a bin
timeline:4f2a    a timeline
still:2b70       a gallery still

Objects returned by resolve_exec get handles too, so escape-hatch code composes with the curated tools.

Every tool returns the same envelope

{ "ok": true,  "data": { ... } }
{ "ok": false, "error": "No timeline is currently open",
                "hint":  "Create a timeline with timeline_create, or select one with timeline_set_current." }

The Resolve API signals failure by returning bare False or None with no explanation. This server converts each known cause into a named condition with a remedy, so a failed call tells you what to do next instead of merely that something went wrong.

What it's good at

Repetitive and generative work: batch operations across many clips or timelines, conforming, marker-driven assembly, and querying an edit as data. It reads a timeline as structured information — every clip with its in/out, duration, track position and metadata.

What it can't do is exercise visual judgement. It sees metadata, not pictures, unless you ask it to render a still and look at one.

Notable behaviour it works around

  • scriptapp() blocks forever when Resolve is running but refuses a connection — inside C, without releasing the GIL, so no signal or thread timeout recovers it. Every connection is probed in a killable subprocess first.

  • AddRenderJob returns '', not False, when it declines — so an empty job id would otherwise be handed back as success.

  • Resolve's dialogs are invisible to macOS Accessibility (they're Qt-drawn), and a modal blocks scripting while open. Tools validate inputs client-side rather than provoking one.

  • Unknown render setting keys are silently ignored, making a typo look like success. Keys are validated against the installed reference.

More in docs/TROUBLESHOOTING.md.

Development

uv run pytest                 # 195 unit tests, no Resolve needed
uv run pytest -m live         # integration suite against real Resolve
uv run ruff check . && uv run ruff format .

Unit tests run against an in-memory double shaped like the real API, so the suite needs no Resolve installation and no application state to reset. The live suite works inside a throwaway MCP_TEST_<pid> project and restores whatever project was open.

Status

Verified against DaVinci Resolve Studio 21.0.2.4 on macOS. 195 unit tests and 13 live integration tests passing.

Licence

MIT — see LICENSE.

Not affiliated with or endorsed by Blackmagic Design. DaVinci Resolve is a trademark of Blackmagic Design Pty Ltd.

Available Tools

132 tools
bin_createA

Create a bin under the given parent, or under the root bin by default.

Inputs: name (required), parent.

bin_currentA

Return the bin that new imports will land in.

Inputs: no named parameters.

bin_deleteA

Delete bins by handle. Their contents go with them.

Inputs: handles (required).

bin_moveC

Move bins into another bin.

Inputs: target (required), folder_handles (required).

bin_set_currentC

Make a bin current, so subsequent imports land there.

Inputs: handle (required).

bin_treeA

Return the media pool bin tree.

root accepts a 'folder:' handle, 'root' (the default) or 'current'.

Inputs: root, max_depth.

cdl_setB

Apply ASC CDL values to a node. Each of slope/offset/power is three numbers.

Inputs: power, slope, offset, node_index, +2 more.

clip_deleteB

Delete clips from the media pool. This does not delete files from disk.

Inputs: clip_handles (required).

clip_findA

Search clips by substring of the clip name, recursing through sub-bins.

Inputs: name_contains (required), bin_handle.

clip_flagsC

Read, add or clear clip flags. Pass clear='All' to remove every flag.

Inputs: handle (required), add, clear.

clip_listB

List clips in a bin. Defaults to the root bin.

Inputs: bin_handle.

clip_marker_addC

Add a marker to a media pool clip at a source frame.

Inputs: frame (required), handle (required), name, note, +3 more.

clip_marker_deleteB

Delete a clip marker by frame, or every marker of a colour ('All' for all).

Inputs: handle (required), color, frame.

clip_markersC

List markers on a media pool clip, sorted by frame.

Inputs: handle (required).

clip_metadataA

Read clip metadata. Returns everything set when name is omitted.

Inputs: handle (required), name.

clip_moveC

Move clips into another bin.

Inputs: target_bin (required), clip_handles (required).

clip_propertiesB

Read clip properties. Returns every property when name is omitted.

Inputs: handle (required), name.

clip_replaceB

Replace the media behind a clip, keeping its place in timelines.

Inputs: handle (required), file_path (required), preserve_subclip.

clip_set_colorB

Set or clear a clip's colour. Omit color to clear it.

Inputs: handle (required), color.

clip_set_metadataC

Write one or more metadata keys on a clip.

Inputs: handle (required), values (required).

clip_set_propertyC

Write one clip property. Names are listed in resolve://api/readme.

Inputs: name (required), value (required), handle (required).

color_group_addA

Create a colour group. The name must be unique.

Inputs: name (required).

color_group_listB

List colour groups in the current project.

Inputs: no named parameters.

compound_clip_createC

Turn timeline clips into a compound clip.

Inputs: item_handles (required), name, start_timecode.

database_folder_openB

Navigate the database folder tree.

Pass folder_name to open a named subfolder, or go_to='root'/'parent'.

Inputs: go_to, folder_name.

database_listA

List the databases Resolve knows about, and which one is connected.

Inputs: no named parameters.

database_setA

Switch database connection. This closes any open project.

db_type is 'Disk' or 'PostgreSQL'. ip_address applies to PostgreSQL only.

Inputs: db_name (required), db_type, ip_address.

detect_scene_cutsC

Detect scene cuts and add edits along the timeline.

Inputs: name_or_handle.

frame_exportB

Export the current frame as a still image. The extension sets the format.

Inputs: file_path (required).

fusion_clip_createC

Turn timeline clips into a Fusion clip.

Inputs: item_handles (required).

fusion_comp_addC

Add a Fusion comp to a timeline clip and return its name.

Inputs: item_handle.

fusion_comp_deleteC

Delete a Fusion comp from a timeline clip.

Inputs: name (required), item_handle.

fusion_comp_exportC

Export a Fusion comp on a timeline clip to a .comp file.

Inputs: file_path (required), name, item_handle.

fusion_comp_importC

Import a .comp file onto a timeline clip.

Inputs: file_path (required), item_handle.

fusion_comp_listC

List Fusion comps on a timeline clip.

Inputs: item_handle.

fusion_comp_loadC

Make a Fusion comp active on a timeline clip.

Inputs: name (required), item_handle.

fusion_comp_renameC

Rename a Fusion comp on a timeline clip.

Inputs: new_name (required), old_name (required), item_handle.

fusion_luaA

Run Lua inside a Fusion comp. This is how node graphs are built and edited.

The Python API reaches comps but not their nodes, so node-level work goes through here. Inside the script, comp is the composition.

Example: local bg = comp:AddTool("Background") bg.TopLeftRed = 1

Inputs: script (required), comp_name, item_handle.

fusion_page_luaB

Run Lua against the Fusion page's current composition, outside any timeline clip.

Inputs: script (required).

grade_copyC

Copy the full grade from one timeline clip to others.

Inputs: source_item (required), target_items (required).

insert_fusion_compositionB

Insert an empty Fusion composition at the playhead.

Inputs: no named parameters.

insert_generatorC

Insert a generator at the playhead. kind is standard, fusion or ofx.

Inputs: name (required), kind.

insert_titleB

Insert a title at the playhead. fusion=True inserts a Fusion title instead.

Inputs: name (required), fusion.

item_renameC

Rename a timeline clip.

Inputs: name (required), item_handle (required).

item_set_enabledB

Enable or disable a timeline clip.

Inputs: enabled (required), item_handle (required).

lut_applyA

Apply a LUT to a node on a timeline clip.

node_index is 1-based (it changed from 0-based in Resolve 16.2). The LUT must already be discovered by Resolve — call lut_refresh after adding new LUT files.

Inputs: lut_path (required), node_index, item_handle.

lut_getB

Read the LUT applied to a node.

Inputs: node_index, item_handle.

lut_refreshA

Rescan the LUT folders. Call after adding LUT files on disk.

Inputs: no named parameters.

marker_addA

Add a marker to the current timeline.

frame is an offset from the timeline start, not a timecode. Colours include Blue, Cyan, Green, Yellow, Red, Pink, Purple, Fuchsia, Rose, Lavender, Sky, Mint, Lemon, Sand, Cocoa, Cream.

Inputs: frame (required), name, note, color, +2 more.

marker_deleteA

Delete a timeline marker by frame, or all markers of a colour ('All' for every one).

Inputs: color, frame.

markers_getC

List timeline markers, sorted by frame.

Inputs: name_or_handle.

mark_in_outA

Read, set or clear the timeline in/out marks.

Called with no frames, it clears them. mark_type is video, audio or all.

Inputs: in_frame, mark_type, out_frame.

media_importA

Import media files or folders into the media pool.

Paths must be absolute and must exist. Pass bin_handle to import into a specific bin rather than the current one.

Inputs: paths (required), bin_handle.

node_graph_infoB

Describe a clip's node graph: node count, labels and LUTs.

Inputs: item_handle.

page_getA

Return the page currently shown in Resolve.

Inputs: no named parameters.

page_setA

Switch Resolve to a page.

One of: media, cut, edit, fusion, color, fairlight, deliver. Some operations only work while the matching page is open.

Inputs: page (required).

project_closeA

Close the current project WITHOUT saving. Call project_save first to keep changes.

Inputs: no named parameters.

project_createB

Create a new project and make it current. The name must be unique.

Inputs: name (required), media_location.

project_deleteA

Delete a project from the current database folder. It must not be open.

Inputs: name (required).

project_exportC

Export a project to a .drp file.

Inputs: name (required), file_path (required), with_stills_and_luts.

project_importC

Import a project from a .drp file.

Inputs: file_path (required), name.

project_listA

List project and folder names in the current database folder.

Inputs: no named parameters.

project_openA

Open an existing project by name. Unsaved changes to the current project are kept.

Inputs: name (required).

project_saveB

Save the current project.

Inputs: no named parameters.

project_settings_getA

Read one project setting, or all of them when setting is omitted.

Setting names are listed in the 'Looking up Project and Clip Properties' section of resolve://api/readme.

Inputs: setting.

project_settings_setC

Write one project setting. Values are always passed as strings.

Inputs: value (required), setting (required).

project_statusA

Report Resolve's version, current page, database, open project and timeline.

Call this first in a session to see what state Resolve is in. Set ensure_running to launch Resolve if it is not already running.

Inputs: ensure_running.

quick_exportB

Render the current timeline with a Quick Export preset. Blocks until done.

Inputs: preset (required), target_dir (required), custom_name, video_quality.

quick_export_presetsA

List Quick Export presets.

Inputs: no named parameters.

render_codecsA

List codecs for a format. Pass the extension, e.g. 'mov', not 'QuickTime'.

Inputs: render_format (required).

render_formatsA

List render formats available in this project, as name -> file extension.

Inputs: no named parameters.

render_format_setC

Set the render format and codec. Use the codec's short name from render_codecs.

Inputs: codec (required), render_format (required).

render_job_addA

Add a render job for the current timeline using the current render settings.

Set the format, codec and settings first — the job captures them at this moment.

Inputs: no named parameters.

render_job_deleteB

Delete one render job by id, or the whole queue with all_jobs.

Inputs: job_id, all_jobs.

render_jobsA

List every job in the render queue, with its status.

Inputs: no named parameters.

render_mode_setB

Set render mode: 'individual' for one file per clip, 'single' for one file.

Inputs: mode (required).

render_preset_deleteC

Delete a render preset.

Inputs: name (required).

render_preset_loadC

Load a render preset as the current render settings.

Inputs: name (required).

render_presetsB

List render presets in this project.

Inputs: no named parameters.

render_preset_saveB

Save the current render settings as a new preset.

Inputs: name (required).

render_resolutionsA

List resolutions valid for a format and codec, or all of them when omitted.

Inputs: codec, render_format.

render_settings_setA

Set render settings for the next job added to the queue.

Valid keys include TargetDir, CustomName, ExportVideo, ExportAudio, FormatWidth, FormatHeight, FrameRate, VideoQuality, MarkIn, MarkOut and SelectAllFrames. See the 'Looking up Render Settings' section of resolve://api/readme for the full list and value types.

Inputs: settings (required).

render_startB

Start rendering. Renders the whole queue when job_ids is omitted.

This returns as soon as rendering starts. Poll render_status for progress.

Inputs: job_ids, interactive.

render_statusA

Report render progress: one job's status, or whether any render is running.

Inputs: job_id.

render_stopA

Stop any render in progress.

Inputs: no named parameters.

resolve_execA

Run Python against the live Resolve connection. Use for anything the other tools miss.

Read resolve://api/section/ first — for example resolve://api/section/Timeline — so you call real signatures rather than remembered ones.

Set a variable named result to return a value. Resolve objects in result come back as handles usable by the other tools. Anything printed is returned as stdout.

Example: items = timeline.GetItemListInTrack("video", 1) result = [i.GetName() for i in items if i.GetDuration() > 100]

Bound names: resolve, pm, project, mp, timeline, ms, H (handle registry). There is no sandbox — this is full Python in the server process.

Inputs: code (required).

resolve_exec_helpA

Describe the names bound inside resolve_exec, and what is currently open.

Inputs: no named parameters.

resolve_inspectA

List the methods available on a live Resolve object.

Useful when the reference is ambiguous or a method may not exist in this build. expression is evaluated against the same names resolve_exec binds.

Inputs: expression.

still_albumsA

List gallery still albums and PowerGrade albums.

Inputs: no named parameters.

still_deleteC

Delete gallery stills.

Inputs: still_handles (required).

still_exportC

Export gallery stills to a folder.

Inputs: folder_path (required), still_handles (required), format, prefix.

still_grabA

Grab a gallery still from the current clip, or from every clip on the timeline.

frame_source applies to all_clips: 1 for first frame, 2 for middle frame. Requires the Color page.

Inputs: all_clips, frame_source.

still_listA

List stills in the current gallery album.

Inputs: no named parameters.

storage_listA

List subfolders and media files under an absolute path, as Resolve sees them.

Resolve consolidates image sequences into single entries here, which is why this differs from a plain directory listing.

Inputs: folder_path (required).

storage_volumesA

List the volumes shown in Resolve's Media Storage panel.

Inputs: no named parameters.

timecode_getA

Return the playhead timecode of the current timeline.

Inputs: no named parameters.

timecode_setA

Move the playhead. Format HH:MM:SS:FF. Works on Cut, Edit, Color, Fairlight, Deliver.

Inputs: timecode (required).

timeline_all_itemsA

List every clip on every track of the current timeline.

Inputs: no named parameters.

timeline_appendA

Append media pool clips to the end of the current timeline.

clip_ranges optionally trims each clip. One dict per clip, with any of startFrame, endFrame, recordFrame, trackIndex, mediaType (1 video, 2 audio).

Inputs: clips (required), clip_ranges.

timeline_createA

Create a timeline, empty or populated from media pool clips.

Pass clip handles from media_import or clip_list to build it in one call. The new timeline becomes current.

Inputs: name (required), clips.

timeline_deleteC

Delete timelines from the media pool.

Inputs: names_or_handles (required).

timeline_delete_itemsB

Delete clips from the current timeline. ripple closes the gap left behind.

Inputs: item_handles (required), ripple.

timeline_duplicateC

Duplicate a timeline.

Inputs: new_name, name_or_handle.

timeline_exportC

Export a timeline.

export_type is one of: aaf, drt, edl, fcp7xml, fcpxml, otio, hdr10, txt, dolby.

Inputs: file_path (required), export_type, name_or_handle.

timeline_importC

Create a timeline from an AAF, EDL, XML, FCPXML, DRT, ADL or OTIO file.

Inputs: file_path (required), timeline_name, source_clips_path, import_source_clips.

timeline_infoC

Describe a timeline: frame range, timecode and track counts.

Inputs: name_or_handle.

timeline_itemsB

List the clips on one track of the current timeline. Indices are 1-based.

Inputs: track_type, track_index.

timeline_listA

List every timeline in the current project, with handles.

Inputs: no named parameters.

timeline_renameB

Rename a timeline. Names must be unique within the project.

Inputs: new_name (required), name_or_handle.

timeline_set_currentC

Make a timeline current, by name or by 'timeline:' handle.

Inputs: name_or_handle (required).

timeline_settings_getB

Read timeline settings. Returns all of them when setting is omitted.

Inputs: setting, name_or_handle.

timeline_settings_setC

Write one timeline setting.

Inputs: value (required), setting (required), name_or_handle.

track_addC

Add a track. audio_type applies to audio tracks: mono, stereo, 5.1, 7.1, adaptive1-36.

Inputs: track_type (required), index, audio_type.

track_deleteC

Delete a track by 1-based index.

Inputs: track_type (required), track_index (required).

track_enableC

Enable or disable a track.

Inputs: enabled (required), track_type (required), track_index (required).

track_infoB

List tracks of a type with their names, enabled state and lock state.

Inputs: track_type.

track_lockC

Lock or unlock a track. Locked tracks reject edits, silently.

Inputs: locked (required), track_type (required), track_index (required).

track_renameC

Rename a track.

Inputs: name (required), track_type (required), track_index (required).

ui_activateA

Bring DaVinci Resolve to the front.

Inputs: no named parameters.

ui_key_codeA

Send a raw macOS key code, for keys with no character.

Common codes: 123 left, 124 right, 125 down, 126 up, 36 return, 49 space, 53 escape.

Inputs: code (required), modifiers.

ui_keystrokeA

Send a keyboard shortcut to Resolve.

modifiers may include command, shift, option, control. For example keys='m' sends the Add Marker shortcut on the Edit page.

Inputs: keys (required), modifiers.

ui_menu_clickA

Click a Resolve menu item by name path.

Example: ["Timeline", "Add Marker"] or ["File", "Import", "Timeline..."]. Names must match exactly, including any trailing ellipsis. Confirm them with ui_menu_tree first.

Use this only when no scripting API exists for the operation — a curated tool or resolve_exec is faster and more reliable.

Inputs: path (required).

ui_menu_treeA

List Resolve's menus, or the items inside one menu.

Call with no argument for the top-level menu names, then again with a name to see its items. Use this to find an exact path before calling ui_menu_click, rather than guessing.

Inputs: menu.

ui_screenshotB

Capture Resolve's window to a PNG so you can see the current state.

Returns the file path. Read it with your image tooling to check the result of a UI action before taking the next one.

Inputs: path, window_only.

version_addC

Add a colour version to a clip.

Inputs: name (required), item_handle, version_type.

version_deleteC

Delete a colour version from a clip.

Inputs: name (required), item_handle, version_type.

version_listC

List colour versions on a clip.

Inputs: item_handle, version_type.

version_loadC

Make a colour version current on a clip.

Inputs: name (required), item_handle, version_type.

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 132 tools

    Disambiguation4/5

    Most tools are organized around distinct Resolve subdomains (media pool, timeline, color, render, Fusion, UI), and descriptions clearly separate timeline markers from clip markers, or gallery stills from frame export. The main ambiguity is the cluster of code-execution tools (resolve_exec, fusion_lua, fusion_page_lua, resolve_inspect) and similar-sounding pairs like clip_relink/proxy_link or still_export/frame_export, but these are adequately differentiated in text.

    Naming Consistency4/5

    The set overwhelmingly follows a resource_action pattern (clip_delete, timeline_create, project_save, render_start, track_add, version_load), which is easy to predict. It is not a perfect 5 because retrieval operations alternate between _list, _get, and bare plural nouns (clip_list vs markers_get vs timeline_items vs storage_volumes), and a few actions invert to verb_object (insert_title, detect_scene_cuts).

    Tool Count2/5

    132 tools is far beyond even the 16-25 'heavy' band and will overwhelm an agent's tool-selection and context budget. Although the domain (DaVinci Resolve) is broad and each tool maps to a real API operation, the surface should be split into smaller focused servers or curated to the core workflows.

    Completeness4/5

    The tool surface covers the full lifecycle across projects, media pool bins/clips, timelines/tracks, markers, color grading, Fusion comps, render queue, and even UI automation, so there are no obvious dead ends. Minor gaps remain, such as no dedicated timeline clip move/trim or undo/audio-mix tools, though resolve_exec can fill those gaps.

    Related MCP Connectors

    Related MCP Servers