Leanroute MCP: route to 13 LLM providers, check pricing/usage/credit, manage keys from any agent.
Connect Runs on your machine
claude mcp add mcp-server -e LEANROUTE_ADMIN_KEY=<LEANROUTE_ADMIN_KEY> -e LEANROUTE_RUNTIME_KEY=<LEANROUTE_RUNTIME_KEY> -e LEANROUTE_BASE_URL=<LEANROUTE_BASE_URL> -- npx -y @leanroute/[email protected]
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@leanroute/[email protected]"
],
"env": {
"LEANROUTE_ADMIN_KEY": "<LEANROUTE_ADMIN_KEY>",
"LEANROUTE_RUNTIME_KEY": "<LEANROUTE_RUNTIME_KEY>",
"LEANROUTE_BASE_URL": "<LEANROUTE_BASE_URL>"
}
}
}
}
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@leanroute/[email protected]"
],
"env": {
"LEANROUTE_ADMIN_KEY": "<LEANROUTE_ADMIN_KEY>",
"LEANROUTE_RUNTIME_KEY": "<LEANROUTE_RUNTIME_KEY>",
"LEANROUTE_BASE_URL": "<LEANROUTE_BASE_URL>"
}
}
}
}
{
"servers": {
"mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@leanroute/[email protected]"
],
"env": {
"LEANROUTE_ADMIN_KEY": "<LEANROUTE_ADMIN_KEY>",
"LEANROUTE_RUNTIME_KEY": "<LEANROUTE_RUNTIME_KEY>",
"LEANROUTE_BASE_URL": "<LEANROUTE_BASE_URL>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
LEANROUTE_ADMIN_KEYRequired, 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_KEYOptional, 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_URLOptional | Base URL override for self-hosted Leanroute instances. |
Details
| Package | @leanroute/[email protected] (NPM, stdio) |
| First published | 22 Aug 2026 |
| Last updated | 22 Aug 2026 |
| Registry name | dev.leanroute/mcp-server |
More ai and media servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
