Skip to content
MCP server

Agent MCP Gateway

On-demand tool discovery for all your MCPs and per-subagent MCP controls to preserve…

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
0.2.5
Listing updated
4 days ago

About Agent MCP Gateway

Agent MCP Gateway is an open-source MCP server. It runs locally on your machine and is started by your AI client.

On-demand tool discovery for all your MCPs and per-subagent MCP controls to preserve context window.

Install

Run in a terminal

claude mcp add agent-mcp-gateway -- uvx agent-mcp-gateway

Add to claude_desktop_config.json

{
  "mcpServers": {
    "agent-mcp-gateway": {
      "command": "uvx",
      "args": [
        "agent-mcp-gateway"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "agent-mcp-gateway": {
      "command": "uvx",
      "args": [
        "agent-mcp-gateway"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "agent-mcp-gateway": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "agent-mcp-gateway"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "agent-mcp-gateway": {
      "command": "uvx",
      "args": [
        "agent-mcp-gateway"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "agent-mcp-gateway": {
      "command": "uvx",
      "args": [
        "agent-mcp-gateway"
      ]
    }
  }
}

Configuration

  • GATEWAY_MCP_CONFIGPath to MCP servers configuration file (default: .mcp.json)
  • GATEWAY_RULESPath to gateway access control rules file (default: .mcp-gateway-rules.json)
  • GATEWAY_DEFAULT_AGENTDefault agent ID when not provided in tool calls
  • GATEWAY_DEBUGEnable debug mode and expose diagnostic tools (default: false)

Pricing

Open source

Agent MCP Gateway FAQ

Is Agent MCP Gateway free?

Yes. Agent MCP Gateway is open source, so you can use and self-host it for free.

How do I add Agent MCP Gateway to Claude Code?

Run this command in your terminal: claude mcp add agent-mcp-gateway -- uvx agent-mcp-gateway