Agent MCP Gateway for Grok
io.github.roddutra/agent-mcp-gateway
On-demand tool discovery for all your MCPs and per-subagent MCP controls to preserve context window.
client:Grok
transport:stdio
runtime:pypi
Install Agent MCP Gateway in Grok
.mcp.json (in your project root)
{
"mcpServers": {
"agent-mcp-gateway": {
"type": "stdio",
"command": "uvx",
"args": [
"agent-mcp-gateway"
],
"env": {
"GATEWAY_MCP_CONFIG": "<GATEWAY_MCP_CONFIG>",
"GATEWAY_RULES": "<GATEWAY_RULES>",
"GATEWAY_DEFAULT_AGENT": "<GATEWAY_DEFAULT_AGENT>",
"GATEWAY_DEBUG": "<GATEWAY_DEBUG>"
}
}
}
}
Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs