Agent MCP Gateway

A Model Context Protocol (MCP) gateway that aggregates multiple MCP servers and provides policy-based access control for agents and subagents. Solves Claude Code's MCP context window waste by enabling on-demand tool discovery instead of loading all tool definitions upfront. It runs locally over stdio via the published package.

People connecting this server to Claude, Cursor, VS Code, or another MCP client. The project is written in Python.

VERIFIED ACTIVE

LAST COMMIT 2025-12-02 · ★ 41 · #515 OF 848 MAINTAINED OTHER · VERIFIED 2026-08-25

MIT · Python servers · how we verify → /methodology

01 · Install Agent MCP Gateway

before you install - you'll need

Set GATEWAY_MCP_CONFIG, GATEWAY_RULES, BRAVE_API_KEY, DATABASE_URL, GATEWAY_DEBUG before connecting. GATEWAY_DEFAULT_AGENT is optional or environment-specific per the README.

Claude Code

claude mcp add roddutra-agent-mcp-gateway -- uvx agent-mcp-gateway

Claude Desktop / Cursor / VS Code - add to config

{
  "mcpServers": {
    "roddutra-agent-mcp-gateway": {
      "command": "uvx",
      "args": [
        "agent-mcp-gateway"
      ]
    }
  }
}

Same JSON for Cursor. For VS Code, rename the top-level key from `mcpServers` to `servers`.

Using another client? Same JSON, different key

Claude Desktop · mcpServers

Cursor · mcpServers

VS Code · servers

Windsurf · mcpServers

Zed · context_servers

Cline · mcpServers

Roo Code · mcpServers

Continue · mcpServers

LibreChat · mcpServers

Gemini CLI · mcpServers

Codex CLI · mcp_servers

Full setup guides: every client.

02 · Evidence

Security posture

What to check before giving this server access to your agent - from the registry, GitHub, and our own probes. We don't score safety; we show what's verifiable.

runs as local process (stdio) - runs on your machine with your user's permissions

license MIT - declared in the repository

pypi package agent-mcp-gateway - check the name against the project README before installing (PyPI has no namespace ownership)

registry namespace io.github.roddutra is GitHub-verified and matches the repo owner

03 · What Agent MCP Gateway can do

Prose above is summarized from the project's README and registry record - no invented capabilities.

Latest releases

v0.2.5 · 2025-12-02

Fixed · Graceful shutdown of downstream MCP servers - stdio subprocesses are now properly terminated when gateway exits · Gateway now follows MCP specification for stdio shutdown: close stdin, wait 2s, SIGTERM, then…

v0.2.4 · 2025-11-12

Changed · Enhanced MCP Registry metadata with title, repository info, and environment variable documentation · Condensed release process documentation (57% reduction) while maintaining all key information · Improved…

v0.2.3 · 2025-11-12

Added · MCP Registry publishing support via automated GitHub Actions workflow · server.json configuration for MCP Registry metadata · MCP Registry identifier in README.md for PyPI ownership validation…

04 · Who maintains Agent MCP Gateway

Agent MCP Gateway is maintained by roddutra. It's the only MCP server we track from this author; the repo dates to Oct 2025.

05 · Facts

category
other - ranked #515 of 848 actively-maintained other servers as of 2026-08-25.
registry
io.github.roddutra/agent-mcp-gateway (active, first published 2025-11-12 · 3 versions)
packages
pypi:agent-mcp-gateway

06 · Agent MCP Gateway FAQ

What is Agent MCP Gateway?

A Model Context Protocol (MCP) gateway that aggregates multiple MCP servers and provides policy-based access control for agents and subagents. Solves Claude Code's MCP context window waste by enabling on-demand tool discovery instead of loading all tool definitions upfront. It runs locally over stdio via the published package.

Is Agent MCP Gateway still maintained?

Yes - as of 2026-08-25, its last commit was 2025-12-02. We re-verify nightly.

How do I install Agent MCP Gateway?

Run `uvx agent-mcp-gateway`. The README documents 6 environment variables (GATEWAY_MCP_CONFIG, GATEWAY_RULES, GATEWAY_DEFAULT_AGENT…) to set first. Set GATEWAY_MCP_CONFIG, GATEWAY_RULES, BRAVE_API_KEY, DATABASE_URL, GATEWAY_DEBUG before connecting. GATEWAY_DEFAULT_AGENT is optional or environment-specific per the README. You can also paste the ready-made client config above.

Does Agent MCP Gateway run locally?

Yes - it's a stdio server: it runs on your machine (via uvx) with your user's permissions. Your data stays local unless the server itself calls external APIs.

07 · Alternatives to Agent MCP Gateway

More MCP servers to compare · Pmd · Cli2mcp · Rootly · x402 Discovery MCP · Rootstock (RSK) MCP Server

More Python MCP servers · Backburner · Health Bridge for AI · Zettel Forge · Memory OS AI · Agentpay · see all