Skip to main content
Glama

kdenlive-mcp

Edit videos in Kdenlive by talking to your AI assistant.

PyPI Python Platform: Linux only CI MCP Registry License: MIT

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.

IMPORTANT

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, Debian

Then 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 missing
WARNING

The 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-kdenlive

From 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 --version

Connect 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

User guide

Install, settings, working safely with Kdenlive, upgrade, troubleshooting

Clients

Tested assistants and copyable configurations

Tools

Every tool, its parameters and its limits

Compatibility

Supported Kdenlive, MLT, FFmpeg, Python and Linux versions

Security model

Allowed folders, process isolation, what the server never does

Demos

End-to-end scenarios and results with a real assistant

Changelog

What changed in each version, with migration notes

Roadmap

What is planned, up to 1.0 and after

Contributing

Development setup, tests, conventions

Security policy

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 tools
add_effectAdd effectA
Destructive

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 markerA
Destructive

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 binA
Destructive

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 crossfadeA
Destructive

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 titleA
Destructive

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 trackA
Destructive

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 jobA
Idempotent

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 projectA
Destructive

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 environmentA
Read-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 jobA
Read-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 timelineA
Read-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 subtitlesA
Destructive

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 clipA
Destructive

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 projectA
Read-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 effectsA
Read-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 markersA
Read-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 profilesA
Read-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 mediaA
Read-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 jobsA
Read-onlyIdempotent

List render jobs of this server session, most recent first.

Inputs: no named parameters. Returns: jobs, notes, max_concurrent

list_render_presetsList render presetsA
Read-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 subtitlesA
Read-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 clipA
Destructive

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 fileA
Read-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

remove_clipRemove clipA
Destructive

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 effectA
Destructive

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 markerA
Destructive

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 crossfadeA
Destructive

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 projectA
Destructive

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 copyA
Destructive

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 fadesA
Destructive

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 volumeA
Destructive

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 clipA
Destructive

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 jobA
Destructive

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 clipA
Destructive

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 effectA
Destructive

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 markerA
Destructive

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

    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

    Related MCP Connectors

    Related MCP Servers