mcpField
L
leanroute

leanroute

Local
github.com/leanrouteAI & Agents

About leanroute

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

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"dev-leanroute": {
"command": "npx",
"args": [
"-y",
"@leanroute/mcp-server"
],
"env": {
"LEANROUTE_ADMIN_KEY": "<LEANROUTE_ADMIN_KEY>",
"LEANROUTE_RUNTIME_KEY": "<LEANROUTE_RUNTIME_KEY>",
"LEANROUTE_BASE_URL": "<LEANROUTE_BASE_URL>"
}
}
}
}
Run commandnpx -y @leanroute/mcp-server
Environment variables to set
LEANROUTE_ADMIN_KEYSecretAdmin API key (gw_admin_*). Mint at https://leanroute.dev/dashboard/admin-keys. Required for platform tools (pricing, usage, credit, key management).
LEANROUTE_RUNTIME_KEYSecretRuntime 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.

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@leanroute/mcp-server0.1.3

Tools

9

Saved tool list · updated 2w ago

This tool takes no parameters.

Details

The maintainer has not added details yet. Check the README in the repository.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.