Welcome to the api0 MCP Gateway Ecosystem
Most AI tools today generate text. api0 is about execution—secure, governed, multi-tenant execution.
The Model Context Protocol (MCP) is becoming the standard for connecting AI agents like Claude to real tools and APIs. But MCP itself is just a protocol. It doesn't handle authentication, billing, multi-tenancy, or access control. That's the gap api0 fills.
api0 is an MCP gateway: the secure infrastructure layer that sits between Claude and your application services. The whole ecosystem is three phases — set up once, connect per user, govern every call:
Three Pillars of the Ecosystem
1. Admin Setup — Define Your Tools Once
From the api0 Dashboard, application admins configure everything in one place:
- Upload an OpenAPI spec and api0 automatically converts your endpoints into MCP tools Claude can call.
- Configure downstream auth: choose between Google Service Account (OIDC), bearer tokens, or API keys. api0 handles minting and caching credentials at call time.
- Register a Client ID that Claude uses to initiate the OAuth flow on behalf of your users.
You define it once. Every user who connects through Claude inherits the same security model automatically.
2. User OAuth Flow — Claude Connects Securely
When an end-user wants Claude to access their account, a standard OAuth 2.0 flow kicks in:
- Claude hits the api0
/oauth/authorizeendpoint. - The user approves in the api0 Dashboard (already authenticated via Google).
- api0 issues a live API key tied to that specific user and application provider.
- Claude holds that key and uses it for all subsequent tool calls.
Your users never share passwords. Your application never sees raw LLM requests. The key inherently encodes both user identity and application context — that dual-encoding is what makes every later call a single lookup instead of a chain of them:
3. Real-Time Tool Execution — Governed at Every Step
When Claude calls a tool through the gateway:
- api0 validates the API key and resolves the user + application context in one lookup.
- It mints a fresh OIDC token (cached for 55 minutes for performance) to authenticate against your application.
- It injects
X-User-EmailandX-Tenant-Idheaders so your application always knows who is acting. - It checks the user's credit balance before proxying.
- It logs the call and deducts credits after execution.
Your application receives a clean, authenticated HTTP request. It never needs to know anything about MCP, Claude, or the gateway.
Not Another AI Middleware
This isn't about wrapping your API in a chatbot. It's about giving Claude governed access to tools your application already exposes.
Your endpoints stay yours. Your auth stays yours. Your access control stays yours.
api0 just handles the plumbing that would otherwise take months to build correctly: OAuth, OIDC minting, multi-tenant isolation, credit metering, and MCP protocol compliance.
The result: Claude can act on your users' behalf—safely, auditably, at scale.
That's the api0 ecosystem.