Best for
- Users who need OpenRouter multimodal models from an MCP client.
- Users who want one server for chat, media analysis, and media generation.
- Developers able to configure an OpenRouter API key and manage its usage credits.
This is a multimodal OpenRouter MCP server with tools for chat, media analysis and generation, and model catalog operations. An OpenRouter API key is required; available models and costs depend on OpenRouter, providers, and the account.
Strongest · Documentation 15/20 Weakest · Reliability 10/20
Static review · not runReviewed 2026-11-29
Read the FMRS scoring method →Runtime:Node.js 22+
OPENROUTER_API_KEY
Required OpenRouter API key; get one at https://openrouter.ai/keys.
OPENROUTER_DEFAULT_MODEL
Optional default model for chat and analysis; defaults to google/gemma-4-26b-a4b-it:free.
OPENROUTER_OUTPUT_DIR
Optional sandbox directory for generated files; defaults to the current working directory.
OPENROUTER_INPUT_DIR
Optional local read sandbox for analysis files; falls back to OPENROUTER_OUTPUT_DIR, then the current working directory.
OPENROUTER_ALLOW_UNSAFE_PATHS
Set to 1 to disable input and output path sandboxes.
OPENROUTER_INLINE_MAX_BYTES
Global byte ceiling for inline media in tool results when save_path is unset; defaults to 1048576 bytes.
OPENROUTER_IMAGE_INLINE_MAX_BYTES
Image inline byte ceiling; falls back to OPENROUTER_INLINE_MAX_BYTES when unset.
OPENROUTER_AUDIO_INLINE_MAX_BYTES
Audio inline byte ceiling; falls back to OPENROUTER_INLINE_MAX_BYTES when unset.
OPENROUTER_VIDEO_INLINE_MAX_BYTES
Video inline byte ceiling; defaults to 10485760 bytes.
OPENROUTER_MAX_TOKENS
Default max_tokens for chat_completion when not supplied in a request.
OPENROUTER_PROVIDER_SORT
Optional provider sort order: price, throughput, or latency.
OPENROUTER_PROVIDER_IGNORE
Comma-separated provider slugs to exclude.
OPENROUTER_PROVIDER_ONLY
Allowed provider slugs as a JSON array or comma-separated list; preferred over ignore.
OPENROUTER_PROVIDER_ORDER
Preferred provider IDs as a JSON array or comma-separated list.
OPENROUTER_PROVIDER_QUANTIZATIONS
Comma-separated quantization levels, such as fp16 or int8.
OPENROUTER_PROVIDER_REQUIRE_PARAMETERS
Set to true or false to require providers to support all request parameters.
OPENROUTER_PROVIDER_DATA_COLLECTION
Provider data collection setting: allow or deny.
OPENROUTER_PROVIDER_ALLOW_FALLBACKS
Set to true or false to control provider fallbacks.
OPENROUTER_CACHE_RESPONSES
Enables server-wide response caching; chat and analysis calls send X-OpenRouter-Cache: true by default.
OPENROUTER_INCLUDE_REASONING
Enables reasoning token passthrough and adds _meta.reasoning to chat_completion responses.
OPENROUTER_MODEL_CACHE_TTL_MS
Model list cache lifetime in milliseconds; defaults to 3600000.
OPENROUTER_LOG_LEVEL
Server log level: error, warn, info, or debug.
OPENROUTER_MAX_RESULT_TEXT_CHARS
Character cap for chat and rerank result text; defaults to 512000. Set to 0 to disable the cap.
OPENROUTER_ASYNC_JOBS_MEMORY_MAX
Maximum in-memory async chat jobs before eviction; defaults to 200. Set to 0 to disable the cap.
OPENROUTER_MCP_NPM_VERSION
Optional pin for the underlying @stabgan/openrouter-mcp-multimodal npm release; used by the uvx launcher only.
Get an OpenRouter API key, replace the placeholder in install_config with the real key, and add the configuration to your MCP client. The npm launch method requires Node.js 22+; the server uses stdio.
{"mcpServers":{"openrouter":{"command":"npx","args":["-y","@stabgan/openrouter-mcp-multimodal"],"env":{"OPENROUTER_API_KEY":"sk-or-v1-..."}}}}
Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.
{
"servers": {
"openrouter": {
"command": "npx",
"args": [
"-y",
"@stabgan/openrouter-mcp-multimodal"
],
"env": {
"OPENROUTER_API_KEY": "sk-or-v1-..."
}
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
[mcp_servers.openrouter] command = "npx" args = ["-y", "@stabgan/openrouter-mcp-multimodal"] [mcp_servers.openrouter.env] OPENROUTER_API_KEY = "sk-or-v1-..."
Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).
claude mcp add openrouter -e OPENROUTER_API_KEY=sk-or-v1-... -- npx -y @stabgan/openrouter-mcp-multimodal
Run it in a terminal; replace any <…> placeholders with your own values first.
After starting the server, confirm chat_completion and analyze_image appear in the client’s tool list. Call health_check to check the API key and OpenRouter connectivity.
Once connected, you can ask your AI assistant things like:
No matching tools
Listed from the project's documentation, not tested by this site.
OpenRouter MCP Multimodal is a server that connects MCP clients to OpenRouter over stdio. It provides tools for chat, image/audio/video analysis and generation, speech transcription and synthesis, model search, embeddings, reranking, and structured decisions. The source describes support for 300+ models; specific capabilities depend on the selected model, provider, and account credits.
Manage UniFi Network controllers through MCP.
Manage UniFi networks and devices through MCP.
Ask your affiliate networks in plain English from your AI workspace.
Run 119 Horosa astrology and metaphysics techniques locally.
Source revision dbc5ceb84cee Data synced 2026-12-05 Read the FMRS scoring method Markdown