Skip to main content

MCP Server

dev.leanroute/mcp-server

v0.1.3Updated Aug 22, 2026stdio · npm

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

Install

Needs 1 secret. Replace 1 placeholder with your own values.

Run in your terminal. Replace 1 placeholder.

claude mcp add mcp-server -e 'LEANROUTE_ADMIN_KEY=<your-leanroute-admin-key>' -e LEANROUTE_BASE_URL=https://api.leanroute.dev -- npx -y @leanroute/[email protected]

Configuration

3 settings, 1 required secret. Snippets use placeholders; keep real values out of shared config.

  • LEANROUTE_ADMIN_KEY
    Env var· required· secret
    Admin API key (gw_admin_*). Mint at https://leanroute.dev/dashboard/admin-keys. Required for platform tools (pricing, usage, credit, key management).
  • LEANROUTE_RUNTIME_KEY
    Env var· optional· secret
    Runtime 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_URL
    Env var· optional
    Base URL override for self-hosted Leanroute instances.Default: https://api.leanroute.dev

Listed in the official MCP Registry since Aug 22, 2026. Mirrored daily; last checked Nov 26, 2026.