{"name":"dev.leanroute/mcp-server","slug":"leanroute-mcp-server","title":null,"description":"Leanroute MCP: route to 13 LLM providers, check pricing/usage/credit, manage keys from any agent.","url":"https://mcp.market/server/leanroute-mcp-server","rating":null,"grade":"C","score":55,"certified":false,"status":"active","category":"ai","tags":["ai"],"presence":{"score":7,"stars":null,"forks":null,"downloads_week":30,"last_push_at":null,"license":"Apache-2.0"},"uptime":null,"claimed":false,"transport":"npm","callable_via_gateway":false,"default_price_micros":0,"repository":"https://github.com/leanroute/ai-gateway","website":null,"version":"0.1.3","remotes":[],"packages":[{"registryType":"npm","identifier":"@leanroute/mcp-server","version":"0.1.3","transport":{"type":"stdio"},"environmentVariables":[{"description":"Admin API key (gw_admin_*). Mint at https://leanroute.dev/dashboard/admin-keys. Required for platform tools (pricing, usage, credit, key management).","isRequired":true,"format":"string","isSecret":true,"name":"LEANROUTE_ADMIN_KEY"},{"description":"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.","format":"string","isSecret":true,"name":"LEANROUTE_RUNTIME_KEY"},{"description":"Base URL override for self-hosted Leanroute instances.","format":"string","default":"https://api.leanroute.dev","name":"LEANROUTE_BASE_URL"}]}],"tools":[{"name":"cheapest_for","description":"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'.","write_action":false,"price_micros":0,"input_schema":null},{"name":"create_runtime_key","description":"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.","write_action":true,"price_micros":0,"input_schema":null},{"name":"get_credit_balance","description":"Current prepaid-credit balance in USD, including bonus credit. Read-only — this MCP server cannot initiate a top-up (dashboard-only for safety).","write_action":false,"price_micros":0,"input_schema":null},{"name":"get_pricing","description":"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.","write_action":false,"price_micros":0,"input_schema":null},{"name":"get_usage","description":"Aggregated spend + token counts for the caller's Leanroute org. Group by day/model/provider/key. Default window: last 30 days.","write_action":false,"price_micros":0,"input_schema":null},{"name":"list_keys","description":"List runtime gateway keys (gw_live_*) for the caller's org. Includes revoked keys for history.","write_action":false,"price_micros":0,"input_schema":null},{"name":"list_models","description":"List all LLM models this Leanroute account can dispatch to (filtered by configured provider keys + BYOK). Returns OpenAI-shaped model objects.","write_action":false,"price_micros":0,"input_schema":null},{"name":"revoke_runtime_key","description":"Revoke a runtime key by id. Idempotent from the caller's perspective; a missing id returns 404.","write_action":false,"price_micros":0,"input_schema":null},{"name":"route_call","description":"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.","write_action":false,"price_micros":0,"input_schema":null}],"scan":{"score":55,"grade":"C","scanned_at":"2026-09-21T22:09:01.571Z","report":{"scannerVersion":"0.1.9","scannedAt":"2026-09-21T22:09:01.502Z","components":{"code":{"score":25,"max":25,"notes":["11 source files scanned"]},"reliability":{"score":-1,"max":20,"notes":["no gateway calls yet and no remote to probe"]},"poisoning":{"score":-1,"max":15,"notes":["tools not inspected (local package is not executed); not counted"]},"auth":{"score":6,"max":15,"notes":["static API keys via environment variables"]},"maintenance":{"score":3,"max":15,"notes":["repository not readable: repo not found"]},"identity":{"score":2,"max":10,"notes":["no repository or website to verify"]}},"findings":[],"inputs":{"packages":[{"registryType":"npm","identifier":"@leanroute/mcp-server","version":"0.1.3","found":true,"license":"Apache-2.0","hasInstallScripts":false,"dependencyCount":2,"publishedAt":"2026-08-22T15:16:25.210Z","repositoryUrl":"git+https://github.com/leanroute/ai-gateway.git","weeklyDownloads":30}],"repo":{"found":false,"owner":"leanroute","repo":"ai-gateway","error":"repo not found"},"icon":{"url":"https://leanroute.dev/icon.svg?61f4ef8964e7b456","source":"site"},"presence":{"stars":null,"forks":null,"downloadsWeek":30,"license":"Apache-2.0","lastPushAt":null,"score":7}}}},"grade_history":[],"reviews":[]}