Leanroute MCP Server
by leanroutedev.leanroute/mcp-serverv0.1.3
Leanroute MCP: route to 13 LLM providers, check pricing/usage/credit, manage keys from any agent.
context tax
queued
security
queued
cold start
queued
freshness
Maintained48d ago
Install Leanroute MCP server
Install in Claude Code
claude mcp add leanroute -e LEANROUTE_ADMIN_KEY='<leanroute-admin-key>' -e LEANROUTE_RUNTIME_KEY='<leanroute-runtime-key>' -- npx -y @leanroute/mcp-serverInstall in Cursor
{
"mcpServers": {
"leanroute": {
"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 (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"leanroute": {
"command": "npx",
"args": [
"-y",
"@leanroute/mcp-server"
],
"env": {
"LEANROUTE_ADMIN_KEY": "<leanroute-admin-key>",
"LEANROUTE_RUNTIME_KEY": "<leanroute-runtime-key>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"leanroute": {
"type": "stdio",
"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 in your workspace.
Install in Windsurf
{
"mcpServers": {
"leanroute": {
"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.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| LEANROUTE_ADMIN_KEY | yes | yes | 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 | — | yes | 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 | — | — | Base URL override for self-hosted Leanroute instances. |
Freshness
Maintained — last maintenance signal 48d ago. The newest of the signals below sets the band.
Last commit (default branch)
no data · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
Registry entry updated
2026-08-22 · 48d ago · official registry · v0.1.3
FAQ
›How do I install the Leanroute MCP server in Claude Code?
Run: claude mcp add leanroute -e LEANROUTE_ADMIN_KEY='<leanroute-admin-key>' -e LEANROUTE_RUNTIME_KEY='<leanroute-runtime-key>' -- npx -y @leanroute/mcp-server. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Leanroute require an API key?
Yes. It expects LEANROUTE_ADMIN_KEY, LEANROUTE_RUNTIME_KEY, of which 2 are secrets.
›Can I use Leanroute as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Leanroute in the official MCP registry?
Yes, as dev.leanroute/mcp-server.
Alternatives to Leanroute
Other ai & llm tools MCP servers.