Skip to main content

MCP server for Kdenlive video editor automation

Project description

kdenlive-mcp

MCP (Model Context Protocol) server for Kdenlive video editor automation. Enables AI assistants like Claude to control Kdenlive through natural language.

Installation

pip install kdenlive-mcp

Or with uv:

uv tool install kdenlive-mcp

Requirements

  • Python 3.11+
  • Kdenlive with WebSocket RPC server (requires kdenlive-websocket fork)
  • Kdenlive must be running before starting the MCP server

Quick Start

  1. Start Kdenlive (with RPC server enabled)

  2. Configure your MCP client (see below)

  3. Start using AI to control Kdenlive!

MCP Client Configuration

Claude Desktop

Add to your Claude Desktop configuration file:

Linux (~/.config/claude/claude_desktop_config.json):

{
  "mcpServers": {
    "kdenlive": {
      "command": "kdenlive-mcp"
    }
  }
}

Windows (%APPDATA%\Claude\claude_desktop_config.json):

{
  "mcpServers": {
    "kdenlive": {
      "command": "kdenlive-mcp"
    }
  }
}

macOS (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "kdenlive": {
      "command": "kdenlive-mcp"
    }
  }
}

With Custom Configuration

{
  "mcpServers": {
    "kdenlive": {
      "command": "kdenlive-mcp",
      "env": {
        "KDENLIVE_WS_URL": "ws://localhost:9876",
        "KDENLIVE_AUTH_TOKEN": "your-secret-token"
      }
    }
  }
}

Using uvx (no installation required)

{
  "mcpServers": {
    "kdenlive": {
      "command": "uvx",
      "args": ["kdenlive-mcp"]
    }
  }
}

Environment Variables

Variable Description Default
KDENLIVE_WS_URL WebSocket URL to Kdenlive RPC server ws://localhost:9876
KDENLIVE_AUTH_TOKEN Bearer token for authentication None

Available Tools

The MCP server exposes 60+ tools for controlling Kdenlive:

Project Management

  • project_get_info - Get current project information
  • project_open - Open a project file
  • project_save - Save the current project
  • project_close - Close the current project
  • project_new - Create a new project
  • project_undo / project_redo - Undo/redo actions

Timeline Operations

  • timeline_get_info - Get timeline information
  • timeline_get_tracks - List all tracks
  • timeline_get_clips - Get clips on timeline
  • timeline_insert_clip - Insert clip from bin
  • timeline_move_clip - Move a clip
  • timeline_delete_clip - Delete a clip
  • timeline_split_clip - Split a clip
  • timeline_resize_clip - Trim/resize a clip
  • timeline_add_track / timeline_delete_track - Manage tracks
  • timeline_seek / timeline_get_position - Playhead control

Bin/Media Management

  • bin_list_clips / bin_list_folders - Browse bin contents
  • bin_get_clip_info - Get clip details
  • bin_import_clip / bin_import_clips - Import media files
  • bin_delete_clip - Remove clips
  • bin_create_folder - Create folders
  • bin_rename_item / bin_move_item - Organize items
  • bin_add_clip_marker / bin_delete_clip_marker - Manage markers

Effects

  • effect_list_available - List all effects
  • effect_get_info - Get effect parameters
  • effect_add / effect_remove - Add/remove effects
  • effect_get_clip_effects - List effects on a clip
  • effect_set_property - Modify effect parameters
  • effect_enable / effect_disable - Toggle effects
  • effect_get_keyframes / effect_set_keyframe / effect_delete_keyframe - Keyframe animation

Rendering

  • render_get_presets - List render presets
  • render_start - Start rendering
  • render_stop - Stop a render job
  • render_get_status - Check render progress
  • render_get_jobs / render_get_active_job - Monitor jobs

Assets

  • asset_list_categories - Browse effect categories
  • asset_search - Search effects/transitions
  • asset_get_effects_by_category - Filter by category
  • asset_get_favorites / asset_add_favorite / asset_remove_favorite - Manage favorites
  • asset_get_presets / asset_save_preset - Effect presets

Transitions & Compositions

  • transition_list - List available transitions
  • transition_add / transition_remove - Manage transitions
  • composition_list - List compositions
  • composition_add / composition_remove - Manage compositions

Utilities

  • kdenlive_ping - Check connection
  • kdenlive_version - Get version info

Example Conversations

Once configured, you can ask Claude to:

"Import all MP4 files from my Downloads folder into Kdenlive"

"Add a blur effect to the first clip on the timeline"

"Split the video at the 5 second mark"

"Render the project as MP4 to my Desktop"

"Create a new folder called 'B-Roll' in the bin and move all clips shorter than 10 seconds into it"

Troubleshooting

"Cannot connect to Kdenlive"

  1. Make sure Kdenlive is running
  2. Verify the RPC server is enabled in Kdenlive settings
  3. Check that the WebSocket URL is correct (default: ws://localhost:9876)

"Connection refused"

The Kdenlive RPC server might be on a different port or host. Check your Kdenlive settings and update KDENLIVE_WS_URL accordingly.

Windows PATH Issues

If kdenlive-mcp command is not found, use the full path:

{
  "mcpServers": {
    "kdenlive": {
      "command": "C:\\Users\\YourName\\AppData\\Local\\Programs\\Python\\Python311\\Scripts\\kdenlive-mcp.exe"
    }
  }
}

Or use uvx which handles this automatically:

{
  "mcpServers": {
    "kdenlive": {
      "command": "uvx",
      "args": ["kdenlive-mcp"]
    }
  }
}

Development

# Clone the repository
git clone https://github.com/IO-AtelierTech/kdenlive-automation.git
cd kdenlive-automation

# Install dependencies
uv sync

# Run the MCP server locally
uv run kdenlive-mcp

Related Projects

License

MIT License - see LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kdenlive_mcp-0.1.0.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kdenlive_mcp-0.1.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file kdenlive_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: kdenlive_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.11

File hashes

Hashes for kdenlive_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 631eb54953bff38d12b6922b7941899cab722f31d7209e931042c518e2ae4ad6
MD5 6fedb11f54843feeb2ed574d50a7d752
BLAKE2b-256 69b2597582db644e6b854f2434814e6cf79c5562f5d1736c74025611303bc95a

See more details on using hashes here.

File details

Details for the file kdenlive_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for kdenlive_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a1485c12445a9552c2a472126078477d7d8683004c2078e2dd8f69bfa4d52d5
MD5 16e3dac060ce2616fe325c60d8833e2b
BLAKE2b-256 006d092dbff623feec3fb368069d57e325655c95958de050de6d2cd56200559b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page