OpenRouter MCP Server
Click on "Deploy 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 MCP Serverfind a model under $1 per 1M tokens with at least 100k context"
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 Server
A production-shaped Model Context Protocol server for OpenRouter, built by 7Block Labs. It turns OpenRouter's API into a first-party, agent-native surface: any MCP client (Claude, ChatGPT, Cursor, agent frameworks) can browse the model catalog, compare pricing, pick a model by budget/context, and run completions — metered to the caller's own key.
Built for the OpenRouter team as a working example of the official MCP server we'd ship & launch for you
(listed in Claude + ChatGPT, with OAuth + per-plan metering). Catalog tools are keyless (OpenRouter's
/models is public), so you can run it right now:
python -m venv .venv && source .venv/bin/activate && pip install -e .
python -m or_mcp.server # stdio (Claude Desktop / Cursor)
TRANSPORT=http PORT=8000 python -m or_mcp.server # remote (Streamable HTTP)
# completions: export OPENROUTER_API_KEY=... (billed to that account — the metering seam)Claude Code: claude mcp add --transport http openrouter http://localhost:8000/mcp
Tools
Tool | What it does | Key? |
| Browse the catalog (filter by name) | no |
| Rank models by cost (USD/1M tokens) | no |
| Pick by budget + min context window | no |
| Run a completion (metered to the caller) | yes |
Related MCP server: TokenLab MCP Server
Why first-party > community wrappers
Several community MCP wrappers of OpenRouter already exist — unmetered, unversioned, outside your control. A first-party server (task-shaped tools, OAuth, usage metering, directory listings) makes agents paying, governed users. That's what 7Block Labs builds for data & API companies.
MIT licensed.
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect MCP clients to 2,000+ AI models without managing provider API keys.
Hosted MCP server for LLM cost estimation, model comparison, and budget-aware routing.
MCP commerce surface for compute credits, API keys, GPU instances, and cloud storage.
OpenRouter for tools and data. Compare catalog providers and call them from one hosted MCP endpoint.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides a unified MCP interface for running completions, embeddings, image generation, and classification across OpenAI, Anthropic, Groq, and Mistral. Eliminates provider-specific boilerplate by standardizing API calls for text generation, vector embeddings, and classification tasks.-
- AlicenseCqualityAmaintenanceRead-only MCP server that exposes public TokenLab model catalog tools for agents to discover models, inspect request contracts, and compare pricing.32876 npmMIT
- AlicenseAqualityBmaintenanceEnables LLM chat with routing and failover, balance checking, and model listing via MCP.3Academic Free v1.1
- AlicenseNot gradedqualityCmaintenanceEnables MCP-compatible clients to generate and upscale AI images, videos, music, and sound effects, manage generation jobs, access model catalogs, and track credits.3MIT