# FFmpeg MCP Server

> FFmpeg MCP Server is a free MCP server for design and media. Run FFmpeg and FFprobe from an AI agent with typed tools and GPU encoding. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** CLI, macOS, Linux, Windows
- **Repository:** https://github.com/ashutos1997/ffmpeg-mcp-server
- **MCP Registry name:** io.github.Ashutos1997/ffmpeg-mcp-server
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

The reason this server exists, per its README, is that agents often invent invalid FFmpeg flags or incompatible pixel formats. Instead of writing a command line, the model fills in typed parameters such as an input path and a preset, and the server runs a valid command locally with error handling and progress notifications.

It detects hardware encoders automatically, including VideoToolbox on macOS and NVENC, Quick Sync, AMF and VA-API elsewhere, and cancels child FFmpeg processes when the client aborts. Image-producing tools such as thumbnails, waveforms and keyframe contact sheets can return base64 previews so vision models can look at the media. Social-video helpers reformat landscape clips to 9:16 with blurred borders, burn in subtitles and stack split-screen reels.

Two resources describe the local FFmpeg install and platform presets, and two prompts cover a social clip workflow and Whisper audio prep. FFmpeg and FFprobe must be installed locally and Node.js 18 or later is needed.

## Features

- **Typed tools:** 19 tools with schemas, so the agent never writes raw FFmpeg flags.
- **Hardware acceleration:** Uses VideoToolbox, NVENC, Quick Sync, AMF or VA-API when present.
- **Progress and cancel:** Reports live progress and stops processes on abort.
- **Vision previews:** Returns thumbnails, waveforms and contact sheets as base64 images.
- **Social formats:** Vertical reformatting, burned subtitles and split-screen reels.
- **Audio cleanup:** Loudness normalisation, silence trimming and Whisper-ready WAV extraction.

## Good for

- Compress a clip to fit a size limit for a pull request or chat
- Turn landscape video into a vertical short with captions
- Normalise podcast audio to -16 LUFS
- Find scene cuts in a video for editing

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add ffmpeg-mcp-server -- npx -y @ash_j1997/ffmpeg-mcp-server
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "ffmpeg-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@ash_j1997/ffmpeg-mcp-server"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "ffmpeg-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@ash_j1997/ffmpeg-mcp-server"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "ffmpeg-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@ash_j1997/ffmpeg-mcp-server"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "ffmpeg-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ash_j1997/ffmpeg-mcp-server"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add ffmpeg-mcp-server -- npx -y @ash_j1997/ffmpeg-mcp-server
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.ffmpeg-mcp-server]
command = "npx"
args = ["-y", "@ash_j1997/ffmpeg-mcp-server"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "ffmpeg-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@ash_j1997/ffmpeg-mcp-server"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user ffmpeg-mcp-server npx -- -y @ash_j1997/ffmpeg-mcp-server

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "ffmpeg-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@ash_j1997/ffmpeg-mcp-server"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "ffmpeg-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@ash_j1997/ffmpeg-mcp-server"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "ffmpeg-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@ash_j1997/ffmpeg-mcp-server"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "ffmpeg-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@ash_j1997/ffmpeg-mcp-server"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "ffmpeg-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@ash_j1997/ffmpeg-mcp-server"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "ffmpeg-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@ash_j1997/ffmpeg-mcp-server"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "ffmpeg-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@ash_j1997/ffmpeg-mcp-server"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "ffmpeg-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@ash_j1997/ffmpeg-mcp-server"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 3 of 19 tools change data; 16 names don't say. From the server's own tool labels and tool names; not verified by us.

- `media_probe`: Inspect a file with ffprobe and return metadata as JSON.
- `media_convert`: Convert video and audio formats with presets and GPU acceleration.
- `trim_media`: Cut a segment by stream copy or re-encoding.
- `extract_audio`: Pull an audio track, including a 16 kHz mono WAV preset.
- `extract_thumbnail`: Capture a still image at a timestamp.
- `compress_video`: Compress to a target size.
- `reformat_aspect_ratio`: Change to 9:16, 1:1 or 4:5.
- `create_split_screen` (name suggests: changes): Stack two videos top-bottom or side by side.
- `trim_silence`: Remove silent pauses while keeping sync.
- `concat_media`: Join files in order.
- `generate_waveform`: Create a PNG waveform image.
- `add_subtitles` (name suggests: changes): Embed SRT or VTT tracks without re-encoding.
- `burn_subtitles`: Hardcode styled subtitles onto frames.
- `extract_keyframes`: Extract frames and build a contact sheet.
- `normalize_audio`: Normalise loudness with EBU R128.
- `add_overlay` (name suggests: changes): Place a watermark image on video.
- `change_speed`: Speed up or slow down with pitch correction.
- `mux_media`: Combine or replace audio and video streams.
- `detect_scenes`: Detect cut points and scene transitions.

## FAQ

### What do I need installed?

Node.js 18 or later plus FFmpeg and FFprobe on your machine.

### Does FFmpeg MCP Server process files locally?

Yes, the server runs FFmpeg locally and communicates over stdio.

### How many tools are there?

19 tools, such as media_probe, media_convert and compress_video.

### How do I run FFmpeg MCP Server?

Use npx with the @ash_j1997/ffmpeg-mcp-server package in your client config.

### Is FFmpeg MCP Server free?

Yes. FFmpeg MCP Server is free to use.

### How do I add FFmpeg MCP Server to Claude Code?

Run this command in your terminal: claude mcp add ffmpeg-mcp-server -- npx -y @ash_j1997/ffmpeg-mcp-server

### What are the best alternatives to FFmpeg MCP Server?

The closest alternatives to FFmpeg MCP Server are REA, HyperFrames by HeyGen, Context7, Chrome DevTools MCP and Codebase Memory.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [HyperFrames by HeyGen](https://ai-powered.com/mcp/hyperframes-by-heygen): HyperFrames by HeyGen is a freemium MCP server for design and media.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/ffmpeg-mcp-server
