openrouter-mcp
Enables AI assistants like Claude or ChatGPT to query OpenRouter's 300+ models for pricing, context length, capabilities, and rankings through tools such as model-card, compare-models, cheapest-for, cost-estimator, and usage-rankings, using a public, key-less API with 6-hour caching.
README
openrouter-mcp
An mcp-use MCP App that lets Claude / ChatGPT reason about OpenRouter's 300+ models — price, context, capabilities, cost and rankings — each tool paired with a React widget in one file, deployable on Manufact.
Everything is powered by one public, key-less endpoint:
GET https://openrouter.ai/api/v1/models
It returns id, context length, per-token pricing, modalities, supported params and arena/benchmark scores for every model. We fetch it once, cache it 6h, and every tool is a pure transform over that array — no auth, no pagination.
Tools
| Tool | Prompt | What it does |
|---|---|---|
model-card |
"what's claude-opus-4.8?" | Price, context, capabilities & arena ELO for one model |
compare-models |
"gpt-5 vs sonnet vs deepseek?" | 2–4 models side by side, best value marked per metric |
cheapest-for |
"cheapest vision model, 200K+ ctx?" | Filter by needs, sort by input price |
cost-estimator |
"cost for 2M in / 0.5M out?" | Interactive calculator — tweak tokens, watch the total recompute live |
usage-rankings |
"top coding models right now?" | Models ranked by design-arena ELO leaderboard |
Run locally
npm install
npm run dev # server on :3000 + Inspector
In the Inspector, call each tool:
{ "model": "claude-opus-4.8" }
{ "models": ["gpt-5", "claude-sonnet-4.6", "deepseek-v4"] }
{ "needs": ["vision"], "minContext": 200000 }
{ "model": "deepseek-v4", "inputTokens": 2000000, "outputTokens": 500000 }
{ "arena": "coding", "limit": 10 }
Structure
openrouter-mcp/
├── index.ts # MCPServer + 5 server.tool(...) defs
├── src/openrouter.ts # getModels() 6h cache + normalize() + findModel()
└── resources/
├── card.tsx # model-card
├── compare.tsx # compare-models
├── cheapest.tsx # cheapest-for
├── cost.tsx # cost-estimator (interactive React state)
└── rankings.tsx # usage-rankings
Deploy on Manufact
- Push this repo to GitHub.
- Connect it on manufact.com via the Manufact GitHub App.
- No env vars needed — the catalog API is public. (Add
OPENROUTER_API_KEYonly if you later add live inference / routing.) - Every push auto-deploys with a preview URL, SSL, logs and metrics.
Notes
- Pricing is a per-token decimal string — multiply by
1e6for $/1M (src/openrouter.ts). - Not every model has arena ELO — widgets guard for
null. input_modalities(notmodality) is the reliable vision/audio signal.- OpenRouter exposes no clean public JSON for token-share usage, so
usage-rankingsranks by the real design-arena ELO carried in the same cached/modelscall.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.