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-stabgan-openrouter-multimodal": {
"command": "npx",
"args": [
"-y",
"@stabgan/openrouter-mcp-multimodal"
],
"env": {
"OPENROUTER_API_KEY": "<YOUR_VALUE>",
"OPENROUTER_DEFAULT_MODEL": "nvidia/nemotron-nano-12b-v2-vl:free",
"OPENROUTER_OUTPUT_DIR": "<VALUE>",
"OPENROUTER_MAX_TOKENS": "<VALUE>",
"OPENROUTER_PROVIDER_SORT": "<VALUE>",
"OPENROUTER_PROVIDER_IGNORE": "<VALUE>",
"OPENROUTER_PROVIDER_ORDER": "<VALUE>",
"OPENROUTER_PROVIDER_QUANTIZATIONS": "<VALUE>",
"OPENROUTER_PROVIDER_REQUIRE_PARAMETERS": "<VALUE>",
"OPENROUTER_PROVIDER_DATA_COLLECTION": "<VALUE>",
"OPENROUTER_PROVIDER_ALLOW_FALLBACKS": "<VALUE>",
"OPENROUTER_CACHE_RESPONSES": "<VALUE>",
"OPENROUTER_INCLUDE_REASONING": "<VALUE>",
"OPENROUTER_INPUT_DIR": "<VALUE>"
}
}
}
}
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-stabgan-openrouter-multimodal": {
"command": "npx",
"args": [
"-y",
"@stabgan/openrouter-mcp-multimodal"
],
"env": {
"OPENROUTER_API_KEY": "<YOUR_VALUE>",
"OPENROUTER_DEFAULT_MODEL": "nvidia/nemotron-nano-12b-v2-vl:free",
"OPENROUTER_OUTPUT_DIR": "<VALUE>",
"OPENROUTER_MAX_TOKENS": "<VALUE>",
"OPENROUTER_PROVIDER_SORT": "<VALUE>",
"OPENROUTER_PROVIDER_IGNORE": "<VALUE>",
"OPENROUTER_PROVIDER_ORDER": "<VALUE>",
"OPENROUTER_PROVIDER_QUANTIZATIONS": "<VALUE>",
"OPENROUTER_PROVIDER_REQUIRE_PARAMETERS": "<VALUE>",
"OPENROUTER_PROVIDER_DATA_COLLECTION": "<VALUE>",
"OPENROUTER_PROVIDER_ALLOW_FALLBACKS": "<VALUE>",
"OPENROUTER_CACHE_RESPONSES": "<VALUE>",
"OPENROUTER_INCLUDE_REASONING": "<VALUE>",
"OPENROUTER_INPUT_DIR": "<VALUE>"
}
}
}
}
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-stabgan-openrouter-multimodal": {
"command": "npx",
"args": [
"-y",
"@stabgan/openrouter-mcp-multimodal"
],
"env": {
"OPENROUTER_API_KEY": "<YOUR_VALUE>",
"OPENROUTER_DEFAULT_MODEL": "nvidia/nemotron-nano-12b-v2-vl:free",
"OPENROUTER_OUTPUT_DIR": "<VALUE>",
"OPENROUTER_MAX_TOKENS": "<VALUE>",
"OPENROUTER_PROVIDER_SORT": "<VALUE>",
"OPENROUTER_PROVIDER_IGNORE": "<VALUE>",
"OPENROUTER_PROVIDER_ORDER": "<VALUE>",
"OPENROUTER_PROVIDER_QUANTIZATIONS": "<VALUE>",
"OPENROUTER_PROVIDER_REQUIRE_PARAMETERS": "<VALUE>",
"OPENROUTER_PROVIDER_DATA_COLLECTION": "<VALUE>",
"OPENROUTER_PROVIDER_ALLOW_FALLBACKS": "<VALUE>",
"OPENROUTER_CACHE_RESPONSES": "<VALUE>",
"OPENROUTER_INCLUDE_REASONING": "<VALUE>",
"OPENROUTER_INPUT_DIR": "<VALUE>"
}
}
}
}
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-stabgan-openrouter-multimodal": {
"command": "npx",
"args": [
"-y",
"@stabgan/openrouter-mcp-multimodal"
],
"env": {
"OPENROUTER_API_KEY": "<YOUR_VALUE>",
"OPENROUTER_DEFAULT_MODEL": "nvidia/nemotron-nano-12b-v2-vl:free",
"OPENROUTER_OUTPUT_DIR": "<VALUE>",
"OPENROUTER_MAX_TOKENS": "<VALUE>",
"OPENROUTER_PROVIDER_SORT": "<VALUE>",
"OPENROUTER_PROVIDER_IGNORE": "<VALUE>",
"OPENROUTER_PROVIDER_ORDER": "<VALUE>",
"OPENROUTER_PROVIDER_QUANTIZATIONS": "<VALUE>",
"OPENROUTER_PROVIDER_REQUIRE_PARAMETERS": "<VALUE>",
"OPENROUTER_PROVIDER_DATA_COLLECTION": "<VALUE>",
"OPENROUTER_PROVIDER_ALLOW_FALLBACKS": "<VALUE>",
"OPENROUTER_CACHE_RESPONSES": "<VALUE>",
"OPENROUTER_INCLUDE_REASONING": "<VALUE>",
"OPENROUTER_INPUT_DIR": "<VALUE>"
}
}
}
}
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-stabgan-openrouter-multimodal": {
"command": "npx",
"args": [
"-y",
"@stabgan/openrouter-mcp-multimodal"
],
"env": {
"OPENROUTER_API_KEY": "<YOUR_VALUE>",
"OPENROUTER_DEFAULT_MODEL": "nvidia/nemotron-nano-12b-v2-vl:free",
"OPENROUTER_OUTPUT_DIR": "<VALUE>",
"OPENROUTER_MAX_TOKENS": "<VALUE>",
"OPENROUTER_PROVIDER_SORT": "<VALUE>",
"OPENROUTER_PROVIDER_IGNORE": "<VALUE>",
"OPENROUTER_PROVIDER_ORDER": "<VALUE>",
"OPENROUTER_PROVIDER_QUANTIZATIONS": "<VALUE>",
"OPENROUTER_PROVIDER_REQUIRE_PARAMETERS": "<VALUE>",
"OPENROUTER_PROVIDER_DATA_COLLECTION": "<VALUE>",
"OPENROUTER_PROVIDER_ALLOW_FALLBACKS": "<VALUE>",
"OPENROUTER_CACHE_RESPONSES": "<VALUE>",
"OPENROUTER_INCLUDE_REASONING": "<VALUE>",
"OPENROUTER_INPUT_DIR": "<VALUE>"
}
}
}
}
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-stabgan-openrouter-multimodal": {
"command": "npx",
"args": [
"-y",
"@stabgan/openrouter-mcp-multimodal"
],
"env": {
"OPENROUTER_API_KEY": "<YOUR_VALUE>",
"OPENROUTER_DEFAULT_MODEL": "nvidia/nemotron-nano-12b-v2-vl:free",
"OPENROUTER_OUTPUT_DIR": "<VALUE>",
"OPENROUTER_MAX_TOKENS": "<VALUE>",
"OPENROUTER_PROVIDER_SORT": "<VALUE>",
"OPENROUTER_PROVIDER_IGNORE": "<VALUE>",
"OPENROUTER_PROVIDER_ORDER": "<VALUE>",
"OPENROUTER_PROVIDER_QUANTIZATIONS": "<VALUE>",
"OPENROUTER_PROVIDER_REQUIRE_PARAMETERS": "<VALUE>",
"OPENROUTER_PROVIDER_DATA_COLLECTION": "<VALUE>",
"OPENROUTER_PROVIDER_ALLOW_FALLBACKS": "<VALUE>",
"OPENROUTER_CACHE_RESPONSES": "<VALUE>",
"OPENROUTER_INCLUDE_REASONING": "<VALUE>",
"OPENROUTER_INPUT_DIR": "<VALUE>"
}
}
}
}
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 |
|---|---|---|
| OPENROUTER_API_KEY secret | Yes | Your OpenRouter API key. Get one free at https://openrouter.ai/keys |
| OPENROUTER_DEFAULT_MODEL | No | Default model for chat + analyze tools. Default: nvidia/nemotron-nano-12b-v2-vl:free |
| OPENROUTER_OUTPUT_DIR | No | Sandbox root for save_path on generate_* tools. Defaults to cwd. |
| OPENROUTER_MAX_TOKENS | No | Default max_tokens for chat_completion when unset in the request. |
| OPENROUTER_PROVIDER_SORT | No | price / throughput / latency |
| OPENROUTER_PROVIDER_IGNORE | No | CSV of provider slugs to exclude. |
| OPENROUTER_PROVIDER_ORDER | No | JSON array or CSV of preferred provider IDs. |
| OPENROUTER_PROVIDER_QUANTIZATIONS | No | CSV of quantization levels (fp16,int8). |
| OPENROUTER_PROVIDER_REQUIRE_PARAMETERS | No | true/false. Require providers to support all request params. |
| OPENROUTER_PROVIDER_DATA_COLLECTION | No | allow/deny |
| OPENROUTER_PROVIDER_ALLOW_FALLBACKS | No | true/false |
| OPENROUTER_CACHE_RESPONSES | No | Enable response caching server-wide. Sends X-OpenRouter-Cache: true on every chat/analyze call unless overridden per-request. Zero tokens billed on cache hits. |
| OPENROUTER_INCLUDE_REASONING | No | Enable reasoning tokens passthrough server-wide. Adds _meta.reasoning to chat_completion responses for DeepSeek R1 / Gemini Thinking / Opus 4.7. |
| OPENROUTER_INPUT_DIR | No | Sandbox root for input_images on generate_image. Falls back to OPENROUTER_OUTPUT_DIR. |