Skip to main content

AI Gateway

The LeanMCP AI Gateway is a unified API proxy that sits between your applications and LLM providers. By routing all AI requests through the gateway, you gain complete visibility into every interaction, enabling better security, cost optimization, and debugging.
AI Gateway Architecture

Why Use AI Gateway?

How It Works

One simple change: Replace your AI provider’s base URL with the LeanMCP gateway URL, and you instantly get logging, security, and analytics for all your AI interactions.

Supported Providers

ProviderEndpointStatus
OpenAIaigateway.leanmcp.com/v1/openaiAvailable
Anthropicaigateway.leanmcp.com/v1/anthropicAvailable
xAI (Grok)aigateway.leanmcp.com/v1/xaiAvailable
Fireworksaigateway.leanmcp.com/v1/fireworksAvailable
ElevenLabsaigateway.leanmcp.com/v1/elevenlabsAvailable

Who Is This For?

Use the AI Gateway with your coding tools like Windsurf or Cursor to:
  • See exactly what code is being sent to AI providers
  • Detect if sensitive data (passwords, keys) is being exposed
  • Track your personal AI token usage and costs

Get Started as Personal User

Learn how to set up AI Gateway for personal use

Quick Start

1

Get Credits

Purchase credits at leanmcp.com - you need credits to use the gateway
2

Get Your API Key

Generate an API key from your dashboard
3

Update Base URL

Change your AI provider’s base URL to the gateway endpoint
4

Start Using

All requests now flow through the gateway with full logging

Detailed Integration Guide

See code examples for all supported providers and SDKs