Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PATHNoExecutable search path. Pass explicitly if the MCP client starts the server with a reduced environment.
KDENLIVE_MCP_MELTNoPath or wrapper for the MLT melt executable.
KDENLIVE_MCP_FFMPEGNoOptional path or wrapper for the ffmpeg executable.
KDENLIVE_MCP_FFPROBENoPath or wrapper for the ffprobe executable.
KDENLIVE_MCP_KDENLIVENoPath or wrapper for the kdenlive executable, for example an AppImage path.
KDENLIVE_MCP_PROBE_TIMEOUTNoSeconds 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

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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. filesystem lists the folders the tools may read and write (KDENLIVE_MCP_ALLOWED_ROOTS; by default the user's videos directory).

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 engine), then validate the output with ffprobe. Blocks until the render ends or timeout_seconds elapses. Never modifies the project or its media. Refuses an existing output unless overwrite=true (the old file is replaced only after a successful, validated render), unknown presets, and projects with missing media unless allow_missing_media=true. Renders the file on disk, not unsaved changes in a running Kdenlive.

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. profile is an MLT profile name (see list_profiles) or 'auto' to use the standard profile matching the media. Refuses to replace an existing file unless overwrite=true; writes atomically and never modifies the media. Media inside the project's directory is stored with a relative path.

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 destination. Files already in the bin are reported as 'existing' with their clip id instead of being duplicated. Clip data comes from MLT, as in Kdenlive. Same safety rules as save_project_copy.

relink_mediaA

Point bin clips at new media files, for example after moving a media folder. mapping maps a bin_id, a stored reference or a resolved path (from list_project_media) to the new absolute path. Every copy of the clip (bin and timeline instances) is updated; timing, ids and effects are kept. The new file is read by MLT first: fewer frames than the timeline uses, or a missing video/audio stream it uses, is refused ([media_mismatch]); other differences are warnings. Clips using a proxy are refused. The result is written to destination with the save_project_copy rules.

add_trackA

Add an empty, optionally named audio or video track to a sequence and write the result to destination. Video tracks are added on top of the existing video tracks; audio tracks below the existing audio tracks (Kdenlive's track order). Existing clips, groups, compositions and mixes are preserved. Same safety rules as save_project_copy.

insert_clipA

Place a bin clip (bin_id from list_project_media / get_timeline) on a track at frame start, optionally a source sub-range [source_in, source_out] (inclusive). A clip with audio and video put on a video track also gets its audio on audio_track (default A1; null for video only), grouped like Kdenlive. 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 destination with the save_project_copy rules.

move_clipA

Move a clip to frame start, optionally to another track of the same kind. 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 destination with the save_project_copy rules.

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 destination with the save_project_copy rules.

split_clipA

Cut a clip at timeline frame at into two adjacent clips (razor). 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 destination with the save_project_copy rules.

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 destination with the save_project_copy rules.

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 destination with the save_project_copy rules.

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 destination with the save_project_copy rules.

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 bin_id the marker is a timeline guide (position in timeline frames); with bin_id it is a clip marker on that bin clip (position in the clip's source frames, shown on every instance). Kdenlive keeps one marker per position. The result is written to destination with the save_project_copy rules.

update_markerA

Change the marker at position: move it (new_position), or change its comment, category or duration; omitted fields are kept. Without bin_id the marker is a timeline guide (position in timeline frames); with bin_id it is a clip marker on that bin clip (position in the clip's source frames, shown on every instance). Kdenlive keeps one marker per position. The result is written to destination with the save_project_copy rules.

remove_markerA

Remove the marker at position. Without bin_id the marker is a timeline guide (position in timeline frames); with bin_id it is a clip marker on that bin clip (position in the clip's source frames, shown on every instance). Kdenlive keeps one marker per position. The result is written to destination with the save_project_copy rules.

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 destination with the save_project_copy rules.

update_effectA

Change parameters of the clip's effect at index; animated parameters (several keyframes) are refused. Video effects go on the video part of an audio/video pair. The result is written to destination with the save_project_copy rules.

remove_effectA

Remove the clip's effect at index (any effect). Video effects go on the video part of an audio/video pair. The result is written to destination with the save_project_copy rules.

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. duration in frames (default 1 second). The result is written to destination with the save_project_copy rules.

remove_mixA

Remove the crossfade at the end of a clip; both clips go back to the original cut. The result is written to destination with the save_project_copy rules.

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: align x vertical presets inside 5 % margins, or the box's top-left x, y in pixels. The font must be installed (checked with fontconfig); font defaults to an installed sans font. The result gives the bin id, so insert_clip can place the same title again. The result is written to destination with the save_project_copy rules.

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 (<destination>.ass) with Kdenlive's default style. Times are rounded to frames; overlapping subtitles go to separate layers; , , become ASS styling, other styling is dropped (warnings). Existing subtitles are refused ([subtitles_exist]) unless replace=true; written to a new destination their file is untouched, replaced in place it is backed up first. offset shifts every subtitle by that many frames. The result is written to destination with the save_project_copy rules.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 37 tools

Disambiguation4/5

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.

Naming Consistency4/5

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.

Tool Count3/5

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.

Completeness3/5

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.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues