MCP Server
Leanroute MCP: route to 13 LLM providers, check pricing/usage/credit, manage keys from any agent.
30 downloads/wk
Reviews
Write oneNobody has reviewed MCP Server yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
MCP Server tools (9, 1 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
cheapest_forRank the cheapest models for a task tier. Filters by optional vision and price ceiling. Returns top_n models sorted by input price ascending. Use when the user asks 'what's the cheapest way to X'.
create_runtime_keywrite actionMint a new runtime key (gw_live_*). Response contains the full key exactly once — surface it to the user immediately. Requires the admin key to have been minted by an owner or admin.
get_credit_balanceCurrent prepaid-credit balance in USD, including bonus credit. Read-only — this MCP server cannot initiate a top-up (dashboard-only for safety).
get_pricingFull pricing catalog: input/output $/M-tokens, cached-input discount, tier, provider, and vision flag for every model Leanroute knows about. Use this to score alternatives client-side.
get_usageAggregated spend + token counts for the caller's Leanroute org. Group by day/model/provider/key. Default window: last 30 days.
list_keysList runtime gateway keys (gw_live_*) for the caller's org. Includes revoked keys for history.
list_modelsList all LLM models this Leanroute account can dispatch to (filtered by configured provider keys + BYOK). Returns OpenAI-shaped model objects.
revoke_runtime_keyRevoke a runtime key by id. Idempotent from the caller's perspective; a missing id returns 404.
route_callDispatch an LLM completion through Leanroute. OpenAI chat-completions shape. Requires LEANROUTE_RUNTIME_KEY in env (a gw_live_* key). If you don't have one, call `create_runtime_key` first and surface the returned key to the user.
Public scan report
scanner v0.1.9 · 2026-09-21 · same rubric, same numbers if you re-run it
- Code scan11 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancerepository not readable: repo not found3/15
- Maintainer identityno repository or website to verify2/10
Install directly
Runs npx -y @leanroute/mcp-server on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add mcp-server -- npx -y @leanroute/mcp-server
MCP Server: common questions
- Is MCP Server safe?
- With care: it is graded C, so read the findings first (55/100). Read the MCP Server safety report
- How do I install MCP Server?
- It runs on your machine. Copy the Claude Code, Claude Desktop or Cursor config from the install section.
- Does MCP Server need an API key?
- Yes. The registry entry asks for
LEANROUTE_ADMIN_KEY,LEANROUTE_RUNTIME_KEY. - Is MCP Server maintained?
- The latest release is v0.1.3.
- What can I use instead of MCP Server?
- Servers from other publishers that do the same job: agentburn MCP server, three.ws Brain MCP server and Ausca MCP server. Compare all MCP Server alternatives.
Alternatives to MCP Server
Same job from other publishers: the closest match first, then the best rated.
- agentburnLocal profiler: which usage window took you out, and where your agent's money goesnot reviewedEstablishedA
- three.ws BrainList LLM providers and run chat completions through the three.ws multi-provider router.not reviewedEstablishedB
- AuscaPay-per-call APIs and MCP services for agents, no accounts or keys, with verifiable receipts.not reviewedEstablishedB
- Doc BridgeResolve documentation ownership, edit roots, checks, and human handoffs before an agent edits code.not reviewedGrowingA
- ClaudinhoLive 2026 World Cup scores, fixtures & standings for your AI agent. No keys. Unofficial fan project.not reviewedGrowingA