The Agent MCP Gateway is a Model Context Protocol (MCP) gateway that aggregates multiple MCP servers and provides policy-based access control for agents and subagents, reducing context window waste by enabling on-demand tool discovery.
From the registry: On-demand tool discovery for all your MCPs and per-subagent MCP controls to preserve context window.

$ uvx agent-mcp-gateway --initPlease install the `agent-mcp-gateway` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Initialize gateway config** — Create config templates at ~/.config/agent-mcp-gateway/ Run: `uvx agent-mcp-gateway --init`
Canonical MCP server config (stdio transport):
- command: `uvx`
- args: ["agent-mcp-gateway"]
- optional environment variables:
- `GATEWAY_MCP_CONFIG`: Path to downstream servers mcp.json (example: `~/.config/agent-mcp-gateway/.mcp.json`)
- `GATEWAY_RULES`: Path to access rules JSON (example: `~/.config/agent-mcp-gateway/.mcp-gateway-rules.json`)
- `GATEWAY_DEFAULT_AGENT`: Default agent id for single-agent mode (example: `developer`)
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.GATEWAY_MCP_CONFIGrequiredPath to the MCP servers configuration file.GATEWAY_RULESrequiredPath to the gateway rules configuration file.GATEWAY_DEFAULT_AGENTDefault agent identifier for access control.AI orchestration with hive-mind swarms, neural networks, and 87 MCP tools for enterprise dev.
Persistent codebase knowledge graph. Survives session restarts and context compaction.
A powerful toolkit for coding, providing semantic retrieval and editing capabilities.