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: Polybrain MCP Server

Install

npm install -g routerbase-mcp

Or run it without installing:

npx 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

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

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/zenlee123/routerbase-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server