For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.
Claude
Connect Claude Desktop and Claude Code to agentgateway
Configure Anthropic’s Claude Desktop app or Claude Code CLI to use agentgateway as an MCP server.
Before you begin
- Install and run agentgateway.
- Confirm agentgateway is up by opening the agentgateway UI.
- Use the MCP endpoint
http://localhost:3000/mcp/httpto connect your client to agentgateway. If you run agentgateway on a different host or port, replacelocalhost:3000in the examples accordingly.
Claude Desktop
Add agentgateway to your Claude Desktop configuration file.
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"agentgateway": {
"url": "http://localhost:3000/mcp/http"
}
}
}Claude Code CLI
Configure Claude Code to connect to agentgateway.
claude mcp add agentgateway --transport http http://localhost:3000/mcp/httpOr, add to your project’s .mcp.json.
{
"mcpServers": {
"agentgateway": {
"type": "http",
"url": "http://localhost:3000/mcp/http"
}
}
}/mcp/sse) is deprecated. Use the streamable HTTP transport (/mcp/http) for all new setups.Authentication
If agentgateway requires authentication, include the token in the URL or headers.
{
"mcpServers": {
"agentgateway": {
"url": "http://localhost:3000/mcp/http",
"headers": {
"Authorization": "Bearer your-token-here"
}
}
}
}