kdenlive-mcp
kdenlive-mcp is a local MCP server for AI-assisted Kdenlive project work; the provided schema exposes inspection, media diagnostics, preset discovery, and validated rendering, while the README also advertises timeline-editing tools.
Diagnose the environment: check whether Kdenlive, MLT (
melt),ffprobe, andffmpegare installed/usable, with paths, versions, and hints.Inspect a
.kdenliveproject: Kdenlive/document versions, profile/resolution/frame rate, bin clip count, sequences, warnings, sha256.Read a sequence timeline: tracks, clips, mixes, compositions, and guides with frame/timecode positions; supports truncation limits.
List project media: bin references, missing/unreadable files, effect/transition assets (LUTs, subtitles), optional ffprobe metadata.
Probe a local media file: ffprobe duration, streams, codecs, dimensions, rational frame rate, sample rate, channels, rotation.
List installed Kdenlive render presets, including system and custom user presets.
Render a project to a local file with a Kdenlive preset, with overwrite/missing-media/timeout controls, then validate the output with ffprobe.
Most schema tools are read-only; rendering is the only destructive action and replaces existing output only after a successful validated render. Per README, broader editing capabilities include cuts, moves, trims, splits, crossfades, titles, subtitles, effects, audio fades, guides, and media relinking.
Provides tools for working with Kdenlive on Linux, including environment diagnostics, read-only inspection of projects, timelines, and media, and local rendering.
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., "@kdenlive-mcp diagnose my Kdenlive environment and tell me if any required tools are missing"
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.
kdenlive-mcp
Edit videos in Kdenlive by talking to your AI assistant.
kdenlive-mcp is an MCP server that gives Claude, Codex,
OpenCode or any MCP client a real editing toolkit for Kdenlive: cut, arrange, crossfade, add
titles and subtitles, mix the sound, render, and check the result. Everything runs on your
machine, and what comes out is an ordinary Kdenlive project you can open and keep editing.
Linux only for now. The server relies on Linux mechanisms (process and window checks, Flatpak, XDG folders). macOS and Windows are planned after 1.0 (#98).
Why kdenlive-mcp
Real Kdenlive projects, not a black box. Every edit is written in Kdenlive's own format: open the project in Kdenlive and every clip, crossfade, title and effect is there to adjust. Projects are checked against a real Kdenlive round trip.
A full editing toolkit. 37 tools: timeline cuts, moves, trims and splits; crossfades; editable titles; SRT/WebVTT subtitles; colour and fade effects; volume and audio fades; guides and markers; media relinking; rendering with Kdenlive's presets, in the background if you like.
Your work stays safe. Edits go to a copy unless you ask otherwise, the original is backed up before it is ever replaced, and the server refuses to write over a project that is open in Kdenlive. It only touches the folders you allow (your Videos folder by default).
Renders that are checked. The assistant does not just launch a render: the output is validated (streams, duration) before it is reported as done.
Local and private. No account, no upload, no telemetry. The server talks to your assistant over stdio and runs Kdenlive, MLT and FFmpeg on your machine.
Works with your assistant. Tested with Claude Code, Codex CLI, OpenCode and Grok Build CLI, and listed in the official MCP Registry.
Related MCP server: kdenlive-mcp-server
What you can ask
"Cut a 30-second trailer from the shots in ~/Videos/holiday, with crossfades, a title and the music fading out at the end. Render it in 1080p."
"This project says media is missing. I moved everything to ~/Videos/archive: fix it."
"Import interview.srt as subtitles, add a chapter guide at each question and lower the music under the voices."
"Turn this edit into a vertical short for social media and render it."
More scenarios, played by scripts and by a real assistant, are in examples/demos.
Install
You need Linux, Python 3.11+, and Kdenlive, MLT (melt) and FFmpeg (ffprobe)
installed from your distribution (the Python package does not install them):
sudo pacman -S kdenlive mlt ffmpeg # Arch Linux, CachyOS
sudo apt install kdenlive melt ffmpeg # Ubuntu, DebianThen install the server and check that it finds everything:
pipx install mcp-kdenlive # NOT "kdenlive-mcp": that PyPI name is an unrelated project
kdenlive-mcp diagnose # exit status 1 if something required is missingThe PyPI package ismcp-kdenlive. pipx install kdenlive-mcp installs an unrelated
project from another author. The command installed is kdenlive-mcp.
uvx mcp-kdenlive --version # run without installing, with uv
python3 -m venv ~/.venvs/kdenlive-mcp && ~/.venvs/kdenlive-mcp/bin/pip install mcp-kdenliveFrom source:
git clone https://github.com/mhbxyz/kdenlive-mcp.git
cd kdenlive-mcp
uv sync # or: python -m venv .venv && .venv/bin/pip install -e .
uv run kdenlive-mcp --versionConnect your assistant
Add the server to your MCP client, using the absolute path from command -v kdenlive-mcp:
{
"mcpServers": {
"kdenlive": {
"command": "/home/you/.local/bin/kdenlive-mcp",
"env": { "KDENLIVE_MCP_ALLOWED_ROOTS": "/home/you/Videos" }
}
}
}For Claude Code, in one line:
claude mcp add kdenlive -e KDENLIVE_MCP_ALLOWED_ROOTS="$HOME/Videos" -- "$(command -v kdenlive-mcp)"Ready-made configurations for each client, a Flatpak or AppImage Kdenlive, and every setting are in the user guide and client guide.
Documentation
Install, settings, working safely with Kdenlive, upgrade, troubleshooting | |
Tested assistants and copyable configurations | |
Every tool, its parameters and its limits | |
Supported Kdenlive, MLT, FFmpeg, Python and Linux versions | |
Allowed folders, process isolation, what the server never does | |
End-to-end scenarios and results with a real assistant | |
What changed in each version, with migration notes | |
What is planned, up to 1.0 and after | |
Development setup, tests, conventions | |
How to report a vulnerability |
Maintainers: releasing, packaging, MCP Registry, versioning, incident response, architecture, research.
License and credits
MIT. Kdenlive is a KDE project; kdenlive-mcp is an independent project, not affiliated with KDE.
The demo uses footage and music from Big Buck Bunny, © 2008 Blender Foundation, peach.blender.org, licensed under CC BY 3.0.
Available Tools
37 toolsadd_effectAdd effectADestructive
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.
Inputs: clip (required), path (required), effect (required), revision (required), +5 more. Returns: audio, media, saved, title, +6 more
add_markerAdd guide or clip markerADestructive
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.
Inputs: path (required), position (required), destination (required), bin_id, +6 more. Returns: audio, media, saved, title, +6 more
add_media_to_binAdd media to binADestructive
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.
Inputs: path (required), destination (required), media_paths (required), overwrite, +1 more. Returns: audio, media, saved, title, +6 more
add_mixAdd crossfadeADestructive
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.
Inputs: clip (required), path (required), revision (required), destination (required), +4 more. Returns: audio, media, saved, title, +6 more
add_titleAdd titleADestructive
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.
Inputs: path (required), text (required), start (required), track (required), +15 more. Returns: audio, media, saved, title, +6 more
add_trackAdd trackADestructive
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.
Inputs: kind (required), path (required), destination (required), name, +3 more. Returns: audio, media, saved, title, +6 more
cancel_render_jobCancel render jobAIdempotent
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.
Inputs: job_id (required). Returns: state, job_id, output, preset, +11 more
create_projectCreate projectADestructive
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.
Inputs: media_path (required), destination (required), profile, overwrite. Returns: media, notes, tracks, profile, +7 more
diagnose_environmentDiagnose environmentARead-onlyIdempotent
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).
Inputs: no named parameters. Returns: Read-only report on the local environment.
get_render_jobGet render jobARead-onlyIdempotent
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).
Inputs: job_id (required). Returns: state, job_id, output, preset, +11 more
get_timelineGet timelineARead-onlyIdempotent
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.
Inputs: path (required), sequence, max_clips. Returns: file, notes, guides, tracks, +11 more
import_subtitlesImport subtitlesADestructive
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.
Inputs: path (required), destination (required), subtitle_file (required), offset, +4 more. Returns: audio, media, saved, title, +6 more
insert_clipInsert clipADestructive
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.
Inputs: path (required), start (required), track (required), bin_id (required), +7 more. Returns: audio, media, saved, title, +6 more
inspect_projectInspect projectARead-onlyIdempotent
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.
Inputs: path (required). Returns: file, notes, profile, warnings, +6 more
list_effectsList effectsARead-onlyIdempotent
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.
Inputs: no named parameters. Returns: notes, effects, transitions
list_markersList guides and clip markersARead-onlyIdempotent
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.
Inputs: path (required), sequence. Returns: guides, categories, clip_markers
list_profilesList project profilesARead-onlyIdempotent
List the MLT video profiles available for new projects (name, resolution, rational frame rate, progressive).
Inputs: no named parameters. Returns: profiles
list_project_mediaList project mediaARead-onlyIdempotent
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.
Inputs: path (required), probe, max_items. Returns: root, items, notes, counts, +6 more
list_render_jobsList render jobsARead-onlyIdempotent
List render jobs of this server session, most recent first.
Inputs: no named parameters. Returns: jobs, notes, max_concurrent
list_render_presetsList render presetsARead-onlyIdempotent
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.
Inputs: no named parameters. Returns: notes, presets, sources
list_subtitlesList subtitlesARead-onlyIdempotent
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.
Inputs: path (required), sequence, max_events. Returns: tracks, truncated, sequence_uuid
move_clipMove clipADestructive
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.
Inputs: clip (required), path (required), start (required), revision (required), +5 more. Returns: audio, media, saved, title, +6 more
probe_mediaProbe media fileARead-onlyIdempotent
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.
Inputs: path (required). Returns: path, probe, detail, status, +1 more
relink_mediaRelink mediaADestructive
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.
Inputs: path (required), mapping (required), destination (required), overwrite, +1 more. Returns: audio, media, saved, title, +6 more
remove_clipRemove clipADestructive
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.
Inputs: clip (required), path (required), revision (required), destination (required), +3 more. Returns: audio, media, saved, title, +6 more
remove_effectRemove effectADestructive
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.
Inputs: clip (required), path (required), index (required), revision (required), +4 more. Returns: audio, media, saved, title, +6 more
remove_markerRemove guide or clip markerADestructive
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.
Inputs: path (required), position (required), destination (required), bin_id, +3 more. Returns: audio, media, saved, title, +6 more
remove_mixRemove crossfadeADestructive
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.
Inputs: clip (required), path (required), revision (required), destination (required), +3 more. Returns: audio, media, saved, title, +6 more
render_projectRender projectADestructive
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.
Inputs: path (required), output (required), engine, preset, +3 more. Returns: error, notes, state, engine, +11 more
save_project_copySave project copyADestructive
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.
Inputs: path (required), destination (required), overwrite, expected_sha256. Returns: notes, backup, sha256, source, +8 more
set_clip_fadesSet clip audio fadesADestructive
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.
Inputs: clip (required), path (required), revision (required), destination (required), +5 more. Returns: audio, media, saved, title, +6 more
set_clip_volumeSet clip volumeADestructive
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.
Inputs: clip (required), path (required), level_db (required), revision (required), +4 more. Returns: audio, media, saved, title, +6 more
split_clipSplit clipADestructive
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.
Inputs: at (required), clip (required), path (required), revision (required), +4 more. Returns: audio, media, saved, title, +6 more
start_renderStart render jobADestructive
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.
Inputs: path (required), output (required), engine, preset, +3 more. Returns: state, job_id, output, preset, +11 more
trim_clipTrim clipADestructive
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.
Inputs: clip (required), path (required), revision (required), destination (required), +5 more. Returns: audio, media, saved, title, +6 more
update_effectUpdate effectADestructive
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.
Inputs: clip (required), path (required), index (required), params (required), +5 more. Returns: audio, media, saved, title, +6 more
update_markerUpdate guide or clip markerADestructive
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.
Inputs: path (required), position (required), destination (required), bin_id, +7 more. Returns: audio, media, saved, title, +6 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
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.
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 server for progressive tool usage at any scale (see https://klavis.ai)
MCP server for generating rough-draft project plans from natural-language prompts.
Related MCP Servers
- AlicenseBqualityCmaintenanceA local, safety-first MCP server for inspecting, editing, and rendering videos in DaVinci Resolve through natural language prompts.272MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI agents to perform professional video editing in Kdenlive through natural-language instructions, using a typed timeline model and real Kdenlive XML adapter.-
- AlicenseNot gradedqualityDmaintenanceAn MCP server that gives AI agents a stateful multi-track video editor powered by MLT, enabling them to assemble timelines, add media and text, apply filters and transforms, preview downscaled frames, and render final videos to disk.MIT
- AlicenseNot gradedqualityCmaintenanceEnables automated, transactional video editing for Kdenlive, providing tools for timeline manipulation, effects, graphics, captions, visualization, and project export through a local MCP server and scriptable CLI.MIT