# Ffmpeg Mcp

> FFmpeg video/audio tools: cut, convert, concat, remove silence, and raw commands.

- **Type:** MCP server
- **Install:** `agentstack add mcp-pedromarianoalmeida-ffmpeg-mcp`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [PedroMarianoAlmeida](https://agentstack.voostack.com/s/pedromarianoalmeida)
- **Installs:** 0
- **Category:** [Content & Media](https://agentstack.voostack.com/c/content-and-media)
- **Latest version:** 1.0.2
- **License:** MIT
- **Upstream author:** [PedroMarianoAlmeida](https://github.com/PedroMarianoAlmeida)
- **Source:** https://github.com/PedroMarianoAlmeida/ffmpeg-mcp

## Install

```sh
agentstack add mcp-pedromarianoalmeida-ffmpeg-mcp
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 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

| Tool | Description |
|------|-------------|
| `cut_video` | Extract a segment from a video using start time and duration |
| `image_to_video` | Convert a static image to a video with fixed duration |
| `concat_videos` | Join multiple videos into one |
| `convert` | Convert between media formats (auto-detects from file extension) |
| `remove_silence` | Detect and remove silent segments from video |
| `ffmpeg_raw` | Execute raw FFmpeg commands for advanced operations |

## Installation

### From npm (recommended)

```bash
npm install -g ffmpeg-mcp-server
```

### From source

```bash
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`:

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

### Claude Code

Add to your Claude Code MCP settings:

```json
{
  "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

```bash
# 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

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [PedroMarianoAlmeida](https://github.com/PedroMarianoAlmeida)
- **Source:** [PedroMarianoAlmeida/ffmpeg-mcp](https://github.com/PedroMarianoAlmeida/ffmpeg-mcp)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v1.0.2 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **1.0.2** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-pedromarianoalmeida-ffmpeg-mcp
- Seller: https://agentstack.voostack.com/s/pedromarianoalmeida
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
