dev.leanroute/mcp-server
Leanroute MCP: route to 13 LLM providers, check pricing/usage/credit, manage keys from any agent.
Install
Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).
@leanroute/mcp-serverclaude mcp add dev-leanroute-mcp-server -e 'LEANROUTE_ADMIN_KEY=<your leanroute_admin_key>' -e 'LEANROUTE_RUNTIME_KEY=<your leanroute_runtime_key>' -e 'LEANROUTE_BASE_URL=https://api.leanroute.dev' -- npx -y @leanroute/mcp-server@0.1.3
{
"mcpServers": {
"dev-leanroute-mcp-server": {
"command": "npx",
"args": [
"-y",
"@leanroute/mcp-server@0.1.3"
],
"env": {
"LEANROUTE_ADMIN_KEY": "<your leanroute_admin_key>",
"LEANROUTE_RUNTIME_KEY": "<your leanroute_runtime_key>",
"LEANROUTE_BASE_URL": "https://api.leanroute.dev"
}
}
}
}
Environment variables
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_KEYsecret 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_URLBase URL override for self-hosted Leanroute instances.
Frequently asked questions
What is dev.leanroute/mcp-server?
Leanroute MCP: route to 13 LLM providers, check pricing/usage/credit, manage keys from any agent.
How do I install dev.leanroute/mcp-server?
It runs on your machine. In Claude Code: claude mcp add dev-leanroute-mcp-server -e 'LEANROUTE_ADMIN_KEY=<your leanroute_admin_key>' -e 'LEANROUTE_RUNTIME_KEY=<your leanroute_runtime_key>' -e 'LEANROUTE_BASE_URL=https://api.leanroute.dev' -- npx -y @leanroute/mcp-server@0.1.3. For other clients, paste the JSON configuration from this page into their MCP settings.
Does dev.leanroute/mcp-server need an API key?
Yes. It expects LEANROUTE_ADMIN_KEY, LEANROUTE_RUNTIME_KEY, which you set in its configuration.
Is dev.leanroute/mcp-server open source?
Its code is public on GitHub, but the repository does not declare a standard license.
Who maintains dev.leanroute/mcp-server?
It is published by leanroute. AI.tn lists it but does not maintain or endorse it.
From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.