Skip to main content
Glama
minovap
by minovap

openrouter-mcp

MCP server for consulting AI models via OpenRouter. Designed for AI assistants like Claude Code to ask other models for help.

Installation

npm install -g openrouter-mcp

Related MCP server: Senior Consult MCP

Configuration

Environment Variables

Variable

Required

Description

OPENROUTER_API_KEY

Yes

Your OpenRouter API key

OPENROUTER_ALLOWED_MODELS

Yes

Comma-separated list of allowed model IDs

OPENROUTER_SYSTEM_PROMPT

No

Default system prompt for all requests

Example MCP Config

{
  "mcpServers": {
    "openrouter": {
      "command": "npx",
      "args": ["-y", "openrouter-mcp"],
      "env": {
        "OPENROUTER_API_KEY": "sk-or-...",
        "OPENROUTER_ALLOWED_MODELS": "anthropic/claude-3.5-sonnet,openai/gpt-4o,google/gemini-2.0-flash-001",
        "OPENROUTER_SYSTEM_PROMPT": "You are helping an AI coding assistant. Be direct and provide code examples when relevant."
      }
    }
  }
}

Tool: ask_model

Consult another AI model for help with coding tasks.

Parameters

Parameter

Type

Required

Description

model

string

Yes

Model ID from the allowed list

message

string

Yes

Your question or request

system_prompt

string

No

Override the default system prompt

append_files

string[]

No

File paths to read and include as context

Limits

  • Max 10 files per request

  • Max 150KB per file

  • Text files only (no binary)

  • 2 minute timeout per request

License

MIT

Available Tools

1 tool
ask_modelA

Consult another AI model for help with coding tasks. Use this to get a second opinion, ask for explanations, or request assistance with complex problems.

ParametersJSON Schema
NameRequiredDescriptionDefault
modelYesThe model to consult. Allowed models: gpt-4o, claude-3.5-sonnet
messageYesYour question or request for the model
system_promptNoOverride the default system prompt
append_filesYesFile paths to read and include as context. Pass [""] if no files are relevant.

TDQS

A3.8/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden for behavioral disclosure. It fails to mention behavioral traits such as latency, context retention, side effects, or required permissions, which are important for an AI agent to correctly invoke the tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, with the first sentence stating the purpose and the second providing usage guidance. It is front-loaded and contains no superfluous information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (4 parameters, no output schema, no nested objects), the description adequately covers purpose and usage. However, it lacks behavioral details that would help an agent understand what happens when the tool is invoked.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description does not add significant meaning beyond the schema; it only provides high-level context about use cases. No additional parameter details are given.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool consults another AI model for coding tasks, using the specific verb 'consult' and identifying the resource as 'another AI model'. With no sibling tools provided, differentiation is not required.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly lists use cases: 'get a second opinion, ask for explanations, or request assistance with complex problems'. However, it does not provide when-not-to-use or alternatives, but the absence of sibling tools reduces the need.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

TDQS

A3.9/5.0
Disambiguation5/5

With only one tool, there is no risk of confusion between tools. The single tool is clearly distinct by default.

Naming Consistency5/5

The tool name 'ask_model' follows a clear verb_noun convention, which is appropriate and consistent though there is only one tool.

Tool Count3/5

A single tool feels thin for a server named 'openrouter-mcp', which implies broader model access capabilities. However, it may be scoped to just querying models, making it borderline acceptable.

Completeness3/5

The tool covers the core action of asking a model, but lacks supporting tools like listing available models or retrieving model metadata, which are notable gaps for a server focused on model access.

Maintenance

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/minovap/openrouter-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server