@leanroute/mcp-server

MCPcommunity
v0.1.3dev.leanrouteApache-2.0Updated 1mo agonpmGitHub

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

Works in
ClaudeCursorCopilotGemini

Inferred from the transports this listing declares (stdio). A client not listed here hasn’t been ruled out — it just isn’t something Forge can confirm.

Automatically indexed from public sources. Not yet verified by the developer on Forge.Claim this listing →
304Downloads/wk
1mo agoLast update
Needs 1 credential before it runs
  • LEANROUTE_ADMIN_KEYAPI keyrequired

    Admin API key (gw_admin_*). Mint at https://leanroute.dev/dashboard/admin-keys. Required for platform tools (pricing, usage, credit, key management).

  • LEANROUTE_RUNTIME_KEYAPI keyoptional

    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.

Declared by the author in the official MCP registry. Forge does not store, broker, or ever see these values — the config below is scaffolded with placeholders you fill in locally.

Package
Authordev.leanroute
LicenseApache-2.0
Version0.1.3
Sourcenpm+mcp-registry
Trust Status
B
60/100Good
✓Listed in Forge index+10/10
—Publisher identity verified+0/20
→ Publisher: run `forge publish` from the package repo to claim ownership
—Ed25519 publish signature+0/5
→ Included automatically when the publisher runs `forge publish`
—Domain verification+0/5
→ Publisher: host /.well-known/forge.json on the package homepage with { "publisher": "<github-login>" }
—npm Trusted Publishing (Sigstore)+0/5
→ Publish from GitHub Actions with --provenance so the attestation binds this package to this repo
—npm maintainer match+0/5
→ Earned once your identity is verified above and that login is an npm maintainer of this package
✓CVE scan · clean+30/30
✓Static analysis · clean+20/20
Paste into Claude Code, Cursor, or any AI assistant to fix all gaps
StatusCommunity-indexed
PublisherUnverified
SignatureUnsigned
Domain—
Provenance—
Dependencies✓ 60 resolved+ · none vulnerable
Tool surface9 tools · none privileged
Security scan✓ Cleanv0.1.3 · 1mo agoHow well does this scan work?
EvalsNone
IndexedAug 26, 2026

Verification confirms publisher identity (repo ownership), not code safety. The security scan covers known CVEs and suspicious install scripts.

Tools

9 tools · none privileged
Statically extracted from the published packagev0.1.3 · 1mo ago

Read out of the source npm actually ships, at scan time. The package was never executed. Tools registered dynamically at runtime, or hidden inside bundled or minified code, can be missed — so this is a floor on the tool surface, not a complete census of it.

list_modelsList all LLM models this Leanroute account can dispatch to (filtered by configured provider keys + BYOK). Returns OpenAI-shaped model objects.

List all LLM models this Leanroute account can dispatch to (filtered by configured provider keys + BYOK). Returns OpenAI-shaped model objects.

No input schema was published for this tool.

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.

Full 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.

No input schema was published for this tool.

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'.

Rank 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'.

No input schema was published for this tool.

get_usageAggregated spend + token counts for the caller's Leanroute org. Group by day/model/provider/key. Default window: last 30 days.

Aggregated spend + token counts for the caller's Leanroute org. Group by day/model/provider/key. Default window: last 30 days.

No input schema was published for this tool.

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).

Current prepaid-credit balance in USD, including bonus credit. Read-only — this MCP server cannot initiate a top-up (dashboard-only for safety).

No input schema was published for this tool.

list_keysList runtime gateway keys (gw_live_*) for the caller's org. Includes revoked keys for history.

List runtime gateway keys (gw_live_*) for the caller's org. Includes revoked keys for history.

No input schema was published for this tool.

create_runtime_keyMint 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.

Mint 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.

No input schema was published for this tool.

revoke_runtime_keyRevoke a runtime key by id. Idempotent from the caller's perspective; a missing id returns 404.

Revoke a runtime key by id. Idempotent from the caller's perspective; a missing id returns 404.

No input schema was published for this tool.

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.

Dispatch 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.

No input schema was published for this tool.

9 of 9 tools published a description.

Tool names and descriptions are written by the publisher and shown verbatim as inert text. They are the strings an MCP client passes to a model, so Forge scans them for prompt-injection patterns — any finding appears with the security scan above. “Privileged” is a keyword match on the tool name, not an audit of what the tool does: a benign-sounding name can still do anything.

About

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

Keywords
mcp
Alternatives
Comparing tool surfaces…

Dependency tree

What one Forge scan resolved from npm metadata on 2026-08-29 — observed resolution, not a publisher declaration.

60 packages resolved · 2 direct · none carrying advisories Resolution stops at depth 4 and 60 packages.

The crawl stopped at the depth-4 limit. Anything below that level was never resolved.

The crawl stopped at the 60-package limit. The rest of the tree was never resolved.

36 more resolved packages are not drawn here (display cap: 24). Every dependency carrying an advisory is drawn regardless of the cap. Full inventory (CycloneDX SBOM)

Declared but not resolved

54 declared dependencies never landed in the tree. They are missing from Forge's resolution, not from the package.

+42 more not listed. The counts by reason above cover all of them.

Not followed: peerDependencies. This tree covers runtime dependencies only, so anything those pull in was never resolved.