LocalPaid service

AI Gateway MCP server

leanroute/ai-gateway

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

Install AI Gateway in Claude Code

Claude Code
claude mcp add leanroute-ai-gateway -e LEANROUTE_ADMIN_KEY=... -- npx -y @leanroute/mcp-server
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "leanroute-ai-gateway": {
      "command": "npx",
      "args": [
        "-y",
        "@leanroute/mcp-server"
      ],
      "env": {
        "LEANROUTE_ADMIN_KEY": "..."
      }
    }
  }
}

Replace each ... with your own value.

Frequently asked questions

What does the AI Gateway MCP server do?

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

Is the AI Gateway MCP server free?

Probably not entirely. The listing mentions pay-per-call, credits or a subscription. Check the provider for current pricing.

Does AI Gateway run locally or remotely?

Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.

How do I add AI Gateway to Claude Code?

Run: claude mcp add leanroute-ai-gateway -e LEANROUTE_ADMIN_KEY=... -- npx -y @leanroute/mcp-server

More ai agents & coding agents MCP servers

View all