BM

bitscorp-mcp/mcp-ffmpeg

Developer tools

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

61 stars 15 forks Качество 64 Тренд 13

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

Обзор

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

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

Сервер Node.js использует FFmpeg для управления видеофайлами. Этот сервер предоставляет API для:

Размеры видео для разных разрешений (360p, 480p, 720p, 1080p)

  • Извлечение аудио из видео в различных форматах (MP3, AAC, WAV, OGG)

Предпосылки

Перед запуском этого приложения вам необходимо установить следующее:

  1. Node.js (v14 или выше)
  2. FFmpeg Это необходимо для обработки видео

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

На MacOS:

####На Ubuntu/Debian:

####В Windows:

  1. Скачать FFmpeg с официального сайта
  2. Извлеките файлы в папку (например, C:\ffmpeg)
  3. Добавьте папку bin в переменную среды PATH

##Установка

  1. Клонировать это хранилище:

  2. Установить зависимости:

###Установка через Smithery

Установить mcp-ffmpeg для Claude Desktop автоматически через Smithery:

Запуск сервера

Запустите сервер с помощью:

Для разработки с автоперезагрузкой на изменения файлов:

###Установка через Smithery

Установить mcp-ffmpeg для Claude Desktop автоматически через Smithery:

Чтобы установить mcp-ffmpeg для Курсора, перейдите в Настройки -> Настройки Курсора -> Функции -> MCP серверы -> + Добавить

Выберите тип: команду и вставьте ниже, используя ключ API от Adjust

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

README

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

MCP FFmpeg Video Processor

A Node.js server that uses FFmpeg to manipulate video files. This server provides APIs to:

  • Resize videos to different resolutions (360p, 480p, 720p, 1080p)
  • Extract audio from videos in various formats (MP3, AAC, WAV, OGG)

Prerequisites

Before running this application, you need to have the following installed:

  1. Node.js (v14 or higher)
  2. FFmpeg - This is required for video processing

Installing FFmpeg

On macOS:

brew install ffmpeg

On Ubuntu/Debian:

sudo apt update
sudo apt install ffmpeg

On Windows:

  1. Download FFmpeg from the official website
  2. Extract the files to a folder (e.g., C:\ffmpeg)
  3. Add the bin folder to your PATH environment variable

Installation

  1. Clone this repository:
git clone https://github.com/bitscorp-mcp/mcp-ffmpeg.git
cd mcp-ffmpeg
  1. Install dependencies:
npm install

Installing via Smithery

To install mcp-ffmpeg for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @bitscorp-mcp/mcp-ffmpeg --client claude

Running the Server

Start the server with:

npm start

For development with auto-restart on file changes:

npm run dev

Installing via Smithery

To install mcp-ffmpeg for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @bitscorp-mcp/mcp-ffmpeg --client claude

To install mcp-ffmpeg for Cursor, go to Settings -> Cursor Settings -> Features -> MCP Servers -> + Add

Select Type: command and paste the below, using your API key from Adjust

npx -y @smithery/cli@latest run @bitscorp/mcp-ffmpeg

Using with Claude Desktop

This MCP FFmpeg server can be integrated with Claude Desktop to process videos through natural language requests.

Running with npx

You can run the server directly with npx:

npx /path/to/mcp-ffmpeg

Or if you’ve published the package to npm:

npx mcp-ffmpeg

Configuring Claude Desktop

To add this server to Claude Desktop, update your Claude Desktop configuration file:

  1. Locate your Claude Desktop config file:

    • macOS: ~/.config/claude-desktop/config.json or ~/Library/Application Support/Claude Desktop/config.json
    • Windows: %APPDATA%\Claude Desktop\config.json
    • Linux: ~/.config/claude-desktop/config.json
  2. Add the FFmpeg MCP server to the mcpServers section:

{
    "mcpServers": {
        "ffmpeg": {
            "command": "npx",
            "args": [
                "--yes",
                "/absolute/path/to/mcp-ffmpeg"
            ]
        }
    }
}

If you’ve published the package to npm:

{
    "mcpServers": {
Открыть полный README на GitHub

Установка

npx --yes /absolute/path/to/mcp-ffmpeg
Новичок в MCP? Начните с руководства на mcpskill.org →

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

{ "mcpServers": { "ffmpeg": { "command": "npx", "args": [ "--yes", "/absolute/path/to/mcp-ffmpeg" ] } } }