Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

mcp-ffmpeg

MCP.Pizza Chef: bitscorp-mcp

mcp-ffmpeg is a Node.js MCP server that leverages FFmpeg to manipulate video files. It provides APIs to resize videos to common resolutions like 360p, 480p, 720p, and 1080p, and to extract audio tracks in multiple formats including MP3, AAC, WAV, and OGG. This server enables seamless video processing workflows within MCP-enabled environments, requiring Node.js and FFmpeg installed on the host system.

Use This MCP server To

Resize videos to standard resolutions for streaming or storage Extract audio tracks from video files in various formats Convert video files to lower resolutions for bandwidth optimization Integrate video processing into automated media workflows Generate audio-only versions of video content for podcasts Prepare video content for multi-platform distribution Automate video format conversions within MCP-enabled apps

README

MCP FFmpeg Video Processor

smithery badge

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": {
        "ffmpeg": {
            "command": "npx",
            "args": [
                "--yes",
                "mcp-ffmpeg"
            ]
        }
    }
}
  1. Restart Claude Desktop for the changes to take effect.

Example Prompts for Claude

Once configured, you can use prompts like:

Using the ffmpeg MCP server, please resize the video at /path/to/video.mp4 to 720p resolution.

Notes

  • Uploaded videos are stored temporarily in the uploads directory
  • Processed videos and audio files are stored in the output directory
  • The server has a file size limit of 500MB for uploads

License

MIT

mcp-ffmpeg FAQ

What prerequisites are needed to run mcp-ffmpeg?
You need Node.js (v14+) and FFmpeg installed on your system.
How do I install FFmpeg on different operating systems?
Use 'brew install ffmpeg' on macOS, 'sudo apt install ffmpeg' on Ubuntu/Debian, or download from the official site for Windows.
Can mcp-ffmpeg handle audio extraction in multiple formats?
Yes, it supports MP3, AAC, WAV, and OGG audio extraction.
What video resolutions can mcp-ffmpeg resize to?
It supports resizing to 360p, 480p, 720p, and 1080p resolutions.
Is mcp-ffmpeg limited to Node.js environments?
Yes, it is a Node.js server requiring Node.js runtime and FFmpeg installed.
Can mcp-ffmpeg be integrated with other LLM providers like Claude or Gemini?
Yes, as an MCP server, it can be integrated with clients using models like OpenAI, Claude, and Gemini.
Does mcp-ffmpeg support real-time video processing?
It processes videos via API calls but is optimized for batch or on-demand processing rather than live streaming.
How do I add mcp-ffmpeg to my MCP client workflow?
Connect to its API endpoints to send video files for resizing or audio extraction tasks.