Agent MCP Gateway
local MCP serverInstallation
Terminal
claude mcp add agent-mcp-gateway -e GATEWAY_MCP_CONFIG=... -e GATEWAY_RULES=... -e GATEWAY_DEFAULT_AGENT=... -e GATEWAY_DEBUG=... -- uvx agent-mcp-gateway
Run in your project folder. Add --scope user to use it everywhere.
Claude Desktop, Cursor & other clients
Add to claude_desktop_config.json or .cursor/mcp.json.
{
"mcpServers": {
"agent-mcp-gateway": {
"command": "uvx",
"args": [
"agent-mcp-gateway"
],
"env": {
"GATEWAY_MCP_CONFIG": "...",
"GATEWAY_RULES": "...",
"GATEWAY_DEFAULT_AGENT": "...",
"GATEWAY_DEBUG": "..."
}
}
}
}Fill in the environment variables with your own credentials.
Summary
On-demand tool discovery for all your MCPs and per-subagent MCP controls to preserve context window.
Questions
Agent MCP Gateway is a local MCP server distributed as the pypi package agent-mcp-gateway.
Run: claude mcp add agent-mcp-gateway -e GATEWAY_MCP_CONFIG=... -e GATEWAY_RULES=... -e GATEWAY_DEFAULT_AGENT=... -e GATEWAY_DEBUG=... -- uvx agent-mcp-gateway
Run: codex mcp add agent-mcp-gateway --env GATEWAY_MCP_CONFIG=... --env GATEWAY_RULES=... --env GATEWAY_DEFAULT_AGENT=... --env GATEWAY_DEBUG=... -- uvx agent-mcp-gateway
Similar MCP servers
NameStars
- token-optimizer-mcpio.github.ooples/token-optimizer-mcp537
- Entrolyio.github.juyterman1000/entroly470
- ClariLayerio.github.clarilayer/clarilayer82
- Bhived MCPio.github.ArtKeyAi/bhived-mcp35
- my-cool-proxyio.github.karashiiro/my-cool-proxy15
- ContextOS — Powered Exoskeleton for AI Codingio.github.yubinbin32-ops/contextos11
- mdflow — Context OS for AI Coding Agentsio.github.yubinbin32-ops/mdflow11
- Honchoio.github.plastic-labs/honcho7,369