MCP Hub
Back to servers

ffmpeg-mcp

Validation Failed

An MCP server providing comprehensive FFmpeg-powered media manipulation tools for video cutting, format conversion, and automated silence removal.

Stars
2
Tools
6
Updated
Dec 19, 2025
Validated
Jan 9, 2026

Validation Error:

Process exited with code 2. stderr: npm warn deprecated fluent-ffmpeg@2.1.3: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. /home/runner/.npm/_npx/b39f585c38a58fae/node_modules/.bin/ffmpeg-mcp: 1: import: not found /home/runner/.npm/_npx/b39f585c38a58fae/node_modules/.bin/ffmpeg-mcp: 2: import: not found /home/runner/.npm/_npx/b39f585c38a58fae/node_modules/.bin/ffmpeg-mcp: 3: import: not found /home/runner/.npm/_npx/b39f585c38a58fae/node_modules/.bin/ffmpeg-mcp: 4: import: not found /h

Quick Install

npx -y ffmpeg-mcp-server

FFmpeg MCP Server

A Model Context Protocol (MCP) server that provides video and audio manipulation tools powered by FFmpeg. This server enables AI assistants to perform media operations like cutting videos, converting formats, removing silence, and more.

Features

  • Self-contained - Includes bundled FFmpeg binary via ffmpeg-static, no system installation required
  • Format conversion - Convert between audio/video formats (mp4, mp3, wav, mov, etc.)
  • Video editing - Cut segments, concatenate multiple videos, convert images to video
  • Audio processing - Detect and remove silent segments automatically
  • Flexible - Raw FFmpeg command support for advanced operations

Available Tools

ToolDescription
cut_videoExtract a segment from a video using start time and duration
image_to_videoConvert a static image to a video with fixed duration
concat_videosJoin multiple videos into one
convertConvert between media formats (auto-detects from file extension)
remove_silenceDetect and remove silent segments from video
ffmpeg_rawExecute raw FFmpeg commands for advanced operations

Installation

From npm (recommended)

npm install -g ffmpeg-mcp-server

From source

git clone https://github.com/PedroMarianoAlmeida/ffmpeg-mcp
cd ffmpeg-mcp
npm install
npm run build

Configuration

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "ffmpeg": {
      "command": "npx",
      "args": ["ffmpeg-mcp-server"]
    }
  }
}

Claude Code

Add to your Claude Code MCP settings:

{
  "mcpServers": {
    "ffmpeg": {
      "command": "npx",
      "args": ["ffmpeg-mcp-server"]
    }
  }
}

Usage Examples

Cut a video segment

"Cut the first 30 seconds from video.mp4"
→ Uses cut_video tool

Convert formats

"Convert video.mov to mp4"
"Extract audio from video.mp4 as mp3"
→ Uses convert tool

Remove silence

"Remove silent parts from my podcast recording"
→ Uses remove_silence tool (detects silence > 2s at -30dB by default)

Advanced operations

"Add a watermark to my video"
"Speed up the video 2x"
"Rotate video 90 degrees"
→ Uses ffmpeg_raw tool with AI-constructed FFmpeg commands

Development

# Install dependencies
npm install

# Build
npm run build

# Project structure
src/
  index.ts    # MCP server setup and tool registrations
  lib.ts      # FFmpeg operations

License

MIT

Reviews

No reviews yet

Sign in to write a review