Home › Other › Agent MCP Gateway

Agent MCP Gateway

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

Python
★ 41 stars Last pushed 2025-12-02 License: MIT

Connect

Review any command before running it. Package names and URLs come from the server's own registry entry.

Package (pypi 0.2.5)

uvx agent-mcp-gateway

Or add to your MCP client config:

{
  "mcpServers": {
    "agent-mcp-gateway": {
      "command": "uvx",
      "args": [
        "agent-mcp-gateway"
      ],
      "env": {
        "GATEWAY_MCP_CONFIG": "<YOUR_VALUE>",
        "GATEWAY_RULES": "<YOUR_VALUE>",
        "GATEWAY_DEFAULT_AGENT": "<YOUR_VALUE>",
        "GATEWAY_DEBUG": "<YOUR_VALUE>"
      }
    }
  }
}
  • GATEWAY_MCP_CONFIG — Path to MCP servers configuration file (default: .mcp.json)
  • GATEWAY_RULES — Path to gateway access control rules file (default: .mcp-gateway-rules.json)
  • GATEWAY_DEFAULT_AGENT — Default agent ID when not provided in tool calls
  • GATEWAY_DEBUG — Enable debug mode and expose diagnostic tools (default: false)

Related servers

Data from the Official MCP Registry