media_probe
Inspect audio and video files with ffprobe. Returns container metadata, stream details, codecs, resolution, bitrate, and duration as JSON.
inputPathrequired
io.github.Ashutos1997Published by GitHub account Ashutos1997v0.6.0Updated Nov 5, 2026
FFmpeg & FFprobe media processing toolkit for video, audio, and social formats
Local MCP server that runs FFmpeg and FFprobe so an assistant can inspect, convert, trim, compress and caption video and audio files.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Follow the launch instructions in the repository.
[CI] [Release] [License: MIT] [npm version] [npm downloads] [npm total downloads] [Glama] [FFmpeg MCP server]
A Model Context Protocol (MCP) server that gives AI tools access to FFmpeg and FFprobe to process video and audio locally.
Supports cross-platform GPU hardware encoding (Apple Silicon, NVIDIA NVENC, Intel QuickSync, AMD AMF), live progress updates via MCP progress tokens, instant cancellation via AbortSignal, and inlines image previews directly for multimodal vision models.
When AI agents process media, they often hallucinate invalid flags, syntax errors, or incompatible pixel formats.
This server provides 19 typed tools using Zod schemas. The AI passes parameters (such as { inputPath: "video.mov", preset: "web_mp4" }), and the server runs the valid FFmpeg command locally with proper error handling, hardware acceleration, and progress notifications.
notifications/progress), enabling progress bars in modern AI clients.AbortSignal events to immediately terminate child FFmpeg processes when a generation is stopped.media://capabilities: Inspects local FFmpeg installation, active version, detected hardware accelerators (VideoToolbox, NVENC, QSV, AMF, VAAPI), and supported video encoders.media://presets: Standard reference table of social aspect ratios, platform upload file size limits, and broadcast audio loudness targets.social_clip_generator: Interactive workflow that turns raw landscape video into vertical shorts with blurred background padding, trimmed silence, and hardcoded captions.whisper_audio_prep: Standard pipeline for extracting 16kHz mono WAV audio and normalizing loudness for speech-to-text models.brew install ffmpegsudo apt update && sudo apt install ffmpeg libass-devwinget install Gyan.FFmpeg or choco install ffmpegRun directly with npx (no manual cloning or building required):
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.gemini/config/mcp_config.jsonnpx and args ["-y", "@ash_j1997/ffmpeg-mcp-server"]Install dependencies:
Run build and automated test suite:
Special thanks to @rajarshidattapy for suggesting the stream multiplexing (mux_media) and scene transition detection (detect_scenes) capabilities to expand the server beyond format conversion.
MIT © Ashutos1997
Source: README.md at commit c18838b
Inspect audio and video files with ffprobe. Returns container metadata, stream details, codecs, resolution, bitrate, and duration as JSON.
inputPathrequiredConvert video and audio files between formats. Includes presets for web MP4 (H.264/AAC), WebM (VP9/Opus), and animated GIF. Supports hardware acceleration on Apple Silicon, NVIDIA, Intel, and AMD.
crffpspresetinputPathrequiredoutputPathrequiredresolutionhardwareAccelerationCut a segment from a video or audio file. Uses stream copy without re-encoding by default, or re-encodes when accurate cuts are needed.
endTimedurationinputPathrequiredstartTimerequiredoutputPathrequiredaccurateReencodeExtract an audio track from a video file into a standalone audio file. Supports the 'whisper_wav' preset (16kHz mono WAV) for speech recognition models, plus MP3, AAC, FLAC, and stream copy.
formatbitrateinputPathrequiredoutputPathrequiredCapture a single still image from a video. Returns the saved image path and inlined base64 image data so vision models can inspect the frame.
inputPathrequiredtimestampoutputPathrequiredresolutionincludeBase64Compress video files to fit upload limits (such as GitHub PRs under 10MB or Discord under 25MB) using target file sizes or CRF quality levels. Does not modify the original file.
crfpresetmaxWidthinputPathrequiredoutputPathrequiredtargetSizeMBhardwareAccelerationJoin multiple video or audio files in order into a single file. Uses stream copy for matching files or re-encodes when formats differ.
modeinputPathsrequiredoutputPathrequiredGenerate a PNG waveform image from an audio or video file. Returns the file path and inlined base64 image data.
colorscalewidthheightinputPathrequiredoutputPathrequiredincludeBase64Embed an SRT or VTT subtitle track into a video container (mov_text for MP4, srt for MKV) without re-encoding the video stream.
titlelanguagevideoPathrequiredoutputPathrequiredsubtitlesPathrequiredChange video and audio playback speed (such as 2x for fast forward or 0.5x for slow motion) with pitch correction.
speedrequiredinputPathrequiredmuteAudiooutputPathrequiredChange video aspect ratio to 9:16 vertical, 1:1 square, or 4:5 portrait. Adds blurred video borders, solid padding, or center crops.
modepadColorinputPathrequiredblurAmountoutputPathrequiredtargetRatiohardwareAccelerationDetect and remove silent pauses from audio or video files. Preserves video & audio lip-sync in 'start_end' mode. Returns original duration and seconds saved.
modeinputPathrequiredoutputPathrequiredthresholdDbminDurationSecondsCombine two video files into a split-screen video. Stacks clips vertically (1080x1920 for Reels and TikTok) or places them side-by-side. Supports audio mixing and subtitle embedding.
layoutoutputPathrequiredaudioSourcesubtitlesPathfirstVideoPathrequiredsecondVideoPathrequiredhardwareAccelerationHardcode/burn subtitles directly into video frames with customizable font size, colors, and positioning. Unlike soft subtitles, burned subtitles render on all platforms including TikTok, Instagram Reels, and YouTube Shorts.
marginVfontSizefontColorvideoPathrequiredoutputPathrequiredoutlineColoroutlineWidthsubtitlesPathrequiredhardwareAccelerationExtract multiple representative frames across a video's timeline. In 'montage' mode, merges frames into a single contact-sheet grid image and inlines base64 for vision models to inspect the whole video at once.
countlayoutinputPathrequiredoutputPathrequiredincludeBase64Normalize audio loudness using the broadcast standard EBU R128 (loudnorm). Supports -16 LUFS (podcasts/Reels), -14 LUFS (YouTube), and optional voice clarity enhancement (80Hz high-pass to remove mic rumble). Works on audio or video files.
inputPathrequiredoutputPathrequiredtargetLufstargetPeakDbvoiceClarityPlace a watermark image, logo PNG, or branding graphic over a video with customizable position, padding, scaling, and opacity.
opacitypaddingpositionvideoPathrequiredoutputPathrequiredscaleWidthoverlayPathrequiredhardwareAccelerationCombine or replace video and audio streams. Takes a video file and an audio track, with optional audio delay offset, stream-copy mode for zero quality loss, and 'replace' or 'add' stream mapping.
modeshortestaudioPathrequiredvideoPathrequiredoutputPathrequiredstreamCopyVideoaudioOffsetSecondshardwareAccelerationDetect video cuts and scene transitions. Returns structured timestamps, scene durations, and cut boundaries as JSON, with optional contact-sheet image preview for vision models.
inputPathrequiredthresholdoutputPathincludeBase64minDurationSeconds90% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
{ "mcpServers": { "ffmpeg": { "command": "npx", "args": ["-y", "@ash_j1997/ffmpeg-mcp-server"] } }}npm installnpm test