Connect AgentGateway to Claude

Last updated: April 2026

Control your entire AgentGateway instance from natural conversation with Claude. List agents, rotate credentials, audit traffic, send emails, and manage rate limits — all without leaving Claude.

AgentGateway exposes its full management API as a remote Model Context Protocol (MCP) server, which means Claude can use it as a tool. This guide walks through connecting Claude to your AgentGateway account.

Note: AgentGateway is currently a custom connector. Once we're listed in the Anthropic Connectors Directory, setup will be a single click — no manual configuration required.

What You Can Do

Once connected, Claude can:

All actions respect your role (admin, manager, or operator) and are scoped to your organization.

Prerequisites

Before connecting, make sure you have:

  1. An AgentGateway account — Sign up at agentgateway.com if you don't already have one
  2. Claude Pro, Max, Team, or Enterprise — Custom connectors are not available on the Free plan
  3. A Claude client — Claude.ai (web), Claude Desktop, or Claude Code

Setup Instructions

Claude.ai (Web) and Claude Desktop

  1. Open Claude and go to Settings → Connectors
  2. Scroll to the bottom and click Add custom connector
  3. Enter the following details:
    • Name: AgentGateway
    • URL: https://app.agentgateway.com/api/mcp
  4. Click Add and then Connect
  5. A new browser tab will open to the AgentGateway consent page
  6. Log in to AgentGateway if prompted
  7. Review the permissions — AgentGateway will request access to agents, credentials, audit logs, alerts, email, and usage data
  8. Click Allow Access
  9. You'll be redirected back to Claude automatically. The connector will show as connected.

That's it. You can now talk to AgentGateway directly from any Claude conversation.

Claude Code

  1. Open your MCP config file (~/.config/claude-code/mcp.json on macOS/Linux, or equivalent on Windows)
  2. Add AgentGateway as a server:
    {
      "mcpServers": {
        "agentgateway": {
          "url": "https://app.agentgateway.com/api/mcp"
        }
      }
    }
  3. Restart Claude Code
  4. The first time you invoke an AgentGateway tool, Claude Code will open a browser window to complete OAuth
  5. Log in and click Allow Access — then return to Claude Code

Your tokens are stored securely and refreshed automatically. You won't need to re-authenticate unless you explicitly revoke access.

Example Prompts

Once connected, try asking Claude any of the following:

Agent Management

Credentials & API Keys

Audit & Monitoring

Usage & Billing

Alerts & Configuration

Email

You can chain these together conversationally — Claude remembers context within a session, so follow-up questions like “now delete the one from that list with the lowest health score” work naturally.

How It Works

AgentGateway's MCP connector uses OAuth 2.0 with PKCE — the same standard used by Slack, Google, and Stripe for secure authorization. You never paste API keys into Claude. Instead:

  1. Claude redirects you to AgentGateway
  2. You log in and explicitly grant permission
  3. AgentGateway issues a short-lived access token to Claude
  4. Claude uses that token to make authenticated requests on your behalf
  5. Tokens refresh automatically, so you stay connected until you revoke access

All actions Claude takes on your behalf are logged in AgentGateway's audit trail, so you always have a full record of what was done and when.

Managing Access

You can revoke Claude's access at any time:

From Claude

Go to Settings → Connectors, find AgentGateway, and click Disconnect.

From AgentGateway

Log in to your AgentGateway dashboard, go to Settings → Connected Apps, and revoke the Claude session. This will immediately invalidate any tokens Claude holds, even if you don't disconnect from the Claude side.

Troubleshooting

“Couldn't reach the MCP server”

“Authorization failed”

“Tool not found” or permission errors

Tokens expired unexpectedly

Security & Privacy

What's Next

We're actively working to get AgentGateway listed in the Anthropic Connectors Directory. Once approved, users will be able to install AgentGateway with a single click from within Claude — no manual URL entry required.

We're also planning a Cowork plugin that bundles the MCP server with opinionated skills and workflows, so you'll get not just tool access but full operational playbooks built in.

Need Help?