Skip to main content
Glama
mcp-openrouter
by tsilva

mcp-openrouter adds OpenRouter chat, images, embeddings, and model discovery to MCP clients over local stdio.

Install

Choose the clients to configure:

uvx mcp-openrouter install --yes --clients codex,claude,opencode

The server supports a configured OpenRouter provider through AgentBridge. See the guide for the gateway environment, tools, and client-specific setup.

MCP server setup and configuration.

Related MCP server: Perplexity Ask OpenRouter

License

MIT License.

Available Tools

5 tools
chatB

Send a chat completion request to any OpenRouter model.

Inputs: seed, stop, model, top_k, +13 more. Returns: result

embedB

Generate embeddings for text input using an OpenRouter embedding model.

Inputs: input (required), model, dimensions, encoding_format. Returns: object

find_modelsA

Search for models by name or slug.

Inputs: search_term (required). Returns: result

generate_imageB

Generate an image using an OpenRouter image generation model.

Inputs: prompt (required), size, model, quality, +4 more.

list_modelsA

List available OpenRouter models, optionally filtered by capability.

Inputs: capability. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool targets a distinct operation: chat for text generation, embed for embeddings, generate_image for images, find_models and list_models for model discovery with different query types. No overlap.

    Naming Consistency5/5

    All tool names use lowercase with underscores, following a consistent verb or verb_noun pattern (chat, embed, generate_image, find_models, list_models).

    Tool Count5/5

    5 tools cover the core functionalities of the OpenRouter API—chat, embedding, image generation, model search, and listing—without being excessive or insufficient.

    Completeness4/5

    The set covers the primary OpenRouter capabilities (chat, embed, image gen, model discovery). A minor gap is the lack of an explicit streaming tool, but chat can be parameterized for streaming.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      An MCP server that wraps the OpenRouter API, enabling users to access diverse language models like Google Gemini 3 Pro for chat and image tasks. It provides tools for generating completions and listing available models within MCP-compatible clients.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that connects to OpenRouter's API to provide Perplexity's models (Sonar, Sonar Deep Research, Sonar Reasoning) for use with any MCP-compatible client.
      8
      MIT