SuperAPIAI Directory

mcp-video-analyzer

github.com · AI video

Video analysis: extract transcripts, key frames, OCR text and annotated timelines from Loom links and direct MP4 or WebM files.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

Purpose

mcp-video-analyzer is an MCP (Model Context Protocol) server whose goal is to convert any video—including Loom, yt-dlp platforms such as YouTube/Vimeo/TikTok/Instagram/X/Twitch/Dailymotion/Facebook, direct-link video URLs, and local files—into transcripts, keyframes, OCR text, and metadata for use by AI agents. According to the documentation, there is currently no other video MCP that can combine transcripts, visual frames, and metadata in the same tool.

Main capabilities

The server provides eight tools, and the AI automatically selects the most economical one to call:

  • analyze_video: Extracts all content from a video URL in a single call, including timestamped and speaker-labeled transcripts, keyframes extracted via scene change detection (automatically deduplicated), OCR text on frames, an annotated timeline combining transcript + frames + OCR, metadata (title, duration, platform), viewer comments, chapters, and an AI summary (if available). Parameters include detail (analysis depth brief/standard/detailed), fields (specify returned fields), maxFrames (1-60), threshold (scene change sensitivity, default 0.1), forceRefresh, skipFrames, and per-call Whisper overrides for model/language/initialPrompt.
  • analyze_videos: Runs analysis on a batch of sources with a concurrency limit (default 2), returning structured results for each source; a single failure does not interrupt the entire batch.
  • get_transcript: Quickly extracts the transcript, falling back to Whisper when there is no native transcript.
  • get_metadata: Returns metadata, comments, chapters, and AI summary without downloading the video.
  • Frame extraction supports scene change detection (default) and dense sampling (dense: true, 1 frame per second).
  • segment analysis: Combines burst frame extraction + filtered transcript + OCR + annotated timeline to understand what happens at a specific moment.
  • burst mode: Captures N frames within a narrow window for motion, vibration, animation, or fast scrolling.

Results are cached inmemory for 10 minutes, and the same URL and options can be returned instantly; forceRefresh can bypass the cache.

How to use

There are three ways to integrate:

  1. Claude Code's /video plugin (recommended): Adds the /video slash command and automatically registers the MCP server, with no need for claude mcp add.
  2. Standard MCP server configuration: Suitable for any MCP client, and can be configured for VS Code, Cursor, Claude Desktop, etc.; Claude Code can also use only the MCP approach.
  3. Portable skill + CLI: Suitable for Codex, Cursor, Copilot, Gemini CLI, and any agent with a shell, without requiring MCP. The CLI outputs a single JSON document in one command, containing metadata, transcript, ocrResults, timeline, warnings, frameCount, and frames entries; progress is output to stderr, and stdout can be piped directly to a JSON parser.

Runtime requirements: Node.js 22.12+ (run the server via npx); yt-dlp for YouTube/Vimeo/TikTok/Instagram/X/Twitch/Dailymotion/Facebook URLs (optional in other cases, but it can improve Loom download quality), installation command pip install yt-dlp; Chrome/Chromium is optional, serving as a fallback for frame extraction when yt-dlp is unavailable. Without yt-dlp or Chrome, direct-link URLs and local files can still have frames extracted (handled by the built-in ffmpeg-static), Loom falls back to downloading from its own CDN; platform URLs will give a clear "install yt-dlp" warning. Transcription, metadata, and comments do not depend on either of these.

Supported sources

  • Loom: Transcription, metadata, and comments come directly from the Loom API; frame extraction requires yt-dlp to fetch and merge DASH video+audio streams, with merging done using the built-in ffmpeg-static.
  • Local files: An absolute path or file:// URI must be passed in; relative paths are rejected. Supports .mp4 .mov .mkv .webm .avi .m4v .wmv .flv .mpeg .mpg .m2ts .mts .3gp .ogv, with .ts excluded.
  • Sidecar transcripts: clip.vtt, clip.srt, etc. placed next to the video will automatically be used as the transcript, with SRT converted to VTT in memory.
  • Embedded subtitles: When the container has an embedded subtitle stream, it is converted to VTT via ffmpeg for use.
  • Platform URLs: A single video page is processed via yt-dlp; playlists, channels, and profile pages are rejected. Transcription preferentially uses native subtitles (uploaded subtitles take priority, automatic subtitles as fallback, merging rolling-window duplicates); downloads are capped at 1080p, and live streams are skipped. Instagram and age-restricted videos usually require login cookies.

Use cases

Per-video analysis within an agent; with MCP_WRITE_SIDECARS=1, results can be persisted locally next to the video, enabling analyze_videos processing of thousands of files to be resumable, and allowing external GPU transcription pipelines to share results via the filesystem. The materials mention that social-knowledge-base is built on top of this server, used to download an entire Instagram creator account and turn it into a searchable RAG knowledge base.

Limitations

  • Network targets allow only http:// and https:// and only public addresses; loopback addresses, private/LAN ranges, link-local, CGNAT, .local mDNS names, Windows UNC paths and non-HTTP schemes (ftp://, data:) are rejected. Checks are performed at address resolution time, and every redirect hop is rechecked. Cloud instance metadata endpoints are always blocked. Known limitation: DNS rebinding is not covered (addresses are checked at resolution time rather than connection time); if this threat model matters to you, an egress proxy should be deployed.
  • Local file paths must be absolute, and the caller can request any file accessible to the server process.
  • Partial failures are recorded in warnings and exit with code 0; only hard failures exit with code 1.
  • The cache is located in the per-user cache directory; setting MCP_CACHE_DIR can relocate it; frame directories are created with 0700 and are not automatically cleaned up.

Optional features

After setting the TWELVELABS_API_KEY environment variable, TwelveLabs Pegasus can be used to analyze direct-link video URLs, with the server analyzing the video (visuals and audio) and returning AI-generated timestamped transcription and AI summary. The materials note that Pegasus transcription is best-effort LLM output, not a deterministic ASR dump; lines that do not conform to the [MM:SS] line format are discarded; failures appear in warnings rather than silently returning an empty transcript. This benefits plain-text paths the most: get_transcript and get_metadata can return Pegasus transcription and summary for direct-link URLs.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools