media-context-mcp

v0.1.4
io.github.vishalguptax/media-context-mcp Checked 4 days ago Published 5 months ago

Local 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…

ParameterTypeDescription
source *stringLocal media file path (video, audio, or image) OR an http(s) URL.
contextstringOptional note about the video to frame the analysis, e.g. 'signup flow, focus on the validation error'.
cropobjectRectangle 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%).
detailstringhigh = readable stills for screen recordings (frames + large scale + png); low = cheap montage. Overrides only the fields you leave unset.
detectJumpsbooleanTrack 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.
endSecnumberWindow end in seconds.
formatstringImage encoding. webp = smallest/fewest tokens (default); png = lossless for crisp text.
fpsnumberExplicit 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.
gridintegerTiles per row/column for sheet/scenes modes (grid x grid).
maxDurationSecnumberReject URL downloads longer than this many seconds.
maxFileSizeMbnumberAbort a URL download once it exceeds this size in MB.
maxFramesintegerUpper bound on sampled frames across the whole window.
modestringsheet = 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…
ocrbooleanExtract on-screen text via OCR — ideal for app/screen recordings. Implies detail:high unless set.
ocrLangstringTesseract language code(s) for OCR, e.g. 'eng' or 'eng+deu'.
ocrMaxFramesintegerFrames to OCR (sampled at full resolution, independent of the display images).
ocrPsmintegerTesseract page-segmentation mode. 3 = auto (default), 6 = uniform block, 11 = sparse/scattered UI labels.
scaleintegerWidth in px of each frame before tiling. Lower = fewer tokens.
sceneThresholdnumberScene-change sensitivity for 'scenes' mode (higher = fewer cuts).
startSecnumberWindow start in seconds.
stripRowsintegerTiles stacked per image in 'filmstrip' mode.
transcriptbooleanAlso run local Whisper to produce a speech transcript.
whisperModelstringWhisper model name (tiny, base, small, medium, large).