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 x-ai/grok-4 to weigh in on our debate about remote work."
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
Remote MCP server that lets Claude invoke third-party models (Grok, GPT, Gemini, DeepSeek — anything OpenRouter carries) as tools mid-conversation. The OpenRouter API key never leaves this server.
Tools exposed
ask_model —
{ model, prompt, system?, temperature?, max_tokens?, chat_id? }→ model reply + token/cost footer. Passchat_id(any string you invent) to make the conversation sticky: the server keeps the transcript and replays it on every call, so the model remembers earlier turns. Different calls on one chat may use different models — they share the transcript.list_models —
{ search?, limit? }→ matching OpenRouter model IDs with context length and pricinglist_chats — active sticky chats with turn count, last model, total cost, last activity
get_chat —
{ chat_id }→ full transcript of one sticky chat
Related MCP server: MCP OpenAI Server
Deploy (Render)
Push this repo to GitHub, create a Web Service on Render pointing at it.
Build:
npm install· Start:npm start(Render injectsPORT)
Environment variables:
OPENROUTER_API_KEY— from https://openrouter.ai/keys (set a spend limit on the key)AUTH_TOKEN— generate one:node -e "console.log(require('crypto').randomBytes(24).toString('base64url'))"APP_URL— optional, your Render URL (OpenRouter attribution header)
Sanity check:
GET https://your-app.onrender.com/healthz→{"ok":true}
Also runs fine on the SOCKS5-proxy VPS with pm2 + a reverse proxy for TLS — claude.ai requires HTTPS for connectors.
Connect to claude.ai
Settings → Connectors → Add custom connector → URL:
https://your-app.onrender.com/mcp/<AUTH_TOKEN>No OAuth config needed — the token in the path is the auth. Then in any chat, enable the connector and ask Claude to ask_model with e.g. x-ai/grok-4.
Notes
Stateless transport: every request builds a fresh server instance. No sessions to lose when Render cold-starts or Starlink blips.
Sticky chats are in-memory only: they survive across requests but are lost on restart/redeploy (and Render free-tier sleep). Capped at 100 chats / 200 messages each, LRU-evicted. A failed model call never creates or grows a chat.
The secret lives in the URL path, so treat the connector URL itself as a credential. Rotate
AUTH_TOKENif it leaks.Free-tier Render sleeps after idle; first call after a nap takes ~30s. Fine for this use case.
This server cannot be installed
Maintenance
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
The OpenRouter MCP server plugs OpenRouter into the AI tools you already use. Once connected, your assistant can pull live OpenRouter data (models, prices, your credits, rankings, and docs) and send quick test messages, all without leaving your editor.
OpenRouter for tools and data. Compare catalog providers and call them from one hosted MCP endpoint.
Claude makes real phone calls for you — in many languages, with transcript and outcome back in chat.
One MCP endpoint for Claude, GPT & Gemini: 100+ tools + no-code connectors + agent workers.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceGives Claude access to multiple AI models (Gemini, OpenAI, OpenRouter, Ollama) for enhanced development capabilities including extended reasoning, collaborative development, code review, and advanced debugging.
- AlicenseAqualityDmaintenanceEnables Claude to directly invoke OpenAI's chat models (GPT-4o, GPT-4o-mini, o1-preview, o1-mini) through a Model Context Protocol integration, allowing users to query and compare responses from different AI models within Claude Desktop.11MIT
- AlicenseAqualityDmaintenanceEnables Claude to orchestrate tasks across 27 AI providers, run multi-agent plans, and conduct multi-model councils for decision-making.15101MIT
- FlicenseNot gradedqualityCmaintenanceEnables adversarial multi-model AI review via OpenRouter, allowing Claude to submit prompts to multiple models and compare responses through custom connector tools.
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/sclarke500/ask-agent-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server