media-context-mcp
v0.1.4Local MCP server to analyze video, audio & images: frames, transcripts, on-screen text.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
check_media_deps Check media tool dependencies
Report which external binaries (ffmpeg, ffprobe, yt-dlp, whisper, tesseract) are available. Call this first if analyze_media fails with a missing-binary error.
analyze_media Analyze a video, audio, or image file or URL
Turn a local media file or URL (video, audio, or image) into compact context a model can read — fully local, no paid APIs. Video: montage frames (mode 'sheet', cheapest default), individual stills ('frames'), or scene changes ('scenes'); add transcript and/or ocr. Audio: speech transcript. Image: the picture plus optional OCR. For app/screen recordings use detail:'high' + ocr:true. To catch a transient UI glitch (a flicker/jump lasting <1s), use mode:'filmstrip' with a narrow startSec/endSec window, a high fps (10–15), and a crop around the affected control — it stacks dense frames so yo…
| Parameter | Type | Description |
|---|---|---|
source * | string | Local media file path (video, audio, or image) OR an http(s) URL. |
context | string | Optional note about the video to frame the analysis, e.g. 'signup flow, focus on the validation error'. |
crop | object | Rectangle to crop before sampling — zoom into a UI region for sharper frames/OCR. Pixels, or fractions 0–1 of the frame (e.g. {x:0,y:0.7,width:1,height:0.3} = bottom 30%). |
detail | string | high = readable stills for screen recordings (frames + large scale + png); low = cheap montage. Overrides only the fields you leave unset. |
detectJumps | boolean | Track the on-screen number (e.g. a slider %) across frames and report non-monotonic 'jump-back' glitches with timestamps. Pair with a crop around the value and a narrow window for best results. |
endSec | number | Window end in seconds. |
format | string | Image encoding. webp = smallest/fewest tokens (default); png = lossless for crisp text. |
fps | number | Explicit sampling rate (frames/sec); overrides the auto rate for sheet/frames/filmstrip. Use a high value (e.g. 10–15) with filmstrip to catch sub-second glitches. |
grid | integer | Tiles per row/column for sheet/scenes modes (grid x grid). |
maxDurationSec | number | Reject URL downloads longer than this many seconds. |
maxFileSizeMb | number | Abort a URL download once it exceeds this size in MB. |
maxFrames | integer | Upper bound on sampled frames across the whole window. |
mode | string | sheet = montage grids (cheapest, default); frames = individual stills; scenes = only scene-change montages; filmstrip = dense near-native-fps vertical strip for catching transient UI glitches (pair wi… |
ocr | boolean | Extract on-screen text via OCR — ideal for app/screen recordings. Implies detail:high unless set. |
ocrLang | string | Tesseract language code(s) for OCR, e.g. 'eng' or 'eng+deu'. |
ocrMaxFrames | integer | Frames to OCR (sampled at full resolution, independent of the display images). |
ocrPsm | integer | Tesseract page-segmentation mode. 3 = auto (default), 6 = uniform block, 11 = sparse/scattered UI labels. |
scale | integer | Width in px of each frame before tiling. Lower = fewer tokens. |
sceneThreshold | number | Scene-change sensitivity for 'scenes' mode (higher = fewer cuts). |
startSec | number | Window start in seconds. |
stripRows | integer | Tiles stacked per image in 'filmstrip' mode. |
transcript | boolean | Also run local Whisper to produce a speech transcript. |
whisperModel | string | Whisper model name (tiny, base, small, medium, large). |