Skip to main content
Glama

LLMs read text and glance at a single image — but they can't watch a video or listen to audio. media-context-mcp closes that gap. Hand it a file or a link and it returns clean, model-ready context — keyframes, a transcript, or the text on screen — entirely on your machine. Nothing is uploaded.

🚀 Install

Two steps — add the server, then install the local helpers it uses.

1 · Add the server to your client

# Claude Code
claude mcp add media-context -- npx -y media-context-mcp

The launch command is always npx -y media-context-mcp. Pick your client:

Settings → Developer → Edit Config (claude_desktop_config.json):

{
  "mcpServers": {
    "media-context": { "command": "npx", "args": ["-y", "media-context-mcp"] }
  }
}

~/.cursor/mcp.json (global) or .cursor/mcp.json (per-project):

{
  "mcpServers": {
    "media-context": { "command": "npx", "args": ["-y", "media-context-mcp"] }
  }
}

.vscode/mcp.json — VS Code uses the servers key:

{
  "servers": {
    "media-context": { "command": "npx", "args": ["-y", "media-context-mcp"] }
  }
}

~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "media-context": { "command": "npx", "args": ["-y", "media-context-mcp"] }
  }
}

cline_mcp_settings.json (the extension's MCP settings):

{
  "mcpServers": {
    "media-context": { "command": "npx", "args": ["-y", "media-context-mcp"] }
  }
}

.kiro/settings/mcp.json (project) or ~/.kiro/settings/mcp.json (user):

{
  "mcpServers": {
    "media-context": { "command": "npx", "args": ["-y", "media-context-mcp"] }
  }
}

~/.gemini/settings.json:

{
  "mcpServers": {
    "media-context": { "command": "npx", "args": ["-y", "media-context-mcp"] }
  }
}

settings.json — Zed uses context_servers:

{
  "context_servers": {
    "media-context": { "command": { "path": "npx", "args": ["-y", "media-context-mcp"] } }
  }
}

~/.codex/config.toml:

[mcp_servers.media-context]
command = "npx"
args = ["-y", "media-context-mcp"]

Settings → Tools → AI Assistant → Model Context Protocol → Add, then use command npx with args -y media-context-mcp.

Tip: in Claude Code you can install it as a plugin instead — run /plugin marketplace add vishalguptax/media-context-mcp, then /plugin install media-context. To share with a team, install per-project: --scope project (writes .mcp.json) or commit a .cursor/mcp.json in the repo.

2 · Install the local helpers

One command sets up everything the server uses, via your OS package manager:

npx media-context-mcp setup          # core: keyframes, links, on-screen text
npx media-context-mcp setup --audio  # also enable transcription

The server finds the helpers automatically afterward — no extra configuration. Run check_media_deps to see what's ready, and setup --uninstall to remove them. (Install by hand →)

3 · Ask

“Summarize demo.mp4.”

Related MCP server: klaket-mcp

✨ Capabilities

Video

Keyframe overview, full-size stills, scene detection, or a dense filmstrip that catches split-second glitches

Audio

Speech turned into text — clips, voice notes, meetings, podcasts

Images

The picture, plus the exact text shown on screen

Anywhere

Local files or links — YouTube, Vimeo, and 1000+ sites

Private

Runs on your machine. No API keys, no uploads

Efficient

A long clip becomes a couple of images, not hundreds

🎞️ Modes

analyze_media auto-detects audio and images. For video, choose how frames are sampled:

Mode

Best for

sheet (default)

A cheap overview — frames tiled into one or two contact sheets

frames

Detail on specific moments — individual full-size stills

scenes

Slide decks & static screencasts — only scene-change frames

filmstrip

Catching a sub-second UI glitch — a dense, near-native-rate strip

💬 Examples

Just ask in plain language — the assistant picks the right options.

You ask

What you get

“Summarize demo.mp4.”

A quick overview from sampled keyframes

“What error does bug.mp4 show at the end?”

The exact on-screen text, read back

“Walk me through the UI flow in onboarding.mov.”

Step-by-step from scene-change frames

“Transcribe standup.m4a and list action items.”

A local transcript

“Summarize https://youtu.be/… with the transcript.”

Fetched and transcribed

“Read the error in this screenshot crash.png.”

The picture plus its exact text

“Find where the slider in ui.mp4 flickers ~0:06.”

The exact frame of a sub-second glitch

🧰 Tools

Tool

What it does

analyze_media

Turn a video, audio, or image — file or URL — into model-readable context. Auto-detects the type and supports cropping, time windows, language, and sampling rate.

check_media_deps

Report which capabilities are ready on this machine.

Every call runs locally and cleans up after itself.

⚙️ Options

Your assistant fills these in for you, but you can steer it (“use filmstrip mode”, “crop to the toolbar”).

Param

Default

Description

source

Local file path (video/audio/image) or http(s) URL

context

A note framing the analysis; echoed atop the summary

detail

high = readable stills for screen recordings; low = cheap overview

mode

sheet

sheet · frames · scenes · filmstrip

format

webp

webp (smallest) · jpeg · png (crisp text)

maxFrames

30

Upper bound on sampled frames

grid

5

Tiles per row/column for contact-sheet modes

scale

320

Per-frame width in px — lower = fewer tokens

sceneThreshold

0.4

Scene-change sensitivity (scenes mode)

fps

auto

Explicit sampling rate; pair high with filmstrip

crop

{x,y,width,height} (pixels, or 0–1 fractions) to zoom a region

stripRows

18

Tiles per image in filmstrip mode

startSec / endSec

Restrict to a time window

transcript

false

Also produce a transcript (video)

whisperModel

small

tiny · base · small · medium · large

ocr

false

Extract on-screen text

ocrLang

eng

Language code(s), e.g. eng+deu

ocrPsm

3

Page-segmentation: 3 auto · 6 block · 11 sparse

detectJumps

false

Track an on-screen number and report jump-back glitches with timestamps

maxDurationSec

3600

Reject URL downloads longer than this

maxFileSizeMb

500

Abort a URL download past this size

Worked recipes for each are in the usage guide.

❓ FAQ

Can an LLM watch a video? Not directly — models take images and text, not video. This server turns the video into frames and a transcript it can read.

Does anything get uploaded? No. Everything runs on your machine; no keys, no cloud.

Which clients work? Any MCP client — Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, Cline, Kiro, Gemini CLI, JetBrains, Zed, Codex.

Does it handle YouTube and other links? Yes.

How much does it cost? It's free and open source.

📋 Requirements

Node.js 18+, on Windows, macOS, or Linux. The one-time npx media-context-mcp setup installs everything else.

🛠️ Development

npm install
npm run build
npm test

Issues and PRs welcome — see the usage guide for the architecture.

📄 License

Apache-2.0 © Vishal Gupta

Available Tools

2 tools
analyze_mediaAnalyze a video, audio, or image file or URLA

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 you can spot a frame whose value disagrees with the visual. Use the cheap default for everything else. Pass context to frame the analysis.

ParametersJSON Schema
NameRequiredDescriptionDefault
sourceYesLocal media file path (video, audio, or image) OR an http(s) URL.
contextNoOptional note about the video to frame the analysis, e.g. 'signup flow, focus on the validation error'.
detailNohigh = readable stills for screen recordings (frames + large scale + png); low = cheap montage. Overrides only the fields you leave unset.
modeNosheet = 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 with a narrow startSec/endSec window, fps, and crop).sheet
formatNoImage encoding. webp = smallest/fewest tokens (default); png = lossless for crisp text.webp
maxFramesNoUpper bound on sampled frames across the whole window.
gridNoTiles per row/column for sheet/scenes modes (grid x grid).
scaleNoWidth in px of each frame before tiling. Lower = fewer tokens.
sceneThresholdNoScene-change sensitivity for 'scenes' mode (higher = fewer cuts).
fpsNoExplicit 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.
cropNoRectangle 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%).
stripRowsNoTiles stacked per image in 'filmstrip' mode.
startSecNoWindow start in seconds.
endSecNoWindow end in seconds.
transcriptNoAlso run local Whisper to produce a speech transcript.
whisperModelNoWhisper model name (tiny, base, small, medium, large).small
ocrNoExtract on-screen text via OCR — ideal for app/screen recordings. Implies detail:high unless set.
ocrLangNoTesseract language code(s) for OCR, e.g. 'eng' or 'eng+deu'.eng
ocrPsmNoTesseract page-segmentation mode. 3 = auto (default), 6 = uniform block, 11 = sparse/scattered UI labels.
ocrMaxFramesNoFrames to OCR (sampled at full resolution, independent of the display images).
detectJumpsNoTrack 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.
maxDurationSecNoReject URL downloads longer than this many seconds.
maxFileSizeMbNoAbort a URL download once it exceeds this size in MB.

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description carries full burden. It discloses local processing, no paid APIs, and default behaviors for modes. However, it could be more explicit about output format (e.g., what the tool returns) and potential side effects like file generation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with a clear summary, media-type breakdown, and use-case examples. It is detailed but not excessively long. Minor redundancy could be trimmed, but overall efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (23 params, no output schema), the description covers most aspects: purpose, mode usage, parameter guidance, and example workflows. It lacks explicit description of the output format (e.g., what is returned as 'context'), but the 'compact context' phrasing implies model-readable text/images.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

While schema coverage is 100%, the description adds significant value by explaining parameter interactions (e.g., crop + filmstrip, fps + filmstrip) and providing concrete examples for transient glitch detection. It clarifies that detail overrides unset fields and that OCR implies detail:high unless set.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool converts local media files or URLs into compact context for models, covering video, audio, and image. It distinguishes video modes (sheet, frames, scenes, filmstrip) and provides specific use-case examples, effectively differentiating from sibling tool check_media_deps.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit guidance for when to use specific modes: 'For app/screen recordings use detail:'high' + ocr:true', 'To catch a transient UI glitch ... use mode:'filmstrip' with ...', 'Use the cheap default for everything else.' Also advises to 'Pass context to frame the analysis.'

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

check_media_depsCheck media tool dependenciesA

Report which external binaries (ffmpeg, ffprobe, yt-dlp, whisper, tesseract) are available. Call this first if analyze_media fails with a missing-binary error.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden. It clearly states the tool is a read-only diagnostic check. It does not mention any destructive behavior, which is appropriate. A minor gap is the lack of details about the output format, but for a simple reporting tool this is sufficient.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, no wasted words. The first sentence states the purpose, the second gives usage guidance. Front-loaded and efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (no parameters, no output schema), the description is complete. It explains what it does and when to use it. No additional information is needed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has zero parameters, and schema description coverage is 100% by default. The description adds value by listing the specific binaries checked, which provides context beyond the empty schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb 'Report' and clearly identifies the resource: availability of external binaries (ffmpeg, ffprobe, yt-dlp, whisper, tesseract). It also distinguishes itself from the sibling tool 'analyze_media' by providing a usage context.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly states 'Call this first if analyze_media fails with a missing-binary error.' This provides clear guidance on when to use this tool and implies when not to use it (when no error occurs).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 2 tool updatesv0.1.3
    • First observedanalyze_media
    • First observedcheck_media_deps

TDQS

A4.7/5.0
Disambiguation5/5

The two tools have completely distinct purposes: analyze_media handles media content analysis, while check_media_deps checks for required external binaries. There is no overlap or ambiguity.

Naming Consistency5/5

Both tool names follow a consistent verb_noun pattern using snake_case (analyze_media, check_media_deps), making them predictable and easy to understand.

Tool Count4/5

With only two tools, the set is minimal but appropriate for a focused utility server. The main tool is comprehensive, and the second tool provides essential support. A slightly larger set might allow more granular operations, but the current count is not problematic.

Completeness5/5

The analyze_media tool covers video, audio, and image analysis comprehensively with multiple modes and options. The check_media_deps tool fills the essential dependency-checking role. No obvious gaps are present for the server's stated purpose.

Maintenance

ActivityStale
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vishalguptax/media-context-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server