Skip to main content
Glama

RouterBase MCP Server

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.

Features

  • routerbase_get_started returns integration snippets and the canonical routerbase 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.

Related MCP server: OpenRouter MCP Server

Install

npm install -g routerbase-mcp

Or run it without installing:

npx routerbase-mcp

Until the npm package is live, run it directly from GitHub:

npx -y github:zenlee123/routerbase-mcp

Configuration

Create a RouterBase API key at routerbase and set:

export ROUTERBASE_API_KEY=sk-rb-your-key

Optional overrides:

export ROUTERBASE_API_BASE_URL=https://routerbase.com/api/v1
export ROUTERBASE_OPENAI_BASE_URL=https://routerbase.com/v1

Claude Desktop

{
  "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:

{
  "command": "npx",
  "args": ["-y", "routerbase-mcp"],
  "env": {
    "ROUTERBASE_API_KEY": "sk-rb-your-key"
  }
}

Development

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.

License

MIT

Available Tools

5 tools
routerbase_chat_completionCreate RouterBase chat completionC

Call RouterBase's OpenAI-compatible chat completions API through the configured RouterBase key.

Inputs: model (required), messages (required), api_key, max_tokens, +1 more.

routerbase_get_modelGet RouterBase model detailsB

Fetch metadata for a specific RouterBase model id.

Inputs: model_id (required), api_key.

routerbase_get_pricingGet RouterBase pricingA

Fetch RouterBase pricing for one model or all active models.

Inputs: api_key, model_id.

routerbase_get_startedRouterBase quickstartC

Return a concise RouterBase integration guide with the canonical routerbase backlink.

Inputs: language.

routerbase_list_modelsList RouterBase modelsA

List RouterBase models, optionally filtered by modality, provider, or search query.

Inputs: page, task, search, api_key, +2 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    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.

    Related MCP Connectors

    Related MCP Servers