Kdenlive

io.github.mhbxyz由 GitHub 账号 mhbxyz 发布v0.1.0更新于 Nov 8, 2026

Inspect, edit and render Kdenlive video projects locally on Linux.

已验证STDIO仅桌面文件与存储媒体与设计

概览

AI 生成的概览

本地 MCP 服务器,让助手在 Linux 上查看、编辑并渲染 Kdenlive 视频项目。

可以做什么
  • 查看项目时间线并对素材做媒体诊断
  • 在修改前创建安全的项目副本
  • 编辑 Kdenlive 项目中的片段与时间线内容
  • 使用 Kdenlive 预设渲染项目,支持后台渲染
  • 检查环境中 Kdenlive、MLT 与 FFmpeg 是否可用
适用场景
适合在 Linux 上用 Kdenlive 剪辑视频、并希望助手读取项目时间线、修改片段或时间线、或在不打开图形界面的情况下启动渲染的场景。不适用于其他操作系统或非 Kdenlive 的剪辑工具。
运行要求
Linux 与 Python 3.11 或更高版本;安装 PyPI 包 mcp-kdenlive(kdenlive-mcp 这个名称属于无关项目)。Kdenlive、MLT 的 melt 与 FFmpeg 的 ffprobe 需另行安装并在 PATH 中,或通过 KDENLIVE_MCP_KDENLIVE、KDENLIVE_MCP_MELT、KDENLIVE_MCP_FFPROBE 指定路径。Flatpak 与 Snap 版本需指向包装脚本。
安装前请注意
它会编辑并渲染项目文件,可能覆盖或改动你的作品;建议设置 KDENLIVE_MCP_ALLOWED_ROOTS 限制可读写的目录。渲染会占用 CPU 与磁盘,可用 KDENLIVE_MCP_MAX_RENDERS 控制并发数。MCP 客户端可能以精简环境启动它,必要时显式传入 PATH 或 KDENLIVE_MCP_ 变量。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Kdenlive,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

kdenlive-mcp

Local-first, client-agnostic MCP server for Kdenlive on Linux.

Inspect, edit and render Kdenlive projects from an AI assistant, locally on Linux: timelines, media diagnostics, safe project copies, clip edits and rendering with Kdenlive presets.

sh
pipx install mcp-kdenlive      # NOT "kdenlive-mcp": that PyPI name is an unrelated projectkdenlive-mcp diagnose

Start here: docs/user-guide.md (install, client setup, safety, upgrade, troubleshooting). The available tools are listed in docs/tools.md, and the planned work in the roadmap.

Requirements

  • Linux
  • Python 3.11 or newer
  • Kdenlive, MLT (melt) and FFmpeg (ffprobe), installed separately from your distribution. The Python package does not install them.

Install

sh
pipx install mcp-kdenlive

The PyPI distribution is mcp-kdenlive. The PyPI name kdenlive-mcp belongs to an unrelated project, so pipx install kdenlive-mcp installs something else. See docs/packaging.md for virtual environments, upgrades and artifact checks.

From source

sh
git clone https://github.com/mhbxyz/kdenlive-mcp.gitcd kdenlive-mcpuv sync            # or: python -m venv .venv && .venv/bin/pip install -e .uv run kdenlive-mcp --version

Check your environment

sh
uv run kdenlive-mcp diagnose          # human-readable, exit status 1 if something required is missinguv run kdenlive-mcp diagnose --json   # machine-readable

The same report is available to MCP clients through the diagnose_environment tool.

Programs are looked up on PATH. Override their location with these environment variables:

VariableProgram
KDENLIVE_MCP_KDENLIVEkdenlive (for example an AppImage path)
KDENLIVE_MCP_MELTmelt
KDENLIVE_MCP_FFPROBEffprobe
KDENLIVE_MCP_FFMPEGffmpeg (optional)
KDENLIVE_MCP_PROBE_TIMEOUTSeconds allowed for each version probe (default 10)
KDENLIVE_MCP_ALLOWED_ROOTS:-separated absolute directories; every read and write must stay inside them (recommended, see docs/security.md)
KDENLIVE_MCP_MAX_RENDERSConcurrent background renders (default 1, max 4)

Flatpak and Snap builds of Kdenlive do not expose kdenlive, melt or ffprobe on PATH. Point the variables above to executables or wrapper scripts.

Start the server

sh
uv run --directory /path/to/kdenlive-mcp kdenlive-mcp     # same as: kdenlive-mcp serve

Tested clients (Claude Code, Codex CLI, OpenCode, Grok Build CLI) and copyable configurations are listed in docs/clients.md. A typical configuration:

json
{  "mcpServers": {    "kdenlive": {      "command": "uv",      "args": ["run", "--directory", "/path/to/kdenlive-mcp", "kdenlive-mcp"],      "env": { "KDENLIVE_MCP_KDENLIVE": "/usr/bin/kdenlive" }    }  }}

MCP clients often start servers with a reduced environment. If tools are reported missing from a client but not from your shell, pass PATH or the KDENLIVE_MCP_* variables explicitly.

To try the server with the official MCP Inspector:

sh
npx @modelcontextprotocol/inspector --cli uv run --directory "$PWD" kdenlive-mcp --method tools/list

Development

sh
uv syncuv run pytest            # unit + protocol tests; integration tests skip when tools are missing

Architecture: domain modules (environment.py, process.py) do not depend on MCP. server.py is the only MCP transport layer.

Documentation:

来源:README.md,提交 200265b

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0最新Nov 8, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分