Prototipo · Versión preliminar: todos los servidores del registro oficial, sincronizados cada 30 minutos. Las reseñas y las cuentas llegarán en una etapa posterior.
PopNx MCPServidores MCP para quienes usan IA · explicados con palabras sencillas

Agent MCP Gateway

de roddutraversión 0.2.5i★ –iSe ejecuta en tu computadora
Nombre en el registroio.github.roddutra/agent-mcp-gateway

Instalar

Resumen

Descripción del creador (original en inglés)

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

Los tres pilares de PopNx MCP

Estos tres nunca se combinan en una sola puntuación: las opiniones, las mediciones y la popularidad son cosas distintas.

Qué puedes hacer con él

Todavía no escribimos un resumen sencillo para este. Abajo están los datos que leímos del registro.

  • Conexión: Se ejecuta en tu computadora
  • Transporte: stdio
  • Categoría: Otros

Instalación

Elige la app de IA que usas y copia la configuración.

Antes de instalar

  • Revisiones básicas: 1 de 1 superadas
  • Se ejecuta en tu computadora con los permisos de tu usuario (archivos, red, apps).
  • Debes completar tú: GATEWAY_MCP_CONFIG, GATEWAY_RULES, GATEWAY_DEFAULT_AGENT, GATEWAY_DEBUG

Necesitas

  • PyPIuv de Python instalado (para el comando uvx)

¿Qué app usas?

Elige tu app arriba. La recordamos, así que la próxima vez el botón dirá “Instalar en …”.

Abre Claude Desktop → Settings → Developer → Edit Config y pega esto en claude_desktop_config.json

{
  "mcpServers": {
    "agent-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"
      }
    }
  }
}

Ejecuta esto en tu terminal

claude mcp add agent-gateway --env GATEWAY_MCP_CONFIG=your-value --env GATEWAY_RULES=your-value --env GATEWAY_DEFAULT_AGENT=your-value --env GATEWAY_DEBUG=your-value -- uvx agent-mcp-gateway

Completa los valores vacíos antes de ejecutarlo.

Abrir en Cursor

O copia la configuración tú

Pégalo en .cursor/mcp.json de tu proyecto, o en ~/.cursor/mcp.json

{
  "mcpServers": {
    "agent-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"
      }
    }
  }
}

Tu navegador te pide permiso para abrir la app; luego la app muestra la configuración y te pide confirmar. Los valores de las claves quedan vacíos para que los completes tú.

Abrir en VS Code

O copia la configuración tú

Pégalo en .vscode/mcp.json de tu proyecto

{
  "servers": {
    "agent-gateway": {
      "type": "stdio",
      "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"
      }
    }
  }
}

Tu navegador te pide permiso para abrir la app; luego la app muestra la configuración y te pide confirmar. Los valores de las claves quedan vacíos para que los completes tú.

Este se ejecuta en tu computadora, y ChatGPT solo puede conectarse a servidores en internet. Elige otra app.

Tu elección se guarda en una cookie en este dispositivo; no necesitas cuenta.

Valores que debes completar

  • GATEWAY_MCP_CONFIG env
    Path to MCP servers configuration file (default: .mcp.json)
  • GATEWAY_RULES env
    Path to gateway access control rules file (default: .mcp-gateway-rules.json)
  • GATEWAY_DEFAULT_AGENT env
    Default agent ID when not provided in tool calls
  • GATEWAY_DEBUG env
    Enable debug mode and expose diagnostic tools (default: false)

Esta configuración se genera a partir de la ficha del creador en el registro. Si el README dice otra cosa, sigue el README.

Qué puede hacer

Se ejecuta en tu computadora; la lista de herramientas aparece en tu app de IA después de instalarlo.

Revisiones básicasi

Revisamos información que cualquiera puede ver; no hemos leído el código. Las revisiones que no aplican no se cuentan. · Revisado el 7 nov 2026

  • ✓ Superada

    El creador coincide con el repo

    El nombre en el registro se verificó con la cuenta de GitHub roddutra, dueña del repo

  • … Aún sin revisar

    Sigue en mantenimiento

    Todavía no hemos leído este repo en GitHub

  • … Aún sin revisar

    Tiene licencia

    Todavía no hemos leído este repo en GitHub

  • – No aplica

    El endpoint responde

    Este se ejecuta en tu computadora; no hay endpoint en internet

  • – No aplica

    Inicio de sesión con OAuth

    Se ejecuta en tu computadora y usa ajustes locales en su lugar

  • … Aún sin revisar

    Sin instrucciones ocultas en las descripciones de herramientas

    Se ejecuta en tu computadora; solo podemos leer listas de herramientas de endpoints en internet

Comparado con otros en Otrosi

  • Más estrellas que el 0% de los otros 32688 servidores de esta categoría
  • Publicado en el registro más recientemente que el 1% de los otros 32688 servidores de esta categoría
  • Revisiones básicas iguales o mejores que el 100% de los otros 32688 servidores de esta categoría

Comparado con todos los servidores activos de esta categoría en el registro. Las estrellas solo cuentan cuando quien lo publica es dueño del repo.

Preguntas frecuentes

¿Es seguro Agent MCP Gateway?

Superó 1 de 1 revisiones básicas aplicables. No hemos leído el código. Antes de agregar una clave o un token, revisa qué acceso pide el servidor y usa una clave que tenga solo los permisos que necesitas.

¿Qué claves o códigos necesita?

El registro no indica ninguna clave obligatoria, aunque algunos servidores te piden iniciar sesión la primera vez que los usas.

¿Se ejecuta en mi computadora o en la nube?

Se ejecuta en tu computadora. Tu app de IA lo inicia cuando hace falta, y los datos no pasan por los servidores del creador (a menos que el propio servidor llame a un servicio en línea).

¿Sigue en mantenimiento?

El repo de GitHub cambió por última vez –, y la última versión (0.2.5) llegó al registro hace 11 meses.

¿Qué apps pueden usarlo?

Las apps compatibles con MCP, como Claude Desktop, Claude Code, Cursor y VS Code. También necesitas Python (uv) en tu computadora.

¿Qué puedo usar en su lugar?

En la misma categoría: Spec Driven Development, Remote Desktop Commander, 御府和田玉 在售作品查询

Alternativas

Servidores de la misma categoría hechos por otros creadores, ordenados por estrellas.

Cómo leer una tarjeta:★ Estrellas de GitHubiTres pilares: reseñas · revisiones · usoiActualizado = fecha en que se publicó la última versión en el registroi

Spec Driven Development

de formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

Se ejecuta en tu computadora★ 440MITActualizado hace 14 meses
Instalar

Remote Desktop Commander

de desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

Se ejecuta en la nube★ 211Actualizado anteayer
Instalar

README del creador

Abrir el README

Copiado tal cual del repo del creador. PopNx MCP no lo ha revisado ni lo respalda. Se quitaron HTML, imágenes y scripts. Los enlaces llevan fuera de este sitio.

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.

Status

  • ✅ M0: Foundation - Configuration, policy engine, audit logging, list_servers tool
  • ✅ M1: Core - Proxy infrastructure, get_server_tools, execute_tool, middleware, metrics, hot reload, OAuth support
  • 🚧 M2: Production - HTTP transport, health checks (planned)
  • 🚧 M3: DX - Single-agent mode, config validation CLI, Docker (planned)

Current Version: M1-Core Complete (with OAuth)

Table of Contents

  • Overview
  • Installation
  • Quick Start
  • Command-Line Options
  • Configuration File Discovery
  • Configuration
  • Usage
  • Gateway Tools
  • Security Considerations
  • Troubleshooting
  • Testing
  • Development
  • Architecture
  • Future Features
  • Documentation
  • Contributing
  • License
  • Support
  • Acknowledgments

Overview

The Problem

When multiple MCP servers are configured in development environments (Claude Code, Cursor, VS Code), all tool definitions from all servers load into every agent's and subagent's context window at startup:

  • 5,000-50,000+ tokens consumed upfront
  • 80-95% of loaded tools never used by individual agents
  • Context needed for actual work gets wasted on unused tool definitions
The Solution

The Agent MCP Gateway acts as a single MCP server that proxies to multiple downstream MCP servers based on configurable per-agent rules:

  • 3 gateway tools load at startup (~2k tokens)
  • Agents discover and request specific tools on-demand
  • 90%+ context reduction
  • Policy-based access control per agent/subagent
How It Works

The gateway sits between agents and downstream MCP servers, exposing only 3 lightweight tools. When an agent needs specific functionality, it discovers available servers and tools through the gateway, which filters visibility based on policy rules - agents only see servers and tools they have access to. This reduces each agent's context window to only relevant tools, while the gateway handles proxying authorized requests to downstream servers.

[View detailed diagram with examples →](docs/diagram-full.png) (includes downstream servers, tools, and gateway rules examples)

Key Features
  • ✅ On-Demand Tool Discovery - Load tool definitions only when needed
  • ✅ Per-Agent Access Control - Configure which servers/tools each agent can access
  • ✅ Easy Agent Integration - Simple template to add gateway support to any agent (see guide)
  • ✅ Deny-Before-Allow Policies - Explicit deny rules take precedence
  • ✅ Wildcard Support - Pattern matching for tool names (get_*, *_user)
  • ✅ Session Isolation - Concurrent requests don't interfere
  • ✅ Transparent Proxying - Downstream servers unaware of gateway
  • ✅ Audit Logging - All operations logged for monitoring
  • ✅ Performance Metrics - Track latency and error rates per agent/operation
  • ✅ Hot Configuration Reload - Update rules/servers without restart
  • ✅ Thread-Safe Operations - Safe concurrent access during reloads
  • ✅ Diagnostic Tools - Health monitoring via get_gateway_status (debug mode only)

Installation

# Creates ~/.config/agent-mcp-gateway/ with template configuration files

uvx agent-mcp-gateway --init

This generates two template files ready to customize:

  • mcp.json - Your downstream MCP servers (Brave, Postgres, etc.)
  • mcp-gateway-rules.json - Per-agent access policies (who can use which servers/tools)

For local development: See Development section.

Quick Start

1. Configure Gateway Files

After running uvx agent-mcp-gateway --init (see Installation), edit the generated template files:

# Define your downstream MCP servers

nano ~/.config/agent-mcp-gateway/.mcp.json

Define agent access policies

nano ~/.config/agent-mcp-gateway/.mcp-gateway-rules.json

See Configuration section for detailed examples and Configuration File Discovery for alternative file locations.

2. Add Gateway to Your MCP Client

Claude Code CLI:

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

Manual configuration:

{

"mcpServers": { "agent-mcp-gateway": { "command": "uvx", "args": ["agent-mcp-gateway"], "env": { "GATEWAY_MCP_CONFIG": "~/.config/agent-mcp-gateway/.mcp.json", "GATEWAY_RULES": "~/.config/agent-mcp-gateway/.mcp-gateway-rules.json", "GATEWAY_DEFAULT_AGENT": "developer" } } } }

Note: The env variables are optional if using default config locations. See Environment Variables Reference for all options.

3. Configure Your Agents

The gateway's tool descriptions are self-documenting, but for proper access control you should configure how your agents identify themselves. Choose the approach that fits your use case:

Approach 1: Multi-Agent Mode (Recommended)

For different agents with different permissions, configure each agent to pass its identity.

Add this to your agent's system prompt (e.g., CLAUDE.md, .claude/agents/agent-name.md):

## MCP Gateway Access

Available Tools (via agent-mcp-gateway):

You have access to MCP servers through the agent-mcp-gateway. The specific servers and tools available to you are determined by the gateway's access control rules.

Tool Discovery Process:

When you need to use tools from downstream MCP servers:

  1. Use agent_id: "YOUR_AGENT_NAME" in ALL gateway tool calls for proper access control
  2. Call list_servers to discover which servers you have access to
  3. Call get_server_tools with the specific server name to discover available tools
  4. Use execute_tool to invoke tools with appropriate parameters
  5. If you cannot access a tool you need, immediately notify the user

Important: Always include agent_id: "YOUR_AGENT_NAME" in your gateway tool calls. This ensures proper access control and audit logging.

Replace YOUR_AGENT_NAME with your agent's identifier (e.g., "researcher", "backend", "admin").

Examples: See .claude/agents/researcher.md and .claude/agents/mcp-developer.md for complete configuration examples.

Approach 2: Single-Agent Mode

For simpler setups where all agents should have the same permissions, or when using MCP clients without system prompt configuration (e.g., Claude Desktop), configure a default agent using either method:

Option A: Environment Variable

# Set in your MCP client configuration

export GATEWAY_DEFAULT_AGENT=developer

**Note:** The agent specified (e.g., "developer") must exist in your `.mcp-gateway-rules.json` file with appropriate permissions.

Option B: "default" Agent in Rules

{

"agents": { "default": { "allow": { "servers": ["*"] } } }, "defaults": { "deny_on_missing_agent": false } }

**Note:** Allowing all servers (`"servers": ["*"]`) without specifying tool restrictions grants access to all tools on all servers.

With either approach, agents can omit agent_id in tool calls - the gateway uses your configured default agent automatically.

Command-Line Options

# Show version

agent-mcp-gateway --version

Initialize config directory (first-time setup)

agent-mcp-gateway --init

Enable debug mode (exposes get_gateway_status diagnostic tool)

agent-mcp-gateway --debug

Show help

agent-mcp-gateway --help

Configuration File Discovery

The gateway searches for configuration files in this order:

MCP Server Config (.mcp.json)
  1. GATEWAY_MCP_CONFIG environment variable (if set)
  2. .mcp.json in current directory
  3. ~/.config/agent-mcp-gateway/.mcp.json (home directory)
  4. ./config/.mcp.json (fallback)
Gateway Rules (.mcp-gateway-rules.json)
  1. GATEWAY_RULES environment variable (if set)
  2. .mcp-gateway-rules.json in current directory
  3. ~/.config/agent-mcp-gateway/.mcp-gateway-rules.json (home directory)
  4. ./config/.mcp-gateway-rules.json (fallback)

Tip: Use agent-mcp-gateway --init to create the home directory configs on first run.

Configuration

The gateway requires two configuration files:

1. MCP Servers Configuration

File: mcp.json (searched in multiple locations)

Defines the downstream MCP servers the gateway will proxy to. Uses the standard MCP config format compatible with Claude Code and other coding agents:

{

"mcpServers": { "brave-search": { "description": "Web search via Brave Search API", "command": "npx", "args": ["-y", "@modelcontextprotocol/server-brave-search"], "env": { "BRAVE_API_KEY": "${BRAVE_API_KEY}" } }, "postgres": { "description": "PostgreSQL database access and query execution", "command": "uvx", "args": ["mcp-server-postgres"], "env": { "DATABASE_URL": "${DATABASE_URL}" } }, "remote-server": { "description": "Custom remote API integration", "url": "https://example.com/mcp", "transport": "http", "headers": { "Authorization": "Bearer ${API_TOKEN}" } } } }

Server Descriptions (Recommended): Adding a description field to each server helps AI agents understand what each server provides and when to use it. Descriptions are always returned by list_servers, enabling agents to make informed decisions about which servers to query for tools. While optional, descriptions significantly improve agent tool discovery and decision-making.

Supported Transports:

  • stdio - Local servers via npx/uvx (specified with command + args)
  • http - Remote HTTP servers (specified with url)

Environment Variables:

  • Use ${VAR_NAME} syntax for environment variable substitution
  • Set variables before running: export BRAVE_API_KEY=your-key

Important - GUI Applications (Claude Desktop, etc.): If you use ${VAR_NAME} syntax in .mcp.json, note that macOS GUI applications run in isolated environments without access to your shell's environment variables. For Claude Desktop and similar apps, add API keys to the gateway's env object in your MCP client configuration:

{

"mcpServers": { "agent-mcp-gateway": { "command": "uvx", "args": ["agent-mcp-gateway"], "env": { "BRAVE_API_KEY": "your-actual-key-here", "DATABASE_URL": "postgresql://...", "GATEWAY_DEFAULT_AGENT": "claude-desktop" } } } }

(If you hardcode values directly in .mcp.json without ${VAR_NAME} syntax, this is not necessary.)

2. Gateway Rules Configuration

File: mcp-gateway-rules.json (searched in multiple locations)

Defines per-agent access policies using deny-before-allow precedence:

{

"agents": { "researcher": { "allow": { "servers": ["brave-search", "context7"], "tools": {

Solo se muestra el principio; lee el resto en el repo

Pregunta a PopNx