Skip to content
MCP server

MCP Server

Leanroute MCP: route to 13 LLM providers, check pricing/usage/credit, manage keys from…

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
0.1.3
Listing updated
4 days ago

About MCP Server

MCP Server is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Leanroute MCP: route to 13 LLM providers, check pricing/usage/credit, manage keys from any agent.

Install

Run in a terminal

claude mcp add mcp-server --env LEANROUTE_ADMIN_KEY='<LEANROUTE_ADMIN_KEY>' --env LEANROUTE_RUNTIME_KEY='<LEANROUTE_RUNTIME_KEY>' -- npx -y @leanroute/mcp-server

Add to claude_desktop_config.json

{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@leanroute/mcp-server"
      ],
      "env": {
        "LEANROUTE_ADMIN_KEY": "<LEANROUTE_ADMIN_KEY>",
        "LEANROUTE_RUNTIME_KEY": "<LEANROUTE_RUNTIME_KEY>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@leanroute/mcp-server"
      ],
      "env": {
        "LEANROUTE_ADMIN_KEY": "<LEANROUTE_ADMIN_KEY>",
        "LEANROUTE_RUNTIME_KEY": "<LEANROUTE_RUNTIME_KEY>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@leanroute/mcp-server"
      ],
      "env": {
        "LEANROUTE_ADMIN_KEY": "<LEANROUTE_ADMIN_KEY>",
        "LEANROUTE_RUNTIME_KEY": "<LEANROUTE_RUNTIME_KEY>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@leanroute/mcp-server"
      ],
      "env": {
        "LEANROUTE_ADMIN_KEY": "<LEANROUTE_ADMIN_KEY>",
        "LEANROUTE_RUNTIME_KEY": "<LEANROUTE_RUNTIME_KEY>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@leanroute/mcp-server"
      ],
      "env": {
        "LEANROUTE_ADMIN_KEY": "<LEANROUTE_ADMIN_KEY>",
        "LEANROUTE_RUNTIME_KEY": "<LEANROUTE_RUNTIME_KEY>"
      }
    }
  }
}

Configuration

  • LEANROUTE_ADMIN_KEYAdmin API key (gw_admin_*). Mint at https://leanroute.dev/dashboard/admin-keys. Required for platform tools (pricing, usage, credit, key management).Required
  • LEANROUTE_RUNTIME_KEYRuntime API key (gw_live_*). Mint at https://leanroute.dev/dashboard/keys. Optional — only required for the route_call tool that dispatches actual LLM completions.
  • LEANROUTE_BASE_URLBase URL override for self-hosted Leanroute instances.

Pricing

Open source

MCP Server FAQ

Is MCP Server free?

Yes. MCP Server is open source, so you can use and self-host it for free.

How do I add MCP Server to Claude Code?

Run this command in your terminal: claude mcp add mcp-server --env LEANROUTE_ADMIN_KEY='<LEANROUTE_ADMIN_KEY>' --env LEANROUTE_RUNTIME_KEY='<LEANROUTE_RUNTIME_KEY>' -- npx -y @leanroute/mcp-server