agent-mcp-gateway
Verified Safeby roddutra
Overview
An MCP gateway that aggregates multiple downstream MCP servers, providing policy-based access control and on-demand tool discovery to optimize context window usage for agents and subagents.
Installation
uvx agent-mcp-gatewayEnvironment Variables
- GATEWAY_MCP_CONFIG
- GATEWAY_RULES
- GATEWAY_DEFAULT_AGENT
- GATEWAY_DEBUG
- GATEWAY_AUDIT_LOG
- BRAVE_API_KEY
- DATABASE_URL
- API_TOKEN
- GITHUB_PAT
Security Notes
The project demonstrates strong security awareness through its 'deny-before-allow' policy, environment variable substitution for secrets, and explicit gating of diagnostic tools behind a debug flag. Critical guidance is provided for storing sensitive access control rules outside the project directory to prevent agent inspection or modification, and OAuth token storage is documented with security recommendations. The main security risks stem from potential misconfiguration of the rules file location or lax permissions on token caches, which are explicitly addressed in the documentation.
Similar Servers
klavis
Creates an AI agent that uses Klavis Strata to interact with Gmail and YouTube through MCP, demonstrating how to summarize a YouTube video and email the summary.
mcp-context-forge
Retrieves web content and files from URLs, then converts them into high-quality Markdown format, supporting various content types and conversion engines.
mcphub
The MCPHub acts as a centralized gateway for managing and orchestrating various Model Context Protocol (MCP) servers and OpenAPI-compatible services. It provides a unified API, OAuth 2.0 authorization, user management, and AI-powered 'smart routing' for dynamic tool discovery and invocation.
MCPJungle
A self-hosted gateway and registry for Model Context Protocol (MCP) servers, allowing AI agents to discover and consume tools from a central location.