Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-granitebps-video-understanding-mcp": {
"command": "npx",
"args": [
"-y",
"@granitebps/video-understanding-mcp"
],
"env": {
"VIDEO_BASE_URL": "<VALUE>",
"VIDEO_MODEL": "<VALUE>",
"VIDEO_API_KEY": "<YOUR_VALUE>",
"VIDEO_EXTRA_HEADERS": "<YOUR_VALUE>",
"VIDEO_PART_FORMAT": "image_url",
"VIDEO_MAX_DURATION_SECONDS": "300",
"VIDEO_MAX_UPLOAD_MB": "15",
"VIDEO_ALLOWED_DIRS": "<VALUE>",
"VIDEO_VERIFY_MEDIA": "true",
"VIDEO_YTDLP_PATH": "yt-dlp",
"VIDEO_FFMPEG_PATH": "ffmpeg",
"VIDEO_FFPROBE_PATH": "ffprobe",
"VIDEO_MAX_CONCURRENCY": "2",
"VIDEO_MAX_DOWNLOAD_MB": "500",
"VIDEO_MAX_OUTPUT_TOKENS": "8192",
"VIDEO_REQUEST_TIMEOUT_MS": "180000",
"VIDEO_ALLOW_PRIVATE_NETWORK": "false"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-granitebps-video-understanding-mcp": {
"command": "npx",
"args": [
"-y",
"@granitebps/video-understanding-mcp"
],
"env": {
"VIDEO_BASE_URL": "<VALUE>",
"VIDEO_MODEL": "<VALUE>",
"VIDEO_API_KEY": "<YOUR_VALUE>",
"VIDEO_EXTRA_HEADERS": "<YOUR_VALUE>",
"VIDEO_PART_FORMAT": "image_url",
"VIDEO_MAX_DURATION_SECONDS": "300",
"VIDEO_MAX_UPLOAD_MB": "15",
"VIDEO_ALLOWED_DIRS": "<VALUE>",
"VIDEO_VERIFY_MEDIA": "true",
"VIDEO_YTDLP_PATH": "yt-dlp",
"VIDEO_FFMPEG_PATH": "ffmpeg",
"VIDEO_FFPROBE_PATH": "ffprobe",
"VIDEO_MAX_CONCURRENCY": "2",
"VIDEO_MAX_DOWNLOAD_MB": "500",
"VIDEO_MAX_OUTPUT_TOKENS": "8192",
"VIDEO_REQUEST_TIMEOUT_MS": "180000",
"VIDEO_ALLOW_PRIVATE_NETWORK": "false"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-granitebps-video-understanding-mcp": {
"command": "npx",
"args": [
"-y",
"@granitebps/video-understanding-mcp"
],
"env": {
"VIDEO_BASE_URL": "<VALUE>",
"VIDEO_MODEL": "<VALUE>",
"VIDEO_API_KEY": "<YOUR_VALUE>",
"VIDEO_EXTRA_HEADERS": "<YOUR_VALUE>",
"VIDEO_PART_FORMAT": "image_url",
"VIDEO_MAX_DURATION_SECONDS": "300",
"VIDEO_MAX_UPLOAD_MB": "15",
"VIDEO_ALLOWED_DIRS": "<VALUE>",
"VIDEO_VERIFY_MEDIA": "true",
"VIDEO_YTDLP_PATH": "yt-dlp",
"VIDEO_FFMPEG_PATH": "ffmpeg",
"VIDEO_FFPROBE_PATH": "ffprobe",
"VIDEO_MAX_CONCURRENCY": "2",
"VIDEO_MAX_DOWNLOAD_MB": "500",
"VIDEO_MAX_OUTPUT_TOKENS": "8192",
"VIDEO_REQUEST_TIMEOUT_MS": "180000",
"VIDEO_ALLOW_PRIVATE_NETWORK": "false"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-granitebps-video-understanding-mcp": {
"command": "npx",
"args": [
"-y",
"@granitebps/video-understanding-mcp"
],
"env": {
"VIDEO_BASE_URL": "<VALUE>",
"VIDEO_MODEL": "<VALUE>",
"VIDEO_API_KEY": "<YOUR_VALUE>",
"VIDEO_EXTRA_HEADERS": "<YOUR_VALUE>",
"VIDEO_PART_FORMAT": "image_url",
"VIDEO_MAX_DURATION_SECONDS": "300",
"VIDEO_MAX_UPLOAD_MB": "15",
"VIDEO_ALLOWED_DIRS": "<VALUE>",
"VIDEO_VERIFY_MEDIA": "true",
"VIDEO_YTDLP_PATH": "yt-dlp",
"VIDEO_FFMPEG_PATH": "ffmpeg",
"VIDEO_FFPROBE_PATH": "ffprobe",
"VIDEO_MAX_CONCURRENCY": "2",
"VIDEO_MAX_DOWNLOAD_MB": "500",
"VIDEO_MAX_OUTPUT_TOKENS": "8192",
"VIDEO_REQUEST_TIMEOUT_MS": "180000",
"VIDEO_ALLOW_PRIVATE_NETWORK": "false"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-granitebps-video-understanding-mcp": {
"command": "npx",
"args": [
"-y",
"@granitebps/video-understanding-mcp"
],
"env": {
"VIDEO_BASE_URL": "<VALUE>",
"VIDEO_MODEL": "<VALUE>",
"VIDEO_API_KEY": "<YOUR_VALUE>",
"VIDEO_EXTRA_HEADERS": "<YOUR_VALUE>",
"VIDEO_PART_FORMAT": "image_url",
"VIDEO_MAX_DURATION_SECONDS": "300",
"VIDEO_MAX_UPLOAD_MB": "15",
"VIDEO_ALLOWED_DIRS": "<VALUE>",
"VIDEO_VERIFY_MEDIA": "true",
"VIDEO_YTDLP_PATH": "yt-dlp",
"VIDEO_FFMPEG_PATH": "ffmpeg",
"VIDEO_FFPROBE_PATH": "ffprobe",
"VIDEO_MAX_CONCURRENCY": "2",
"VIDEO_MAX_DOWNLOAD_MB": "500",
"VIDEO_MAX_OUTPUT_TOKENS": "8192",
"VIDEO_REQUEST_TIMEOUT_MS": "180000",
"VIDEO_ALLOW_PRIVATE_NETWORK": "false"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-granitebps-video-understanding-mcp": {
"command": "npx",
"args": [
"-y",
"@granitebps/video-understanding-mcp"
],
"env": {
"VIDEO_BASE_URL": "<VALUE>",
"VIDEO_MODEL": "<VALUE>",
"VIDEO_API_KEY": "<YOUR_VALUE>",
"VIDEO_EXTRA_HEADERS": "<YOUR_VALUE>",
"VIDEO_PART_FORMAT": "image_url",
"VIDEO_MAX_DURATION_SECONDS": "300",
"VIDEO_MAX_UPLOAD_MB": "15",
"VIDEO_ALLOWED_DIRS": "<VALUE>",
"VIDEO_VERIFY_MEDIA": "true",
"VIDEO_YTDLP_PATH": "yt-dlp",
"VIDEO_FFMPEG_PATH": "ffmpeg",
"VIDEO_FFPROBE_PATH": "ffprobe",
"VIDEO_MAX_CONCURRENCY": "2",
"VIDEO_MAX_DOWNLOAD_MB": "500",
"VIDEO_MAX_OUTPUT_TOKENS": "8192",
"VIDEO_REQUEST_TIMEOUT_MS": "180000",
"VIDEO_ALLOW_PRIVATE_NETWORK": "false"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| VIDEO_BASE_URL | Yes | Required. Endpoint base URL, for example https://host/v1. |
| VIDEO_MODEL | Yes | Required. Model name or router alias. |
| VIDEO_API_KEY secret | No | API key sent as Authorization: Bearer <key>. |
| VIDEO_EXTRA_HEADERS secret | No | Extra endpoint request headers as a JSON object, such as Cloudflare Access service-token headers |
| VIDEO_PART_FORMAT | No | Request part format: image_url, video_url, file, or input_file. Default: image_url |
| VIDEO_MAX_DURATION_SECONDS | No | Longest analyzed range in seconds (1–7200). Default: 300 |
| VIDEO_MAX_UPLOAD_MB | No | Largest prepared video sent inline, before base64, in MB (1–100). Default: 15 |
| VIDEO_ALLOWED_DIRS | No | Directories local files may be read from, separated by ':' (';' on Windows). Local files are refused when unset. |
| VIDEO_VERIFY_MEDIA | No | Fail calls when the endpoint evidently ignored the video. Default: true |
| VIDEO_YTDLP_PATH | No | yt-dlp executable path. Default: yt-dlp |
| VIDEO_FFMPEG_PATH | No | ffmpeg executable path. Default: ffmpeg |
| VIDEO_FFPROBE_PATH | No | ffprobe executable path. Default: ffprobe |
| VIDEO_MAX_CONCURRENCY | No | Number of analyses running at once; further calls wait (1–16). Default: 2 |
| VIDEO_MAX_DOWNLOAD_MB | No | Largest source download in MB (1–10000). Default: 500 |
| VIDEO_MAX_OUTPUT_TOKENS | No | max_tokens for the answer (256–65536). Default: 8192 |
| VIDEO_REQUEST_TIMEOUT_MS | No | Endpoint request timeout in milliseconds (5000–900000). Default: 180000 |
| VIDEO_ALLOW_PRIVATE_NETWORK | No | Allow downloads from loopback and private addresses. Default: false |