Kdenlive MCP Server

v0.1.3
io.github.Va1bhav512/kdenlive-mcp-server Checked 4 days ago Published 3 months ago

Kdenlive video editing MCP - 36 tools for project, timeline, filters and melt rendering

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

project_new

Create a brand new Kdenlive project session. After this call the project path is stored so subsequent tools automatically target this project. Args: output_path: Path where the project JSON will be saved (.kdenlive-cli.json). profile: Preset profile (hd1080p30, hd1080p25, hd720p60, 4k30, 4k60, sd_pal, sd_ntsc). Overrides width/height/fps if set. name: Human-readable project name. width: Video width in pixels (ignored when profile is set). height: Video height in pixels (ignored when profile is set). fps_num: FPS numerato…

ParameterTypeDescription
output_path *string
fps_deninteger
fps_numinteger
heightinteger
namestring
profile
widthinteger

project_open

Load an existing .kdenlive-cli.json project into the session. Args: project_path: Path to an existing project file.

ParameterTypeDescription
project_path *string

project_save

Persist the current project state to a file. Args: output_path: Optional path to write to. Defaults to the original project path.

ParameterTypeDescription
output_path

project_get_info

Return project metadata: FPS, resolution, track layout, bin clip count.

project_list_profiles

Enumerate all available video output profiles (hd1080p30, 4k60, sd_pal, etc.).

project_get_profile

Get the current project's video profile (resolution, FPS, aspect ratio).

project_set_profile

Set or update the project's video profile. Args: profile: Preset profile name (hd1080p30, hd1080p25, hd720p60, 4k30, 4k60, sd_pal, sd_ntsc). Overrides width/height/fps if set. width: Video width in pixels. height: Video height in pixels. fps_num: FPS numerator. fps_den: FPS denominator. progressive: Whether video is progressive. dar_num: Display aspect ratio numerator. dar_den: Display aspect ratio denominator.

ParameterTypeDescription
dar_den
dar_num
fps_den
fps_num
height
profile
progressive
width

bin_import_clip

Ingest a media file into the project bin for later timeline use. Args: clip_path: Path to the media file (video, audio, or image). name: Optional display name. Defaults to the filename. duration: Optional duration override in seconds (useful for images). If None, auto-probed via ffprobe. clip_type: Media type hint: video, audio, image, color, title.

ParameterTypeDescription
clip_path *string
clip_typestring
duration
name

bin_remove_clip

Delete a clip from the media bin by its ID. Args: clip_id: The clip identifier from bin_list_clips or bin_import_clip.

ParameterTypeDescription
clip_id *string

bin_list_clips

List every asset in the project bin with ID, name, type, and duration.

bin_get_clip_details

Get detailed properties of a bin clip (length, aspect ratio, media info). Args: clip_id: The clip identifier from the bin.

ParameterTypeDescription
clip_id *string

timeline_add_track

Append a video or audio track to the timeline. Args: track_type: 'video' or 'audio'. track_name: Optional name (auto-generated if omitted). mute: Start muted. hide: Start hidden. locked: Prevent edits on this track.

ParameterTypeDescription
hideboolean
lockedboolean
muteboolean
track_name
track_typestring

timeline_remove_track

Delete a track and all its clips from the timeline. Args: track_id: Numeric track identifier (from timeline_list).

ParameterTypeDescription
track_id *integer

timeline_add_clip

Place a bin clip onto a specific track at a given time position. Args: clip_id: Bin clip identifier to place (from bin_list_clips). track: Target track number. position: Start time on the timeline in seconds. in_point: Media trim-in (where to start playback inside source) in seconds. out_point: Media trim-out (where to end playback inside source) in seconds. Defaults to full bin duration. Use timeline_trim_clip to adjust after placement.

ParameterTypeDescription
clip_id *string
position *number
track *integer
in_pointnumber
out_point

timeline_move_clip

Reposition a clip on the same track to a new time position. Args: track_id: Track containing the clip. clip_index: 0-based index of the clip within the track. new_position: New timeline position in seconds.

ParameterTypeDescription
clip_index *integer
new_position *number
track_id *integer

timeline_trim_clip

Adjust the in/out trim handles of a timeline clip (not the crop filter). Args: track_id: Track containing the clip. clip_index: 0-based index of the clip within the track. in_point: New trim-in in seconds. None = leave unchanged. out_point: New trim-out in seconds. None = leave unchanged.

ParameterTypeDescription
clip_index *integer
track_id *integer
in_point
out_point

timeline_split_clip

Cut a clip into two independent pieces at a precise time offset. Args: track_id: Track containing the clip. clip_index: 0-based index of the clip within the track. offset: Time offset in seconds from the clip's start (0 < offset < clip duration).

ParameterTypeDescription
clip_index *integer
offset *number
track_id *integer

timeline_remove_clip

Delete a clip from the timeline. Args: track_id: Track containing the clip. clip_index: 0-based index of the clip within the track.

ParameterTypeDescription
clip_index *integer
track_id *integer

timeline_list

Return all timeline tracks with clip counts, IDs, mute/lock status.

filter_add

Attach a video/audio effect to a timeline clip. Args: track_id: Track containing the clip. clip_index: 0-based clip index on that track. filter_type: Filter name (e.g. blur, brightness, frei0r.opacity, volume). Run filter_list_available for all options. params: 'key=value' parameter strings (e.g. ['radius=5.0', 'opacity=0.8']).

ParameterTypeDescription
clip_index *integer
filter_type *string
track_id *integer
params

filter_remove

Detach an effect from a clip. Args: track_id: Track containing the clip. clip_index: 0-based clip index. filter_index: 0-based filter index (see filter_list).

ParameterTypeDescription
clip_index *integer
filter_index *integer
track_id *integer

filter_set_param

Update a single parameter on an active filter. Args: track_id: Track containing the clip. clip_index: 0-based clip index. filter_index: 0-based filter index. parameter: Parameter name (e.g. radius, opacity, level). value: New value (auto-converted to int/float if numeric).

ParameterTypeDescription
clip_index *integer
filter_index *integer
parameter *string
track_id *integer
value *string

filter_list

List all active filters on a specific timeline clip. Args: track_id: Track containing the clip. clip_index: 0-based clip index.

ParameterTypeDescription
clip_index *integer
track_id *integer

filter_list_available

Discover all filters the Kdenlive runtime exposes. Args: category: Optional category filter (e.g. blur, color, audio).

ParameterTypeDescription
category

transition_add

Create a blend transition (crossfade, wipe, etc.) between two track layers. Args: transition_type: Transition name (e.g. crossfade, luma, mix). track_a: Upper track index. track_b: Lower track index. position: Start time on the timeline in seconds. duration: Transition length in seconds. params: 'key=value' parameter strings.

ParameterTypeDescription
track_a *integer
track_b *integer
transition_type *string
durationnumber
params
positionnumber

transition_remove

Delete a transition by its numeric ID. Args: transition_id: Transition identifier.

ParameterTypeDescription
transition_id *integer

transition_set

Modify a parameter on an existing transition. Args: transition_id: Transition identifier. param_name: Parameter name. value: New value (auto-converted to numeric if applicable).

ParameterTypeDescription
param_name *string
transition_id *integer
value *string

transition_list

List all transitions on the timeline.

guide_add

Place a navigation guide marker along the timeline. Args: position: Time position in seconds. label: Short label for the guide. guide_type: 'default', 'chapter', or 'segment'. comment: Optional longer description.

ParameterTypeDescription
position *number
commentstring
guide_typestring
labelstring

guide_remove

Delete a guide marker by its ID. Args: guide_id: Numeric guide identifier.

ParameterTypeDescription
guide_id *integer

guide_list

Return all guide markers on the timeline.

export_xml

Generate Kdenlive/MLT XML for the current project. Args: output_path: Optional file path to write the XML to (e.g. ~/Downloads/myproj.kdenlive). If None, no file is written and XML is returned in data.xml for you to copy.

ParameterTypeDescription
output_path

export_list_presets

List all available render presets for final video output.

export_render

Render the project to a video file via melt. Generates MLT XML from the current project then pipes it through melt. Requires 'melt' on the system (apt install melt). Args: output_path: Destination video file (e.g. output.mp4). preset: Optional render preset name (see export_list_presets).

ParameterTypeDescription
output_path *string
preset

session_undo

Revert the most recent state change (up to 50 history entries).

session_redo

Reapply the last undone operation.

session_status

Inspect session state: project loaded, modified flag, history depth.

session_history

List all undo/redo history entries with descriptions.

project_get_render_profiles

Alias for project_list_profiles - get available render presets.

clip_get_properties

Get timeline clip properties: in/out, duration, speed, opacity, reverse.

ParameterTypeDescription
clip_index *integer
track_id *integer

clip_set_speed

Set playback speed of a timeline clip (1.0=normal, 2.0=2x, 0.5=half, negative=reverse).

ParameterTypeDescription
clip_index *integer
speed *number
track_id *integer

clip_reverse

Reverse playback direction of a timeline clip (toggles).

ParameterTypeDescription
clip_index *integer
track_id *integer

clip_set_opacity

Set opacity of a timeline clip (0.0 transparent .. 1.0 opaque).

ParameterTypeDescription
clip_index *integer
opacity *number
track_id *integer

track_get_info

Get detailed info for a single track (including clips).

ParameterTypeDescription
track_id *integer

track_set_name

Rename a track.

ParameterTypeDescription
name *string
track_id *integer

track_set_locked

Lock/unlock a track.

ParameterTypeDescription
locked *boolean
track_id *integer

track_set_hidden

Hide/show a track (video visibility).

ParameterTypeDescription
hidden *boolean
track_id *integer

track_set_muted

Mute/unmute a track (audio).

ParameterTypeDescription
muted *boolean
track_id *integer

track_move_up

Move track up one position (swap with previous).

ParameterTypeDescription
track_id *integer

track_move_down

Move track down one position (swap with next).

ParameterTypeDescription
track_id *integer

timeline_get_duration

Get total timeline duration in seconds (max end time).

timeline_get_position

Get current playhead position.

timeline_seek

Seek playhead to position (seconds).

ParameterTypeDescription
position *number

timeline_get_zoom

Get timeline zoom level.

timeline_set_zoom

Set timeline zoom level (0.1 .. 10.0).

ParameterTypeDescription
zoom *number

timeline_get_info

Get comprehensive timeline info: tracks+clips, duration, position, zoom, guides, markers, profile.

guide_get

Get single guide by ID.

ParameterTypeDescription
guide_id *integer

guide_update

Update guide properties.

ParameterTypeDescription
guide_id *integer
comment
guide_type
label
position

marker_add

Add timeline or clip marker (markers separate from guides).

ParameterTypeDescription
position *number
clip_index
commentstring
labelstring
marker_typestring
track_id

marker_list

List all markers.

marker_remove

Remove marker by ID.

ParameterTypeDescription
marker_id *integer

render_queue_add

Add job to render queue.

ParameterTypeDescription
output_path *string
in_point
out_point
preset

render_queue_list

List render queue jobs.

render_queue_status

Get render queue status.

render_queue_start

Start processing render queue (renders sequentially via melt).

render_queue_stop

Stop render queue (marks running as stopped).

session_undo_step

Undo N steps (granular).

ParameterTypeDescription
stepsinteger

session_redo_step

Redo N steps (granular).

ParameterTypeDescription
stepsinteger

bin_create_folder

Create folder in project bin.

ParameterTypeDescription
name *string
parent

bin_move_clip

Move clip to folder (or root if folder None).

ParameterTypeDescription
clip_id *string
folder

bin_rename

Rename bin clip.

ParameterTypeDescription
clip_id *string
new_name *string

clip_set_color

Set color label for bin clip (hex or named).

ParameterTypeDescription
clip_id *string
color *string

clip_add_note

Add / update note for bin clip.

ParameterTypeDescription
clip_id *string
note *string