Video Understanding MCP

v1.0.2
io.github.granitebps/video-understanding-mcp Checked 4 days ago Published 23 days ago

Let AI agents watch videos and answer questions about them through any OpenAI-compatible endpoint.

Values you need

VariableWhat it is
VIDEO_BASE_URLrequired Base URL of an OpenAI-compatible chat completions endpoint whose model accepts video, e.g. https://host/v1
VIDEO_MODELrequired Model (or router alias) to send videos to
VIDEO_API_KEYoptional secret Endpoint API key, sent as a bearer token
VIDEO_EXTRA_HEADERSoptional secret Extra endpoint request headers as a JSON object, such as Cloudflare Access service-token headers
VIDEO_PART_FORMAToptional How the video is attached: video_url, image_url, file, or input_file Default: image_url
VIDEO_MAX_DURATION_SECONDSoptional Longest analyzed range in seconds Default: 300
VIDEO_MAX_UPLOAD_MBoptional Largest prepared video sent to the endpoint, in MB Default: 15
VIDEO_ALLOWED_DIRSoptional Directories local files may be read from; local files are refused when unset
VIDEO_VERIFY_MEDIAoptional 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.2
Add 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

  1. 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.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: understand_video, get_server_info.
  5. 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