openrouter multimodal for VS Code
io.github.stabgan/openrouter-multimodal
Chat with 300+ LLMs via OpenRouter. Analyze and generate images, audio, and video from MCP.
client:VS Code
transport:stdio
runtime:npm
Install openrouter multimodal in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "openrouter-api-key",
"description": "OPENROUTER_API_KEY",
"password": true
},
{
"type": "promptString",
"id": "openrouter-default-model",
"description": "OPENROUTER_DEFAULT_MODEL",
"password": true
},
{
"type": "promptString",
"id": "openrouter-output-dir",
"description": "OPENROUTER_OUTPUT_DIR",
"password": true
},
{
"type": "promptString",
"id": "openrouter-max-tokens",
"description": "OPENROUTER_MAX_TOKENS",
"password": true
},
{
"type": "promptString",
"id": "openrouter-provider-sort",
"description": "OPENROUTER_PROVIDER_SORT",
"password": true
},
{
"type": "promptString",
"id": "openrouter-provider-ignore",
"description": "OPENROUTER_PROVIDER_IGNORE",
"password": true
},
{
"type": "promptString",
"id": "openrouter-provider-order",
"description": "OPENROUTER_PROVIDER_ORDER",
"password": true
},
{
"type": "promptString",
"id": "openrouter-provider-quantizations",
"description": "OPENROUTER_PROVIDER_QUANTIZATIONS",
"password": true
},
{
"type": "promptString",
"id": "openrouter-provider-require-parameters",
"description": "OPENROUTER_PROVIDER_REQUIRE_PARAMETERS",
"password": true
},
{
"type": "promptString",
"id": "openrouter-provider-data-collection",
"description": "OPENROUTER_PROVIDER_DATA_COLLECTION",
"password": true
},
{
"type": "promptString",
"id": "openrouter-provider-allow-fallbacks",
"description": "OPENROUTER_PROVIDER_ALLOW_FALLBACKS",
"password": true
},
{
"type": "promptString",
"id": "openrouter-cache-responses",
"description": "OPENROUTER_CACHE_RESPONSES",
"password": true
},
{
"type": "promptString",
"id": "openrouter-include-reasoning",
"description": "OPENROUTER_INCLUDE_REASONING",
"password": true
}
],
"servers": {
"openrouter-multimodal": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@stabgan/openrouter-mcp-multimodal"
],
"env": {
"OPENROUTER_API_KEY": "${input:openrouter-api-key}",
"OPENROUTER_DEFAULT_MODEL": "${input:openrouter-default-model}",
"OPENROUTER_OUTPUT_DIR": "${input:openrouter-output-dir}",
"OPENROUTER_MAX_TOKENS": "${input:openrouter-max-tokens}",
"OPENROUTER_PROVIDER_SORT": "${input:openrouter-provider-sort}",
"OPENROUTER_PROVIDER_IGNORE": "${input:openrouter-provider-ignore}",
"OPENROUTER_PROVIDER_ORDER": "${input:openrouter-provider-order}",
"OPENROUTER_PROVIDER_QUANTIZATIONS": "${input:openrouter-provider-quantizations}",
"OPENROUTER_PROVIDER_REQUIRE_PARAMETERS": "${input:openrouter-provider-require-parameters}",
"OPENROUTER_PROVIDER_DATA_COLLECTION": "${input:openrouter-provider-data-collection}",
"OPENROUTER_PROVIDER_ALLOW_FALLBACKS": "${input:openrouter-provider-allow-fallbacks}",
"OPENROUTER_CACHE_RESPONSES": "${input:openrouter-cache-responses}",
"OPENROUTER_INCLUDE_REASONING": "${input:openrouter-include-reasoning}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs