Video Editor MCP Server

Integrations

  • Leverages FFmpeg to perform video editing operations through natural language commands, supporting trimming, merging, format conversion, speed adjustment, audio track addition, audio extraction, subtitle addition, and basic filters

视频编辑器 MCP 服务器

一个强大的视频编辑 MCP 服务器,利用 FFmpeg 通过自然语言命令执行视频编辑操作。

成分

工具

该服务器实现了一个主要工具:

  • execute_ffmpeg带有进度跟踪的 FFmpeg 命令
    • 将命令字符串作为输入
    • 验证并执行 FFmpeg 操作
    • 报告处理过程中的实时进度
    • 处理错误并提供详细的反馈
    • 支持所有 FFmpeg 操作,包括:
      • 修剪/切割
      • 合并视频
      • 转换格式
      • 调整速度
      • 添加音轨
      • 提取音频
      • 添加字幕
      • 基本滤镜(亮度、对比度等)

配置

先决条件

  1. 必须在系统 PATH 中安装并可访问 FFmpeg
  2. Python 3.9 或更高版本
  3. 所需的 Python 包:
    mcp httpx

安装

  1. 如果尚未安装,请安装 FFmpeg:
    # On macOS with Homebrew brew install ffmpeg # On Windows with Chocolatey choco install ffmpeg # On Ubuntu/Debian sudo apt install ffmpeg
  2. 安装视频编辑器包:
    uv add video-editor

Claude 桌面集成

在您的 Claude Desktop 配置文件中进行配置:

在 MacOS 上: ~/Library/Application Support/Claude/claude_desktop_config.json在 Windows 上: %APPDATA%/Claude/claude_desktop_config.json

{ "mcpServers": { "video-editor": { "command": "uv", "args": ["run", "video-editor"] } } }

发展

构建和发布

  1. 同步依赖项:
    uv sync
  2. 构建包:
    uv build
  3. 发布到 PyPI:
    uv publish

注意:通过以下方式设置 PyPI 凭据:

  • 令牌: --tokenUV_PUBLISH_TOKEN
  • 或用户名/密码: --username / UV_PUBLISH_USERNAME--password / UV_PUBLISH_PASSWORD

调试

为了获得最佳调试体验,请使用 MCP Inspector:

npx @modelcontextprotocol/inspector uv --directory /path/to/video_editor run video-editor

示例用法

一旦连接到 Claude Desktop,您就可以发出自然语言请求,例如:

  1. “将 video.mp4 从 1:30 剪辑到 2:45”
  2. “将 input.mp4 转换为 WebM 格式”
  3. “将 video.mp4 加速 2 倍”
  4. “合并 video1.mp4 和 video2.mp4”
  5. “从视频.mp4中提取音频”
  6. “将 subtitles.srt 添加到 video.mp4”

服务器将:

  1. 解析您的请求
  2. 生成适当的 FFmpeg 命令
  3. 使用进度跟踪执行
  4. 完成时提供反馈

错误处理

该服务器包括强大的错误处理功能:

  • 无效的输入文件
  • 格式错误的 FFmpeg 命令
  • 运行时执行错误
  • 进度跟踪问题

所有错误都会连同详细的调试信息一起报告给客户端。

安全注意事项

  • 仅处理明确允许的目录中的文件
  • 在执行之前验证 FFmpeg 命令
  • 清理所有输入参数
  • 报告与安全相关的问题的详细错误消息

贡献

欢迎贡献!请按以下步骤操作:

  1. 分叉存储库
  2. 创建你的功能分支
  3. 进行更改
  4. 提交拉取请求
-
security - not tested
F
license - not found
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

使用由 FFmpeg 提供支持的自然语言命令实现视频编辑,支持修剪、合并、格式转换等操作,并具有实时进度跟踪和错误处理功能。

  1. 成分
    1. 工具
  2. 配置
    1. 先决条件
    2. 安装
    3. Claude 桌面集成
  3. 发展
    1. 构建和发布
    2. 调试
    3. 示例用法
  4. 错误处理
    1. 安全注意事项
      1. 贡献

        Related MCP Servers

        • -
          security
          A
          license
          -
          quality
          Provides code manipulation, execution, and version control capabilities. It allows AI assistants to read, write, and execute code while maintaining a history of changes.
          Last updated -
          8
          Python
          MIT License
        • A
          security
          A
          license
          A
          quality
          Leverages Vim's native text editing commands and workflows, which Claude already understands, to create a lightweight code assistance layer.
          Last updated -
          8
          69
          129
          TypeScript
          MIT License
        • -
          security
          A
          license
          -
          quality
          AI-powered assistant that connects Claude to video encoding workflows, translating cryptic errors into plain English and providing actionable solutions for troubleshooting encoding jobs.
          Last updated -
          1
          Python
          MIT License
        • -
          security
          -
          license
          -
          quality
          Enables interaction with YouTube videos by extracting metadata, captions in multiple languages, and converting content to markdown with various templates.
          Last updated -
          TypeScript

        View all related MCP servers

        ID: ov0qov2xh1