kdenlive-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PATH | No | Executable search path. Pass explicitly if the MCP client starts the server with a reduced environment. | |
| KDENLIVE_MCP_MELT | No | Path or wrapper for the MLT melt executable. | |
| KDENLIVE_MCP_FFMPEG | No | Optional path or wrapper for the ffmpeg executable. | |
| KDENLIVE_MCP_FFPROBE | No | Path or wrapper for the ffprobe executable. | |
| KDENLIVE_MCP_KDENLIVE | No | Path or wrapper for the kdenlive executable, for example an AppImage path. | |
| KDENLIVE_MCP_PROBE_TIMEOUT | No | Seconds allowed for each version probe. | 10 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Local MCP server for Kdenlive projects on Linux. Call diagnose_environment first to check which external programs (Kdenlive, MLT melt, ffprobe) are available on this machine before using project or rendering tools. The server works on local files only and never opens a network listener.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| diagnose_environmentA | Report whether Kdenlive, MLT (melt), ffprobe and ffmpeg are installed and usable, with their paths, versions and actionable hints. Read-only: modifies nothing. Locations can be overridden with KDENLIVE_MCP_KDENLIVE, KDENLIVE_MCP_MELT, KDENLIVE_MCP_FFPROBE and KDENLIVE_MCP_FFMPEG in the server environment. |
| inspect_projectA | Summarize a Kdenlive project file without modifying it: Kdenlive and document versions, profile (resolution, rational frame rate), bin clip count and each timeline sequence with its duration and track counts. Includes the file's sha256 so later calls can detect changes. Reads the file on disk only: unsaved changes in a running Kdenlive are not visible. |
| get_timelineA | Return the tracks, clips, mixes, compositions and guides of one sequence of a Kdenlive project, read-only. Positions are integer frames at the project frame rate; timeline ranges are [start, end) and source in/out are inclusive (see the 'conventions' field). Large timelines are truncated to max_clips. |
| list_project_mediaA | List the media referenced by a Kdenlive project's bin and diagnose missing or unreadable files, plus files used by effects and transitions (LUTs, luma wipes, subtitles). References are resolved exactly like Kdenlive does (project root, moved projects, proxies). Read-only; URLs are reported but never fetched. With probe=true, ffprobe metadata (streams, codecs, sizes, frame rates, rotation) is added for up to 50 available files. |
| probe_mediaA | Check one local media file (absolute path) and return ffprobe metadata: duration, streams, codecs, dimensions, rational frame rate, sample rate, channels, rotation. Read-only; URLs are refused. Probing reads headers and does not prove that every frame decodes. |
| list_render_presetsA | List the render presets of the installed Kdenlive (system and user custom presets), with group and file extension. Use a returned name with render_project. |
| render_projectA | Render a Kdenlive project to a new local file with an installed Kdenlive preset (kdenlive --render, or MLT's melt: see |
| start_renderA | Start rendering a Kdenlive project in the background and return a job id immediately. Same checks and guarantees as render_project (preset, output, missing media, atomic publication after validation). Poll get_render_job for the state (queued, running, succeeded, failed, cancelled) and cancel with cancel_render_job. Jobs live in memory and are stopped when the server exits. |
| get_render_jobA | State of a render job: queued (with queue position), running (elapsed time; progress only when Kdenlive reports it), or ended with the full result (exit status, output validation, log tail). |
| list_render_jobsA | List render jobs of this server session, most recent first. |
| cancel_render_jobA | Request cancellation of a queued or running render job. The returned job has cancel_requested=true; its state becomes 'cancelled' once Kdenlive and its child processes have exited and the partial output was removed. Cancelling a finished job changes nothing. |
| list_profilesA | List the MLT video profiles available for new projects (name, resolution, rational frame rate, progressive). |
| create_projectA | Create a new Kdenlive project file containing one media clip placed at the start of the timeline (video on V1, audio on A1, grouped). Like a new Kdenlive project, it has two video tracks (V1, V2) and two audio tracks (A1, A2): V2 is free for overlays and titles before any add_track. The project is modeled on Kdenlive 26.08 files and stays editable in Kdenlive. |
| save_project_copyA | Write a verified copy of a Kdenlive project to another .kdenlive file, preserving all project data (unknown metadata included). Relative media paths are rewritten so they still work from the destination folder. Refuses to overwrite an existing file unless overwrite=true (a timestamped backup is kept), refuses to write over the source unless overwrite=true and expected_sha256 (from inspect_project) match, and refuses if the source changed since it was read or the destination is open in Kdenlive. |
| add_media_to_binA | Add audio or video files to a project's bin (not to the timeline) and write the result to |
| relink_mediaA | Point bin clips at new media files, for example after moving a media folder. |
| add_trackA | Add an empty, optionally named audio or video track to a sequence and write the result to |
| insert_clipA | Place a bin clip (bin_id from list_project_media / get_timeline) on a track at frame |
| move_clipA | Move a clip to frame |
| trim_clipA | Change a clip's timeline bounds to [start, end) (either may be omitted); the source in/out points follow, like resizing in Kdenlive. Extending is limited by the source length. Positions are frames at the project rate; nothing ripples and nothing is overwritten (overlaps fail). A clip grouped with its audio/video counterpart is edited together with it. The result is written to |
| split_clipA | Cut a clip at timeline frame |
| remove_clipA | Remove a clip from the timeline, leaving a gap (neighbours do not move; the bin clip stays). Positions are frames at the project rate; nothing ripples and nothing is overwritten (overlaps fail). A clip grouped with its audio/video counterpart is edited together with it. The result is written to |
| set_clip_volumeA | Set a constant audio level in dB (-100 to +20; 0 = unchanged level) on a clip's audio, with Kdenlive's Volume effect. For an audio/video pair, the audio clip is changed. An existing constant level is replaced; an animated one is refused. The result is written to |
| set_clip_fadesA | Set the audio fade-in and/or fade-out of a clip, in frames (omit to keep, 0 to remove), with Kdenlive's Fade in / Fade out effects. Both must fit in the clip. For an audio/video pair, the audio clip is changed. Fades stay at the clip's edges when it is later trimmed or split. The result is written to |
| list_markersA | List the timeline guides of a sequence, the clip markers of every bin clip, and the marker categories (index, name, color). Positions are frames: timeline frames for guides, source frames for clip markers. Read-only. |
| add_markerA | Add a guide or a clip marker with a comment, a category and an optional duration in frames (0 = point marker). Without |
| update_markerA | Change the marker at |
| remove_markerA | Remove the marker at |
| list_effectsA | List the effects this server can apply (a subset verified against Kdenlive's own format): identifier, target (video/audio), parameters with units, ranges and defaults, and whether the installed MLT provides them. Crossfades between adjacent clips use add_mix / remove_mix. Read-only. |
| add_effectA | Append a verified effect (list_effects) to a clip, with optional parameters; omitted ones take their defaults. Video effects go on the video part of an audio/video pair. The result is written to |
| update_effectA | Change parameters of the clip's effect at |
| remove_effectA | Remove the clip's effect at |
| add_mixA | Crossfade a clip into the next clip on its track (they must touch), like Kdenlive's Mix Clips: both clips extend into their source handles around the cut, and grouped audio gets the matching audio crossfade. |
| remove_mixA | Remove the crossfade at the end of a clip; both clips go back to the original cut. The result is written to |
| add_titleA | Create a text title (an editable Kdenlive title clip, not an image) and place it on a video track, usually one above the footage (add_track). Unicode and several lines (\n) are kept. Position: |
| list_subtitlesA | Read a sequence's subtitles (Kdenlive's subtitle track, an ASS file next to the project): file and status, styles, and events with start/end frames, layer and text. Read-only. |
| import_subtitlesA | Import a SubRip (.srt) or WebVTT (.vtt) file, UTF-8 or UTF-16 with a byte order mark, as the main sequence's subtitles, in Kdenlive's own format: an ASS file named after the saved project ( |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 37 tools
Almost every tool targets a distinct resource+action (inspect vs get_timeline vs list_project_media vs probe_media, and the per-clip edit verbs move/trim/split/remove are clearly separated). A few boundaries blur slightly: render_project vs start_render (blocking vs background), set_clip_volume/set_clip_fades vs add_effect with a Volume/Fade effect, and add_title vs insert_clip for placing a title. Descriptions disambiguate these cases explicitly, so misselection risk is low.
Nearly all names are verb_noun snake_case (add_track, insert_clip, remove_marker, list_effects, import_subtitles) with clean CRUD families for markers and effects. Minor deviations: start_render omits the object noun while its sibling is render_project (inverted order), and save_project_copy/relink_media use slightly different noun phrasing. Still highly predictable overall.
37 tools is heavy, but the domain (non-destructive NLE project editing) genuinely needs this breadth: inspection, rendering with job control, timeline clip ops, effects, markers, titles, subtitles. Still, the set is at the upper edge of comfortable, and some surface (render job polling trio, mix vs effect crossfades) could be consolidated. Each tool earns its place, but the total is borderline unwieldy for an agent.
Coverage of read/edit/render/effects/markers/subtitles is strong and CRUD-consistent for markers and effects, but notable gaps remain: no remove/rename/mute track (only add_track), no way to create an empty project (create_project requires a media clip), no title editing after creation, and animated/keyframed parameters are refused rather than supported. Transitions/compositions are limited to audio/video mixes, with no luma wipe or geometry composition tools.