Skip to content

openrouter multimodal for Grok

io.github.stabgan/openrouter-multimodal

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

client:Grok transport:stdio runtime:npm

Install openrouter multimodal in Grok

.mcp.json (in your project root)

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "openrouter-multimodal": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@stabgan/openrouter-mcp-multimodal"
      ],
      "env": {
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>",
        "OPENROUTER_DEFAULT_MODEL": "<OPENROUTER_DEFAULT_MODEL>",
        "OPENROUTER_OUTPUT_DIR": "<OPENROUTER_OUTPUT_DIR>",
        "OPENROUTER_MAX_TOKENS": "<OPENROUTER_MAX_TOKENS>",
        "OPENROUTER_PROVIDER_SORT": "<OPENROUTER_PROVIDER_SORT>",
        "OPENROUTER_PROVIDER_IGNORE": "<OPENROUTER_PROVIDER_IGNORE>",
        "OPENROUTER_PROVIDER_ORDER": "<OPENROUTER_PROVIDER_ORDER>",
        "OPENROUTER_PROVIDER_QUANTIZATIONS": "<OPENROUTER_PROVIDER_QUANTIZATIONS>",
        "OPENROUTER_PROVIDER_REQUIRE_PARAMETERS": "<OPENROUTER_PROVIDER_REQUIRE_PARAMETERS>",
        "OPENROUTER_PROVIDER_DATA_COLLECTION": "<OPENROUTER_PROVIDER_DATA_COLLECTION>",
        "OPENROUTER_PROVIDER_ALLOW_FALLBACKS": "<OPENROUTER_PROVIDER_ALLOW_FALLBACKS>",
        "OPENROUTER_CACHE_RESPONSES": "<OPENROUTER_CACHE_RESPONSES>",
        "OPENROUTER_INCLUDE_REASONING": "<OPENROUTER_INCLUDE_REASONING>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

openrouter multimodal in other clients