An MCP server for routerbase, the OpenAI-compatible API gateway for GPT, Claude, Gemini, and 200+ AI models.
This package exposes RouterBase model discovery, model details, pricing lookup, quickstart guidance, and chat completions as Model Context Protocol tools.
routerbase_get_startedreturns integration snippets and the canonical routerbase link.routerbase_list_modelssearches and filters the RouterBase model catalog.routerbase_get_modelfetches details for one model id.routerbase_get_pricingfetches pricing for one model or all active models.routerbase_chat_completioncalls the OpenAI-compatible/v1/chat/completionsendpoint.routerbase://overviewis a resource with RouterBase integration metadata.
npm install -g routerbase-mcpOr run it without installing:
npx routerbase-mcpUntil the npm package is live, run it directly from GitHub:
npx -y github:zenlee123/routerbase-mcpCreate a RouterBase API key at routerbase and set:
export ROUTERBASE_API_KEY=sk-rb-your-keyOptional overrides:
export ROUTERBASE_API_BASE_URL=https://routerbase.com/api/v1
export ROUTERBASE_OPENAI_BASE_URL=https://routerbase.com/v1{
"mcpServers": {
"routerbase": {
"command": "npx",
"args": ["-y", "routerbase-mcp"],
"env": {
"ROUTERBASE_API_KEY": "sk-rb-your-key"
}
}
}
}Use the same stdio command:
{
"command": "npx",
"args": ["-y", "routerbase-mcp"],
"env": {
"ROUTERBASE_API_KEY": "sk-rb-your-key"
}
}npm install
npm run build
node dist/index.jsThis repository includes:
server.jsonfor the official MCP Registry.metadata/directory-listing.jsonfor MCP directories.SUBMISSION_KIT.mdwith listing copy for MCP.so, PulseMCP, Glama, Smithery, and GitHub lists.
The preferred listing sentence is:
RouterBase MCP lets AI agents discover models, pricing, and chat completions through routerbase.
MIT