KV

kush36agrawal/video_editor_mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

52 stars 13 forks Качество 53 Тренд 13

kush36agrawal/video editor mcp - кандидат на сервер MCP, импортированный из https://github.com/kush36agrawal/video_editor_mcp.

Обзор

kush36agrawal/video editor mcp - кандидат на сервер MCP, импортированный из https://github.com/kush36agrawal/video_editor_mcp.

Обзор (машинный перевод)

Мощный MCP-сервер для редактирования видео, который использует FFmpeg для выполнения операций редактирования видео с помощью команд естественного языка.

Компоненты

Инструменты

Сервер реализует один основной инструмент:

[[Т0]]: Исполняет команды FFmpeg с отслеживанием прогресса

  • Принимает командную строку в качестве ввода Проверяет и выполняет операции FFmpeg Отчеты о прогрессе в реальном времени во время обработки
  • Обрабатывает ошибки и предоставляет подробную обратную связь Поддерживает все операции FFmpeg, включая:
  • Обрезка/обрезка
  • Слияние видео Преобразование форматов
  • Регулировка скорости
  • Добавление звуковых дорожек
  • Извлечение аудио
  • Добавление субтитров
  • Основные фильтры (яркость, контрастность и т.д.)

Конфигурация

Предпосылки

  1. FFmpeg должен быть установлен и доступен в системе PATH. Python 3.9 или выше 3.Необходимые пакеты Python:

###Установка

1.Установить FFmpeg, если он еще не установлен:

2.Установите пакет видеоредактора:

###Интеграция рабочего стола

Настройка в файле конфигурации Claude Desktop:

На MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json В Windows: %APPDATA%/Claude/claude_desktop_config.json

##Развитие

###Строительство и издательство

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

Video Editor MCP Server

A powerful video editing MCP server that leverages FFmpeg to perform video editing operations through natural language commands.

Components

Tools

The server implements one main tool:

  • execute_ffmpeg: Executes FFmpeg commands with progress tracking
    • Takes a command string as input
    • Validates and executes FFmpeg operations
    • Reports real-time progress during processing
    • Handles errors and provides detailed feedback
    • Supports all FFmpeg operations including:
      • Trimming/cutting
      • Merging videos
      • Converting formats
      • Adjusting speed
      • Adding audio tracks
      • Extracting audio
      • Adding subtitles
      • Basic filters (brightness, contrast, etc.)

Configuration

Prerequisites

  1. FFmpeg must be installed and accessible in your system PATH
  2. Python 3.9 or higher
  3. Required Python packages:
    mcp
    httpx
    

Installation

  1. Install FFmpeg if not already installed:

    # On macOS with Homebrew
    brew install ffmpeg
    
    # On Windows with Chocolatey
    choco install ffmpeg
    
    # On Ubuntu/Debian
    sudo apt install ffmpeg
    
  2. Install the video editor package:

    uv add video-editor
    

Claude Desktop Integration

Configure in your Claude Desktop config file:

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

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

Development

Building and Publishing

  1. Sync dependencies:

    uv sync
    
  2. Build package:

    uv build
    
  3. Publish to PyPI:

    uv publish
    

Note: Set PyPI credentials via:

  • Token: --token or UV_PUBLISH_TOKEN
  • Or username/password: --username/UV_PUBLISH_USERNAME and --password/UV_PUBLISH_PASSWORD

Debugging

For the best debugging experience, use the MCP Inspector:

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

Example Usage

Once connected to Claude Desktop, you can make natural language requests like:

  1. “Trim video.mp4 from 1:30 to 2:45”
  2. “Convert input.mp4 to WebM format”
  3. “Speed up video.mp4 by 2x”
  4. “Merge video1.mp4 and video2.mp4”
  5. “Extract audio from video.mp4”
  6. “Add subtitles.srt to video.mp4”

The server will:

  1. Parse your request
  2. Generate the appropriate FFmpeg command
  3. Execute it with progress tracking
  4. Provide feedback on completion

Error Handling

The server includes robust error handling for:

  • Invalid input files
  • Malformed FFmpeg commands
  • Runtime execution errors
  • Progress tracking issues

All errors are reported back to the client with detailed messages for debugging.

Security Considerations

  • Only processes files in explicitly allowed directories
  • Validates FFmpeg commands before execution
Открыть полный README на GitHub

Установка

npx @modelcontextprotocol/inspector uv --directory /path/to/video_editor run video-editor
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

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