Anthropic's MCP standard lets agents discover and call tools through a typed protocol. AIgateway exposes the catalog and primitives via MCP at api.aigateway.sh/mcp — Claude Code, Cursor agents, and any MCP-aware client can list models, call them, mint sub-accounts, and tag spend.
Preferred transport. One POST endpoint, no session management. Add this to your MCP host's config.
{
"mcpServers": {
"aigateway": {
"type": "http",
"url": "https://api.aigateway.sh/mcp",
"headers": { "Authorization": "Bearer sk-aig-..." }
}
}
}If your client only supports the older SSE transport, use these endpoints instead.
{
"mcpServers": {
"aigateway": {
"type": "sse",
"url": "https://api.aigateway.sh/mcp/sse",
"headers": { "Authorization": "Bearer sk-aig-..." }
}
}
}Open https://api.aigateway.sh/mcp/inspect in a browser to list tools, schemas, and sample invocations without leaving the URL.