Skip to main content

Openrouter Multimodal

io.github.stabgan/openrouter-multimodal

v4.5.1Updated May 4, 2026stdio · npmstdio · Docker

Chat with 300+ LLMs via OpenRouter. Analyze and generate images, audio, and video from MCP.

Install

Needs 1 secret. Replace 1 placeholder with your own values.

Run in your terminal. Replace 1 placeholder.

claude mcp add openrouter-multimodal -e 'OPENROUTER_API_KEY=<your-openrouter-api-key>' -- npx -y @stabgan/[email protected]

Configuration

13 settings, 1 required secret. Snippets use placeholders; keep real values out of shared config.

  • OPENROUTER_API_KEY
    Env var· required· secret
    OpenRouter API key. Get one free at https://openrouter.ai/keys
  • OPENROUTER_DEFAULT_MODEL
    Env var· optional
    Default model for chat + analyze tools. Defaults to nvidia/nemotron-nano-12b-v2-vl:free.
  • OPENROUTER_OUTPUT_DIR
    Env var· optional
    Sandbox root for save_path on generate_* tools. Defaults to the current working directory.
  • OPENROUTER_MAX_TOKENS
    Env var· optional
    Default max_tokens for chat_completion when unset in the request.
  • OPENROUTER_PROVIDER_SORT
    Env var· optional
    price / throughput / latency
  • OPENROUTER_PROVIDER_IGNORE
    Env var· optional
    CSV of provider slugs to exclude.
Show 7 more
  • OPENROUTER_PROVIDER_ORDER
    Env var· optional
    JSON array or CSV of preferred provider IDs.
  • OPENROUTER_PROVIDER_QUANTIZATIONS
    Env var· optional
    CSV of quantization levels (fp16,int8).
  • OPENROUTER_PROVIDER_REQUIRE_PARAMETERS
    Env var· optional
    true/false. Require providers to support all request params.
  • OPENROUTER_PROVIDER_DATA_COLLECTION
    Env var· optional
    allow/deny
  • OPENROUTER_PROVIDER_ALLOW_FALLBACKS
    Env var· optional
    true/false
  • OPENROUTER_CACHE_RESPONSES
    Env var· optional
    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
    Env var· optional
    Enable reasoning tokens passthrough server-wide. Adds _meta.reasoning to chat_completion responses for DeepSeek R1 / Gemini Thinking / Opus 4.7.

Listed in the official MCP Registry since May 4, 2026. Mirrored daily; last checked Nov 26, 2026.