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
Develop and deploy AI agents that interact with a wide array of web services (e.g., Gmail, YouTube, LinkedIn, Supabase, Salesforce, Kubernetes) through a standardized Model Context Protocol (MCP), often orchestrated by an intelligent routing layer like Strata.
mcp-context-forge
Converts web content (HTML, PDF, DOCX, etc.) and local files from a URL into high-quality Markdown format. It supports multiple conversion engines, content optimization, batch processing, and image handling.
mcphub
An orchestration hub that aggregates, manages, and routes Model Context Protocol (MCP) servers and their tools, providing a centralized interface, user management, OAuth 2.0 authorization server capabilities, and AI-powered tool discovery and routing.
MCPJungle
MCPJungle is a self-hosted Model Context Protocol (MCP) Gateway that allows developers to register and manage various MCP servers and their tools from a central location, enabling AI agents to discover and consume these tools from a single gateway.