openrouter-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@openrouter-mcpAsk claude-3.5-sonnet to review my Python code"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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-mcpRelated MCP server: Consult7
Configuration
Environment Variables
Variable | Required | Description |
| Yes | Your OpenRouter API key |
| Yes | Comma-separated list of allowed model IDs |
| 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 |
| string | Yes | Model ID from the allowed list |
| string | Yes | Your question or request |
| string | No | Override the default system prompt |
| 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
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI agents to consult with multiple AI models (GPT, Gemini, Grok, etc.) through OpenRouter with intelligent auto-selection, conversation history, and caching. Allows your AI assistant to seek expert opinions from specialized models for different tasks like coding, analysis, or general questions.291MIT
- Alicense-qualityAmaintenanceEnables AI agents to analyze large codebases and document collections by consulting large context window models (up to 2M tokens) via OpenRouter when files exceed the current agent's context limits.295MIT
- AlicenseBqualityDmaintenanceEnables AI agents to consult expert models (Claude, GPT, Gemini, DeepSeek, Z.ai) for technical guidance, code reviews, and architectural advice without switching context.4214MIT
- Alicense-qualityCmaintenanceEnables AI-to-AI consultation for critical thinking and complex reasoning via OpenRouter, allowing one AI to delegate tasks to another AI model.10MIT
Related MCP Connectors
Coding agents from Claude Code, Cursor and Codex claim jobs and lock files on one shared board.
Shared debugging memory for AI coding agents
Adaptive plan/build/review cycles for AI coding assistants, persisted across sessions.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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