Agent MCP Gateway
About
On-demand tool discovery for all your MCPs and per-subagent MCP controls to preserve context window.
Use this server
Add it to your MCP client. The catalogue lists this config verbatim from its source — it does not run, download, or vouch for the server. Review the command before you run it.
Transportstdio (runs a local command)
Env vars
GATEWAY_MCP_CONFIG GATEWAY_RULES GATEWAY_DEFAULT_AGENT GATEWAY_DEBUGClaude Code
claude mcp add --env GATEWAY_MCP_CONFIG= --env GATEWAY_RULES= --env GATEWAY_DEFAULT_AGENT= --env GATEWAY_DEBUG= agent-mcp-gateway -- uvx agent-mcp-gateway
Cursor
If the button doesn't open Cursor, use the JSON below — Cursor accepts the same mcpServers config.
VS Code
code --add-mcp '{"name":"agent-mcp-gateway","command":"uvx","args":["agent-mcp-gateway"],"env":{"GATEWAY_MCP_CONFIG":"","GATEWAY_RULES":"","GATEWAY_DEFAULT_AGENT":"","GATEWAY_DEBUG":""}}'
JSON
{
"mcpServers": {
"agent-mcp-gateway": {
"command": "uvx",
"args": [
"agent-mcp-gateway"
],
"env": {
"GATEWAY_MCP_CONFIG": "",
"GATEWAY_RULES": "",
"GATEWAY_DEFAULT_AGENT": "",
"GATEWAY_DEBUG": ""
}
}
}
}
Environment variables are listed by name only — fill in your own values. Entries never carry secrets.