Skip to main content
Glama

video-mcp

Sort a shoot folder in one command — A-roll vs B-roll, grouped by topic, bad takes pulled into _rejects — plus a local-first video understanding MCP for Claude Desktop, Claude Code, Codex, Grok, and any MCP client. → videomcp.xanom.co

Install (macOS)

curl -fsSL https://raw.githubusercontent.com/neelsatyavolu/videomcp/main/install.sh | bash

Or download the Mac installer, unzip it and double-click Install video-mcp.command. Either way it installs Node.js and Homebrew if missing, the video-mcp command, and ffmpeg, tesseract, whisper-cpp and a speech model (install.sh is short — read it first if you like). Sorting also needs one of the Claude Code, Codex or Grok CLIs, signed in.

The MCP server turns video into what agents already understand: metadata + timestamped transcript + key frames + timeline. The sections below cover it and other ways to install.

Related MCP server: Understand This Video For Me AI Plugin

Other install options

Prerequisites: Node.js 18+ and ffmpeg (brew install ffmpeg).

From a clone

git clone https://github.com/neelsatyavolu/videomcp && cd videomcp
npm install && npm run build
node dist/index.js setup      # ffmpeg + tesseract + whisper-cpp + model
node dist/index.js install    # Claude Desktop / Code / Codex / Grok

Global npm install (from the latest release)

npm install -g https://github.com/neelsatyavolu/videomcp/releases/latest/download/video-mcp-server.tgz
video-mcp setup            # ffmpeg / tesseract / whisper-cpp + model
video-mcp install          # all clients
video-mcp doctor           # check ffmpeg / Whisper / installs

Use as an MCP server

video-mcp install wires Claude Desktop, Claude Code, Codex, and Grok automatically. Restart the app / start a new agent session after installing.

video-mcp install --client desktop   # Claude Desktop only
video-mcp install --client code      # Claude Code only
video-mcp install --client codex
video-mcp install --client grok
video-mcp install --client all       # default

video-mcp status
video-mcp uninstall
video-mcp help

CLI

Command

What it does

video-mcp setup

Install needed deps: ffmpeg, tesseract, whisper-cpp + ggml model

video-mcp install

Add MCP to agent config files

video-mcp uninstall

Remove from configs

video-mcp status

Show where it's installed

video-mcp doctor

ffmpeg / whisper / tesseract + client status

video-mcp sort <folder>

Sort a shoot folder by topic, A/B roll and quality (see below)

video-mcp serve

Run MCP on stdio (also the default with no args)

Needed system tools

Tool

Role

ffmpeg

Frames, probe, audio

whisper-cpp + ggml-base.bin

Local speech-to-text

tesseract

On-screen text (OCR)

yt-dlp

YouTube/etc. (optional)

Configs are updated in place; a .bak backup is written first.

Client

Config file

Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json

Claude Code

~/.claude.json

Codex

~/.codex/config.toml

Grok

~/.grok/config.toml

Sorting a shoot folder

video-mcp sort ~/Footage/shoot-0924 --dry-run   # see the plan, move nothing
video-mcp sort ~/Footage/shoot-0924             # asks before moving
video-mcp sort --undo ~/Footage/shoot-0924      # put everything back

Every clip is analysed on your machine (transcript, keyframes, OCR, and ffmpeg checks for focus, exposure, shake, audio clipping, silence, black and frozen frames). A signed-in agent CLI (--agent grok|codex|claude; default is the first one installed, in that order) looks at each clip and says keep or reject, then groups the whole shoot into topics and picks the best of repeated takes. Files are moved in place and never overwritten; names are kept, except that a clash gets (2) added:

shoot/
  <Topic>/a-roll/ · <Topic>/b-roll/
  _rejects/<Topic>/{a-roll,b-roll}/   bad clips, alternate takes, near-duplicates
  footage-report.md                   every clip with its verdict and reasons
  .footage-sort/                      analysis cache + undo manifest

A-roll is a clip with speech over at least 40% of its length; a folder named a-roll or b-roll overrides that. Very short, mostly black or frozen clips are rejected without asking the agent. Re-running only sorts clips added since. Options: --model, --yes, --concurrency N (default 3), --no-cache. --undo reverts the most recent run; repeat it to go further back. Speech-to-text runs locally with whisper.cpp; only if no local backend works and OPENAI_API_KEY is set is audio sent to OpenAI's Whisper API.

Tools

Tool

Use when

video_check_deps

Setup / missing ffmpeg / Whisper

video_info

Duration, resolution, codecs (fast)

video_transcribe

Speech / captions only

video_get_frame

Exact moment after transcript hit

video_get_frame_burst

Motion / UI transitions

video_extract_frames

Keyframes without full pipeline

video_analyze

“Watch / summarize / understand this video” (frames + speech + OCR)

video_ocr

On-screen text only (video keyframes or a single image)

video_search_transcript

Find topic timestamps in long videos

Prompt: watch_video — guided workflow for agents.

Optional dependencies

Tool

Why

ffmpeg

Required — frames, probe, audio

yt-dlp

YouTube / TikTok / platform URLs (brew install yt-dlp)

whisper / whisper.cpp / OPENAI_API_KEY

Transcripts when captions are missing

Manual config (if you prefer)

{
  "mcpServers": {
    "video": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/videomcp/dist/index.js"]
    }
  }
}

Codex / Grok TOML:

[mcp_servers.video]
command = "node"
args = ["/ABSOLUTE/PATH/TO/videomcp/dist/index.js"]
startup_timeout_sec = 30
tool_timeout_sec = 600

Environment

Variable

Purpose

VIDEO_MCP_WORK_DIR

Cache/download dir

VIDEO_MCP_MAX_INLINE_IMAGES

Max inline thumbs (default 6)

VIDEO_MCP_WRITE_SIDECARS

1 = write <video>.videomcp.json next to local files

VIDEO_MCP_DISABLE_OCR

1 = skip tesseract

WHISPER_MODEL / WHISPER_LANGUAGE

Local Whisper

OPENAI_API_KEY

Cloud Whisper fallback

YTDLP_COOKIES

Auth for restricted URLs

TESSERACT_BIN

Override tesseract path

Dev

npm install && npm run build
npm start                 # MCP stdio
npm test                  # Vitest
npm run smoke -- /path/to/video.mp4

License

MIT

Available Tools

9 tools
video_analyzeFull video analysisA
Read-onlyIdempotent

Most powerful one-shot tool: resolve source → probe → transcript + keyframes (parallel) → OCR on-screen text → merged timeline + agent summary.

Prefer this when the user asks to "watch", "summarize", or "understand" a video. Use detail=brief for long lectures when only speech matters; detailed for short UI demos.

Returns: at-a-glance summary, metadata, transcript, OCR text, frame paths (+ evenly spaced inline thumbs), timeline, warnings.

Inputs: source (required), mode, detail, end_sec, +9 more.

video_check_depsCheck video dependenciesA
Read-onlyIdempotent

Verify ffmpeg, ffprobe, yt-dlp, and Whisper backends are available. Call first when setup fails.

Returns dependency name, availability, path, version, and install hints.

Inputs: no named parameters.

video_extract_framesExtract key framesA
Read-onlyIdempotent

Extract representative JPEG frames via scene-change detection and/or interval sampling.

Modes: scene (visual cuts), interval (uniform), both (default fallback). Returns paths always; inline images for vision clients (capped).

Inputs: source (required), mode, detail, end_sec, +4 more.

video_get_frameGet frame at timestampA
Read-onlyIdempotent

Extract a single JPEG frame at a timestamp (seconds). Returns file path and an inline image for vision-capable clients.

Use after reading a transcript to inspect a specific moment.

Inputs: source (required), time_sec (required), inline_image.

video_get_frame_burstBurst frames in time rangeB
Read-onlyIdempotent

Extract N frames across a short time window for motion, UI transitions, or animations.

Prefer narrow windows (e.g. 0.5–3s) with 4–16 frames.

Inputs: source (required), end_sec (required), start_sec (required), count, +2 more.

video_infoVideo metadataA
Read-onlyIdempotent

Fast metadata probe (duration, resolution, codecs, audio presence) without transcription or frames.

Use before expensive analysis to plan detail level / time ranges.

Inputs: source (required), response_format.

video_ocrOCR frames or a single imageA
Read-onlyIdempotent

Extract on-screen text with tesseract. Pass a video source to sample keyframes + OCR, or an image path for a single frame/screenshot. Requires tesseract on PATH (brew install tesseract).

Inputs: source (required), max_frames, response_format.

video_search_transcriptSearch within transcriptA
Read-onlyIdempotent

Transcribe (or reuse captions) then return segments matching a query string (case-insensitive).

Useful for long videos: find when a topic is mentioned, then video_get_frame at that timestamp.

Inputs: query (required), source (required), language, response_format.

video_transcribeTranscribe video audioA
Read-onlyIdempotent

Timestamped transcript from captions (preferred) or local/cloud Whisper.

Order: sidecar .vtt/.srt → yt-dlp captions → whisper.cpp → whisper CLI → OpenAI Whisper API. Fast for YouTube (native captions). Local files need Whisper or a sidecar caption file.

Inputs: source (required), language, force_whisper, response_format.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 9 tools

    Disambiguation4/5

    Each tool has a clear primary role: analyze for full pipeline, transcribe for speech, ocr for text, frames for visuals, info for metadata, search for locating moments, and deps for setup. The only overlap is video_analyze, which combines several primitives, but its description explicitly directs when to use it, so agents should not be misled.

    Naming Consistency4/5

    All tools share the video_ prefix and use lowercase, underscore-separated action-oriented names such as video_extract_frames and video_get_frame_burst. The main deviation is video_info, which uses a noun rather than a verb, but the pattern is otherwise consistent.

    Tool Count5/5

    Nine tools is well-scoped for a video-processing MCP server. Each tool covers a distinct part of the video-understanding workflow, from dependency checking and metadata probing to transcription, OCR, frame extraction, and combined analysis, without unnecessary bloat.

    Completeness5/5

    The surface covers all major video analysis needs: metadata, transcripts, searching, frame extraction, OCR, and a one-shot summary. There are no obvious dead ends—dependencies are checked, and tools are designed to feed into each other (e.g., transcript timestamps to video_get_frame).

    Maintenance

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers