Claude
Configure Anthropic’s Claude Desktop app or Claude Code CLI to use Agent Gateway as an MCP server.
Claude Desktop
Add Agent Gateway to your Claude Desktop configuration file:
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"agentgateway": {
"url": "http://localhost:15000/mcp/sse"
}
}
}Edit %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"agentgateway": {
"url": "http://localhost:15000/mcp/sse"
}
}
}Claude Code CLI
Configure Claude Code to connect to Agent Gateway:
claude mcp add agentgateway --transport sse http://localhost:15000/mcp/sseOr add to your project’s .mcp.json:
{
"mcpServers": {
"agentgateway": {
"type": "sse",
"url": "http://localhost:15000/mcp/sse"
}
}
}Streamable HTTP Transport
For better performance, use the streamable HTTP transport:
{
"mcpServers": {
"agentgateway": {
"url": "http://localhost:15000/mcp/http"
}
}
}Authentication
If Agent Gateway requires authentication, include the token in the URL or headers:
{
"mcpServers": {
"agentgateway": {
"url": "http://localhost:15000/mcp/sse",
"headers": {
"Authorization": "Bearer your-token-here"
}
}
}
}