Ffmpeg MCP logo

Ffmpeg MCP

Run local FFmpeg operations through MCP for cutting, conversion, concatenation, silence removal, and restricted commands.

Install Ffmpeg MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "ffmpeg-mcp": {
      "command": "npx",
      "args": [
        "ffmpeg-mcp-server"
      ],
      "env": {
        "FFMPEG_MCP_WORKSPACE": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx ffmpeg-mcp-server

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

ffmpeg-mcp MCP server brings local FFmpeg media operations to MCP clients through tools for cutting, conversion, concatenation, image-to-video creation, and silence removal. It bundles an FFmpeg binary, so a separate system FFmpeg installation is not required. Files are confined to a configured workspace, while the raw command tool accepts only restricted local inputs, outputs, codecs, and timing options. Reach for it when an agent needs to perform repeatable video or audio transformations on local files.

Use cases

  • Cut a selected segment from a local video
  • Convert a video into an audio file
  • Join multiple clips into one video
  • Remove extended silent sections from a recording
  • Create a video from a static image

Key features

  • Bundled FFmpeg binary
  • Video segment extraction
  • Audio and video format conversion
  • Video concatenation
  • Automatic silence removal
  • Workspace-constrained raw FFmpeg commands

Tools6

What Ffmpeg MCP lets your agent do. Expand a tool for its parameters.

Self-reported~89 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

20/22 checks healthy over the last 112d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · ffmpeg-mcp-server (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
npm downloads1.4kPackage downloads in the last 30 days.
Last commit5d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed6Callable tools this server registers over MCP.
Directory activity14 viewsConfig copies, upvotes, and views on AllMCPs.

How Ffmpeg MCP works

What ffmpeg-mcp does

ffmpeg-mcp exposes common FFmpeg workflows as MCP tools for local video and audio files. It can extract a segment from a video, convert media between formats, join multiple videos, create a video from a still image, and detect and remove silent portions from video. The format conversion tool uses file extensions to determine the input and output formats, supporting workflows such as MOV-to-MP4 conversion or extracting MP3 audio from a video.

The server also provides ffmpeg_raw for selected FFmpeg operations that do not fit the higher-level tools. This is not an unrestricted shell interface: the command is limited to local inputs, one final local output, and supported codec and timing options.

How it works

MCP clients invoke the registered tools with file paths and operation parameters. FFmpeg processing runs locally, using the binary bundled through ffmpeg-static. Inputs and outputs must be located within the workspace selected by FFMPEG_MCP_WORKSPACE; when that variable is not set, the process working directory serves as the workspace.

Before accessing a path, the server resolves symlinks and checks that it remains inside the workspace. URL schemes, traversal outside the workspace, and symlink-based output paths are rejected. Output directories need to exist before a tool is called.

Silence removal uses automatic detection. Its documented example configuration detects silence longer than two seconds at a threshold of -30 dB by default.

Setup and configuration

Install the published package globally with:

Terminal
npm install -g ffmpeg-mcp-server

Alternatively, clone the source repository, install dependencies, and build it with npm install followed by npm run build. MCP clients can launch the package with npx ffmpeg-mcp-server.

Set FFMPEG_MCP_WORKSPACE to an absolute media directory when you want to explicitly constrain file access. A typical stdio configuration is:

config.json
{
  "mcpServers": {
    "ffmpeg": {
      "command": "npx",
      "args": ["ffmpeg-mcp-server"],
      "env": {
        "FFMPEG_MCP_WORKSPACE": "/absolute/path/to/media-workspace"
      }
    }
  }
}

The same launch pattern is documented for Claude Desktop and Claude Code.

Tools and capabilities

  • cut_video: extracts a video segment using a start time and duration.
  • image_to_video: turns a still image into a video with a fixed duration.
  • concat_videos: joins multiple video files into one output.
  • convert: converts between media formats and infers formats from file extensions.
  • remove_silence: detects and removes silent sections from video.
  • ffmpeg_raw: runs a constrained local FFmpeg command with approved inputs, output paths, codecs, and timing options.

Limitations and notes

Processing is local by default, and paths must remain inside the configured workspace. The raw tool excludes filters, forced formats, arbitrary FFmpeg flags, network protocols, and options that could load additional files. This restriction means specialized FFmpeg commands may need to be expressed through the higher-level tools or may not be available through the raw interface.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Ffmpeg MCP

ffmpeg-mcp is an MCP server that connects AI assistants to local media files through bundled FFmpeg. It provides tools to cut video segments, convert formats, join clips, turn images into videos, remove silence, and run restricted raw FFmpeg commands within a configured workspace.

Install it from npm with `npm install -g ffmpeg-mcp-server`, then configure your MCP client to launch `npx ffmpeg-mcp-server`. You can also clone the repository, run `npm install`, and build it with `npm run build`.

Set `FFMPEG_MCP_WORKSPACE` to the media directory that should contain all inputs and outputs. If it is unset, ffmpeg-mcp uses its current working directory. Output directories must already exist.

Yes, ffmpeg-mcp documents configurations for both Claude Desktop and Claude Code. Each client launches `npx ffmpeg-mcp-server`; the workspace can be supplied through the client's MCP environment configuration.

No, `ffmpeg_raw` accepts only restricted local FFmpeg operations. It permits local inputs, one final local output, and selected codec and timing options, while excluding filters, forced formats, arbitrary flags, and network protocols.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewFfmpeg MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/ffmpeg-mcp?style=directory)](https://allmcps.com/mcp/ffmpeg-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/ffmpeg-mcp"><img src="https://allmcps.com/api/badge/ffmpeg-mcp?style=directory" alt="Ffmpeg MCP on AllMCPs" /></a>