MCP server
Part of the Rapid Router API reference. One OpenAI-compatible endpoint, https://rapidrouter.ai/api/v1, in front of every model in the catalog.
44MCP server
rapidrouter-mcp is a stdio MCP (Model Context Protocol) server that puts Rapid Router inside Claude Desktop, Claude Code, Cursor and any other MCP client. It exposes four tools: search_models searches the live catalog by substring with optional kind and price-ceiling filters, get_model returns one model's full catalog row with its prices, chat sends a prompt to any model and reports the answer with usage and billed cost, and account_balance shows your credit balance. The catalog tools need no key; chat and account_balance read RAPIDROUTER_API_KEY from the environment.
{
"mcpServers": {
"rapidrouter": {
"command": "npx",
"args": ["-y", "github:nikhilsukhramani-maker/rapidrouter-mcp"],
"env": { "RAPIDROUTER_API_KEY": "rr-..." }
}
}
}The same snippet works in Claude Desktop's claude_desktop_config.json and Cursor's .cursor/mcp.json; Claude Code takes claude mcp add rapidrouter -e RAPIDROUTER_API_KEY=sk-rr-v1-... -- npx -y github:nikhilsukhramani-maker/rapidrouter-mcp. Source and full setup notes live in the repo at rapidrouter-mcp.