mcp-video-analyzer

v0.12.1
mcp-video-analyzer Checked 15 hours ago Published 1 day ago

MCP server for video analysis — extracts transcripts, key frames, OCR text, and metadata from video URLs and local files.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

analyze_video

Analyze a video URL to extract transcript, key frames, metadata, comments, OCR text, and annotated timeline. Returns structured data about the video content: - Transcript with timestamps and speakers - Key frames extracted via scene-change detection plus gap-filling frames, so the whole video is covered (deduplicated, as images). Static clips (e.g. talking-head Reels/Stories where only on-screen text changes) are sampled uniformly. - OCR text extracted from frames (code, error messages, UI text, prices/dates/CTAs visible on screen) - Annotated timeline merging transcript + frames + OCR into a…

ParameterTypeDescription
url *stringVideo source: Loom share link, platform video URL (YouTube, Vimeo, TikTok, Instagram, X, Twitch, Dailymotion, Facebook), direct .mp4/.webm/.mov URL, or absolute path to a local video file
optionsobjectAnalysis options

analyze_videos

Batch-analyze many videos in one call, with a concurrency limit and per-item results. For each source it runs the same pipeline as analyze_video (frames + OCR + transcript + timeline), reusing the shared cache and on-disk sidecars. Designed for processing a corpus of local files: pair it with MCP_WRITE_SIDECARS=1 so results persist next to each video and a re-run resumes instead of recomputing. Returns a JSON summary plus one structured entry per source: - ok=true → title, duration, frameCount, ocrCount, transcriptEntries, warnings - ok=false → the error message for that specific video (…

ParameterTypeDescription
sources *arrayVideo sources to analyze in one batch (Loom URLs, platform video URLs like YouTube, direct video URLs, or local paths).
concurrencyintegerHow many videos to analyze in parallel (default: 2). Frame extraction + OCR are CPU-heavy — raise cautiously.
optionsobjectAnalysis options applied to every source

get_frame_at

Extract a single video frame at a specific timestamp. Useful for inspecting what's on screen at a particular moment. The AI reads the transcript, identifies a critical moment, and requests the exact frame at that timestamp. Supports: Loom (loom.com/share/...), YouTube/Vimeo/TikTok/Instagram/X/Twitch/Dailymotion/Facebook (requires yt-dlp), direct video URLs (.mp4, .webm, .mov), and local video files (absolute path or file:// URI). Args: - url: Video source (URL or local path) - timestamp: Time position (e.g., "1:23", "0:05", "01:23:45") Returns: A single image of the video frame at the…

ParameterTypeDescription
timestamp *stringTimestamp to extract frame at (e.g., "1:23", "0:05", "01:23:45")
url *stringVideo source: Loom share link, platform video URL (YouTube, Vimeo, TikTok, Instagram, X, Twitch, Dailymotion, Facebook), direct .mp4/.webm/.mov URL, or absolute path to a local video file
maxWidthintegerWidth cap for returned frames, in pixels; 0 keeps the source resolution. Defaults to 800 (or MCP_FRAME_MAX_WIDTH). Raise it when the video is a screen recording whose meaning lives in small text — t…
returnBase64booleanReturn frame as base64 inline instead of file path

get_frame_burst

Extract up to the requested number of source frames across a time range. Designed for motion and vibration analysis where scene-change detection fails because the "scene" doesn't change — only the position/state of objects does. Example: get_frame_burst(url, "0:15", "0:17", 10) → 10 frames in 2 seconds - AI sees the object in different positions across frames → understands the vibration - Works for: shaking, flickering, animations, fast scrolling, loading spinners Supports: Loom (loom.com/share/...), YouTube/Vimeo/TikTok/Instagram/X/Twitch/Dailymotion/Facebook (requires yt-dlp), direc…

ParameterTypeDescription
from *stringStart timestamp (e.g., "0:15")
to *stringEnd timestamp (e.g., "0:17")
url *stringVideo source: Loom share link, platform video URL (YouTube, Vimeo, TikTok, Instagram, X, Twitch, Dailymotion, Facebook), direct .mp4/.webm/.mov URL, or absolute path to a local video file
countnumberNumber of frames to extract (default: 5)
maxWidthintegerWidth cap for returned frames, in pixels; 0 keeps the source resolution. Defaults to 800 (or MCP_FRAME_MAX_WIDTH). Raise it when the video is a screen recording whose meaning lives in small text — t…
returnBase64booleanReturn frames as base64 inline instead of file paths

get_transcript

Extract only the transcript from a video URL. Returns timestamped transcript entries with speaker identification (when available). Faster than analyze_video when you only need the transcript. If the platform has no native transcript, attempts Whisper fallback transcription (requires @huggingface/transformers, whisper CLI, or OPENAI_API_KEY). Supports: Loom (loom.com/share/...), YouTube/Vimeo/TikTok/Instagram/X/Twitch/Dailymotion/Facebook (requires yt-dlp; native captions preferred), direct video URLs (.mp4, .webm, .mov), and local video files (absolute path or file:// URI). For local files…

ParameterTypeDescription
url *stringVideo source: Loom share link, platform video URL (YouTube, Vimeo, TikTok, Instagram, X, Twitch, Dailymotion, Facebook), direct .mp4/.webm/.mov URL, or absolute path to a local video file
optionsobjectTranscription overrides (apply only to the Whisper fallback)

get_metadata

Get video metadata, comments, chapters, and AI summary from a video URL. Returns structured metadata without downloading the video or extracting frames. Faster than analyze_video when you only need metadata. Supports: Loom (loom.com/share/...), YouTube/Vimeo/TikTok/Instagram/X/Twitch/Dailymotion/Facebook (requires yt-dlp), direct video URLs (.mp4, .webm, .mov), and local video files (absolute path or file:// URI).

ParameterTypeDescription
url *stringVideo source: Loom share link, platform video URL (YouTube, Vimeo, TikTok, Instagram, X, Twitch, Dailymotion, Facebook), direct .mp4/.webm/.mov URL, or absolute path to a local video file

get_frames

Extract key frames from a video URL without transcript or metadata. Two extraction modes: - Scene-change detection (default): captures visual transitions, plus gap-filling frames so the whole video is covered - Dense sampling (dense=true): captures 1 frame/sec for full video coverage Returns optimized, deduplicated JPEG frames. Supports: Loom (loom.com/share/...), YouTube/Vimeo/TikTok/Instagram/X/Twitch/Dailymotion/Facebook (requires yt-dlp), direct video URLs (.mp4, .webm, .mov), and local video files (absolute path or file:// URI).

ParameterTypeDescription
url *stringVideo source: Loom share link, platform video URL (YouTube, Vimeo, TikTok, Instagram, X, Twitch, Dailymotion, Facebook), direct .mp4/.webm/.mov URL, or absolute path to a local video file
optionsobject

analyze_moment

Deep-dive analysis of a specific time range in a video. Combines burst frame extraction + transcript filtering + OCR + annotated timeline for a focused segment of the video. Use this when you need to understand exactly what happens between two timestamps: - What's on screen (frames + OCR text extraction) - What's being said (transcript filtered to the range) - Unified timeline merging visual and audio content Example: analyze_moment(url, "1:30", "2:00", 10) → 10 frames + transcript + OCR for that 30s window Supports: Loom (loom.com/share/...), YouTube/Vimeo/TikTok/Instagram/X/Twitch/Dail…

ParameterTypeDescription
from *stringStart timestamp (e.g., "1:30")
to *stringEnd timestamp (e.g., "2:00")
url *stringVideo source: Loom share link, platform video URL (YouTube, Vimeo, TikTok, Instagram, X, Twitch, Dailymotion, Facebook), direct .mp4/.webm/.mov URL, or absolute path to a local video file
countnumberNumber of frames to extract in the range (default: 10)
maxWidthintegerWidth cap for returned frames, in pixels; 0 keeps the source resolution. Defaults to 800 (or MCP_FRAME_MAX_WIDTH). Raise it when the video is a screen recording whose meaning lives in small text — t…
ocrLanguagestringTesseract OCR language codes (default: "eng+por"). Use "+" to combine: "eng+spa", "eng+fra+deu".