
Company News
AWS Security Hub Adds Socket for Supply Chain Security
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.
media-context-mcp
Advanced tools
Local MCP server to analyze video, audio & images — extract frames, transcribe speech, and OCR on-screen text. Lets Claude, Cursor & VS Code watch videos, read screen recordings, and transcribe audio. No API keys, no cloud.
Give your AI assistant eyes and ears — analyze any video, audio, or image, entirely on your machine.
Your assistant can read text and look at a picture, but it can't watch a video or listen to audio. media-context-mcp fills that gap. Point it at a file or a URL and it hands back clean, model-ready context — sampled frames, a transcript, or the text on screen — without sending anything to the cloud.
1. Add it to your MCP client. The launch command is always npx -y media-context-mcp.
claude mcp add media-context -- npx -y media-context-mcp
Settings → Developer → Edit Config (claude_desktop_config.json). The env block is optional — only needed if the transcription / text-recognition tools aren't on your PATH:
{
"mcpServers": {
"media-context": {
"command": "npx",
"args": ["-y", "media-context-mcp"],
"env": { "WHISPER_BIN": "/path/to/whisper", "TESSERACT_BIN": "/path/to/tesseract" }
}
}
}
Add to the client's MCP config (~/.cursor/mcp.json, ~/.codeium/windsurf/mcp_config.json, Cline settings, …):
{
"mcpServers": {
"media-context": { "command": "npx", "args": ["-y", "media-context-mcp"] }
}
}
Create .vscode/mcp.json — VS Code uses the servers key:
{
"servers": {
"media-context": { "command": "npx", "args": ["-y", "media-context-mcp"] }
}
}
~/.codex/config.toml:
[mcp_servers.media-context]
command = "npx"
args = ["-y", "media-context-mcp"]
2. Run setup — one command installs what the server needs via your OS package manager:
npx media-context-mcp setup # everything for files + URLs + text
npx media-context-mcp setup --audio # also enable transcription
check_media_deps shows what's ready at any time, and npx media-context-mcp setup --uninstall removes the tools again. Prefer to install by hand?
The package ships no binaries — it drives tools on your machine. Only ffmpeg is required; the rest are optional, one feature each.
| Tool | For | Install |
|---|---|---|
ffmpeg + ffprobe | required | winget install Gyan.FFmpeg · brew install ffmpeg · apt install ffmpeg |
yt-dlp | URLs | winget install yt-dlp.yt-dlp · brew install yt-dlp · pip install -U yt-dlp |
tesseract | on-screen text | winget install UB-Mannheim.TesseractOCR · brew install tesseract · apt install tesseract-ocr |
whisper | transcription | pip install -U openai-whisper |
Just ask your assistant in plain language — it picks the right options for you.
demo.mp4.” — a quick overview from sampled frames.bug.mp4?” — reads the on-screen text.standup.m4a and list the action items.” — speech to text.https://youtu.be/VIDEO_ID and include the transcript.” — fetches and transcribes.slider.mp4, find the frame where the slider flickers around 0:06.” — scans a dense burst of frames to catch a sub-second glitch.Want finer control — modes, cropping, language, sampling rate? It's all in the usage guide.
The server exposes two tools, which your assistant calls automatically.
| Tool | What it does |
|---|---|
analyze_media | Turn a video, audio, or image — file or URL — into model-readable context. Auto-detects the type: video → frames, stills, scene montages, or a dense filmstrip; audio → a transcript; image → the picture plus optional text recognition. Supports cropping, time windows, language, and sampling rate. |
check_media_deps | Report which optional capabilities (URL fetching, transcription, text recognition) are ready, with setup hints. |
Everything runs locally, and each call cleans up its temporary files when it returns.
Can Claude (or any LLM) watch a video? Not directly — models take images and text, not video. This server extracts frames and audio transcripts so your assistant can analyze the video.
How do I give Claude Code, Cursor, or VS Code video context? Add the server (see Install), then ask in plain language — it works in any MCP client.
Can it convert video or audio to text? Yes — it samples frames for the model to read and transcribes speech locally.
Does it work offline, without an API key? Yes. Everything runs on your machine; nothing is uploaded and no keys are required.
Does it support YouTube and other links? Yes — any yt-dlp-supported URL.
Is it free? Yes, open source under Apache-2.0.
npm install
npm run build
npm test
Tests cover the pipeline end-to-end; the integration ones skip themselves when the optional tools aren't installed. Issues and PRs welcome.
Apache-2.0 © Vishal Gupta. Free and open — use it however you like.
FAQs
Local MCP server to analyze video, audio & images — extract frames, transcribe speech, and OCR on-screen text. Lets Claude, Cursor & VS Code watch videos, read screen recordings, and transcribe audio. No API keys, no cloud.
We found that media-context-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.