
kush36agrawal/video_editor_mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
kush36agrawal/video editor mcp は [https://github.com/kush36agrawal/video_editor_mcp. からインポートされた MCP サーバー候補です
概要
kush36agrawal/video editor mcp は [https://github.com/kush36agrawal/video_editor_mcp. からインポートされた MCP サーバー候補です
概要(AI 翻訳)
FFmpegを活用する強力なビデオ編集MCPサーバーは、自然言語のコマンドでビデオ編集操作を実行します。
コンポーネント
ツール
サーバは 1 つの主要なツールを実装します。
execute_ffmpeg: FFmpeg コマンドを進捗追跡で実行- コマンド文字列を入力として取得
- FFmpeg操作の検証と実行
- 処理中のリアルタイム進行状況を報告
- エラーを扱い、詳細なフィードバックを提供します
- FFmpeg のすべての操作をサポート:
- トリミング/切断
- 動画をマージする
- フォーマットの変換 -速度の調節
- オーディオトラックの追加
- オーディオの抽出
- 字幕の追加
- 基本フィルタ(明るさ、コントラストなど)
設定
前提条件
1。 FFmpegはシステムパスにインストールしてアクセスする必要があります 2. Python 3.9 以上 3. 必須のPythonのパッケージ:
インストール
-
インストールされていない場合はFFmpegをインストールします。
-
ビデオ エディターのパッケージを取付けて下さい:
##Claudeデスクトップの統合
Claudeデスクトップコンフィグファイルの設定:
MacOSの場合: [~/Library/Application Support/Claude/claude_desktop_config.json
Windowsの場合: [[T2]
開発
建物・出版
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
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
- FFmpeg must be installed and accessible in your system PATH
- Python 3.9 or higher
- Required Python packages:
mcp httpx
Installation
-
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 -
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
-
Sync dependencies:
uv sync -
Build package:
uv build -
Publish to PyPI:
uv publish
Note: Set PyPI credentials via:
- Token:
--tokenorUV_PUBLISH_TOKEN - Or username/password:
--username/UV_PUBLISH_USERNAMEand--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:
- “Trim video.mp4 from 1:30 to 2:45”
- “Convert input.mp4 to WebM format”
- “Speed up video.mp4 by 2x”
- “Merge video1.mp4 and video2.mp4”
- “Extract audio from video.mp4”
- “Add subtitles.srt to video.mp4”
The server will:
- Parse your request
- Generate the appropriate FFmpeg command
- Execute it with progress tracking
- 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
インストール
npx @modelcontextprotocol/inspector uv --directory /path/to/video_editor run video-editor設定
{
"mcpServers": {
"video-editor": {
"command": "uv",
"args": ["run", "video-editor"]
}
}
}