rapidrouter-mcp
rapidrouter-mcp
An MCP (Model Context Protocol) stdio server for Rapid Router, the AI gateway with an OpenAI-compatible API. It lets any MCP client (Claude Desktop, Claude Code, Cursor, and others) search the live model catalog, look up prices in USD and INR, send chat completions, and check your credit balance.
Install
Once published to npm:
npx rapidrouter-mcpFrom source, today:
cd mcp && npm install
node mcp/index.jsThe server speaks MCP over stdin/stdout. chat and account_balance need a Rapid Router
API key in the RAPIDROUTER_API_KEY environment variable; get one at
https://rapidrouter.ai/dashboard/keys. The catalog tools need no key.
Client configuration
Claude Desktop (claude_desktop_config.json) and Cursor (.cursor/mcp.json) use the
same mcpServers shape:
{
"mcpServers": {
"rapidrouter": {
"command": "npx",
"args": ["rapidrouter-mcp"],
"env": { "RAPIDROUTER_API_KEY": "rr-..." }
}
}
}Claude Code:
claude mcp add rapidrouter -e RAPIDROUTER_API_KEY=rr-... -- npx rapidrouter-mcpRunning from a checkout instead of npm, replace the command with
"command": "node", "args": ["/path/to/rapid-router/mcp/index.js"].
Tools
Tool | Auth | What it does |
| none | Search live models by substring on id/name/author, with optional |
| none | One model's full catalog row by exact id, plus INR prices from the catalog's live USD/INR rate. |
|
| Send a prompt (optional |
|
| Your credit balance in USD and INR. |
Run rapidrouter-mcp --help for a usage summary.
License
MIT
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/nikhilsukhramani-maker/rapidrouter-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server