Video Understanding MCP
v1.0.2Let AI agents watch videos and answer questions about them through any OpenAI-compatible endpoint.
Values you need
| Variable | What it is | |
|---|---|---|
VIDEO_BASE_URL | required | Base URL of an OpenAI-compatible chat completions endpoint whose model accepts video, e.g. https://host/v1 |
VIDEO_MODEL | required | Model (or router alias) to send videos to |
VIDEO_API_KEY | optional secret | Endpoint API key, sent as a bearer token |
VIDEO_EXTRA_HEADERS | optional secret | Extra endpoint request headers as a JSON object, such as Cloudflare Access service-token headers |
VIDEO_PART_FORMAT | optional | How the video is attached: video_url, image_url, file, or input_file Default: image_url |
VIDEO_MAX_DURATION_SECONDS | optional | Longest analyzed range in seconds Default: 300 |
VIDEO_MAX_UPLOAD_MB | optional | Largest prepared video sent to the endpoint, in MB Default: 15 |
VIDEO_ALLOWED_DIRS | optional | Directories local files may be read from; local files are refused when unset |
VIDEO_VERIFY_MEDIA | optional | Fail calls when the endpoint evidently ignored the video Default: true |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add video-understanding-mcp -e 'VIDEO_BASE_URL=<VIDEO_BASE_URL>' -e 'VIDEO_MODEL=<VIDEO_MODEL>' -- npx -y @granitebps/video-understanding-mcp@1.0.2Add to
claude_desktop_config.json{
"mcpServers": {
"video-understanding-mcp": {
"args": [
"-y",
"@granitebps/video-understanding-mcp@1.0.2"
],
"command": "npx",
"env": {
"VIDEO_BASE_URL": "<VIDEO_BASE_URL>",
"VIDEO_MODEL": "<VIDEO_MODEL>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"video-understanding-mcp": {
"args": [
"-y",
"@granitebps/video-understanding-mcp@1.0.2"
],
"command": "npx",
"env": {
"VIDEO_BASE_URL": "<VIDEO_BASE_URL>",
"VIDEO_MODEL": "<VIDEO_MODEL>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "VIDEO_BASE_URL",
"id": "video-base-url",
"password": true,
"type": "promptString"
},
{
"description": "VIDEO_MODEL",
"id": "video-model",
"password": true,
"type": "promptString"
}
],
"servers": {
"video-understanding-mcp": {
"args": [
"-y",
"@granitebps/video-understanding-mcp@1.0.2"
],
"command": "npx",
"env": {
"VIDEO_BASE_URL": "${input:video-base-url}",
"VIDEO_MODEL": "${input:video-model}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.video-understanding-mcp]
command = "npx"
args = ["-y", "@granitebps/video-understanding-mcp@1.0.2"]
env = { "VIDEO_BASE_URL" = "<VIDEO_BASE_URL>", "VIDEO_MODEL" = "<VIDEO_MODEL>" }For AI agents
- Ask the user for: VIDEO_BASE_URL, VIDEO_MODEL. Never invent or guess these values; secrets go into the client config, not into chat logs.
- 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: understand_video, get_server_info.
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json