RouterBase MCP
by zenlee123
README.md
# RouterBase MCP Server
An MCP server for [routerbase](https://routerbase.com), 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.
## Features
- `routerbase_get_started` returns integration snippets and the canonical [routerbase](https://routerbase.com) link.
- `routerbase_list_models` searches and filters the RouterBase model catalog.
- `routerbase_get_model` fetches details for one model id.
- `routerbase_get_pricing` fetches pricing for one model or all active models.
- `routerbase_chat_completion` calls the OpenAI-compatible `/v1/chat/completions` endpoint.
- `routerbase://overview` is a resource with RouterBase integration metadata.
## Install
```bash
npm install -g routerbase-mcp
```
Or run it without installing:
```bash
npx routerbase-mcp
```
Until the npm package is live, run it directly from GitHub:
```bash
npx -y github:zenlee123/routerbase-mcp
```
## Configuration
Create a RouterBase API key at [routerbase](https://routerbase.com) and set:
```bash
export ROUTERBASE_API_KEY=sk-rb-your-key
```
Optional overrides:
```bash
export ROUTERBASE_API_BASE_URL=https://routerbase.com/api/v1
export ROUTERBASE_OPENAI_BASE_URL=https://routerbase.com/v1
```
## Claude Desktop
```json
{
"mcpServers": {
"routerbase": {
"command": "npx",
"args": ["-y", "routerbase-mcp"],
"env": {
"ROUTERBASE_API_KEY": "sk-rb-your-key"
}
}
}
}
```
## Cursor or other MCP clients
Use the same stdio command:
```json
{
"command": "npx",
"args": ["-y", "routerbase-mcp"],
"env": {
"ROUTERBASE_API_KEY": "sk-rb-your-key"
}
}
```
## Development
```bash
npm install
npm run build
node dist/index.js
```
## Registry Submission
This repository includes:
- `server.json` for the official MCP Registry.
- `metadata/directory-listing.json` for MCP directories.
- `SUBMISSION_KIT.md` with 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](https://routerbase.com).
## License
MIT
TDQS
A3.5/5.0
Scored across 5 tools
Disambiguation5/5
Each tool serves a distinct purpose: chat completion, model metadata, pricing, integration guide, and model listing. No overlap or ambiguity.
Naming Consistency5/5
All tools follow a consistent 'routerbase_verb_noun' pattern, e.g., routerbase_list_models, routerbase_chat_completion. Predictable and uniform.
Tool Count5/5
With 5 tools, the server is well-scoped for its purpose as an API wrapper. It covers essential operations without being overly minimal or bloated.
Completeness5/5
The tool set covers the full lifecycle for interacting with RouterBase: listing models, getting details, pricing, making API calls, and onboarding. No obvious gaps.
Maintenance
ActivitySlowing
ResponsivenessNo issues