media-context (mctx)
v0.1.2Keep images, video & audio out of coding agent contexts — local FFmpeg + zero extra API cost.
Values you need
| Variable | What it is | |
|---|---|---|
MCTX_FALLBACK_CHAIN | optional | Optional comma-separated fallback chain, e.g. agy:gemini-4-neon-medium,claude:sonnet,codex |
MCTX_COOLDOWN_SECONDS | optional | Cooldown duration in seconds after quota/capacity failures (default: 300) |
PyPI (uvx) discovery passed
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add media-context -- uvx --from media-context==0.1.2 mctx mcpAdd to
claude_desktop_config.json{
"mcpServers": {
"media-context": {
"args": [
"--from",
"media-context==0.1.2",
"mctx",
"mcp"
],
"command": "uvx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"media-context": {
"args": [
"--from",
"media-context==0.1.2",
"mctx",
"mcp"
],
"command": "uvx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"media-context": {
"args": [
"--from",
"media-context==0.1.2",
"mctx",
"mcp"
],
"command": "uvx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.media-context]
command = "uvx"
args = ["--from", "media-context==0.1.2", "mctx", "mcp"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: media_probe, media_sheet, media_shrink, media_inspect, media_transcribe, media_stats.
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json