# MCP Gateway

> A unified proxy and security layer for multiple MCP servers.

- **URL**: https://followmcp.com/en/servers/mcp-gateway
- **Category**: Dev Tools
- **Origin**: Community
- **Stars**: 402
- **FMRS Score**: 45/100 (Grade D)
- **Source**: https://github.com/lasso-security/mcp-gateway

- **Runtimes**: Python
- **Auth**: Optional API key

## Overview
MCP Gateway is an intermediary for MCP servers. It reads server configuration, manages configured server lifecycles, and offers a unified entry point for discovering and calling tools. Plugins can intercept requests and responses to handle sensitive information, and a scanner analyzes server reputation and tool descriptions before loading.

## Best for
- Developers who want to manage several MCP servers centrally.
- Teams that want to apply security plugins to tool call requests or responses.
- Users who want to record MCP tool calls for troubleshooting.

## Not for
- Users who only need a single MCP server and do not need a proxy, plugins, or scanning.
- Users who need this source to establish a specific transport protocol, authentication method, or full compatibility list.

## Required permissions
- Needs to read the MCP configuration file and start and manage the MCP servers configured in it.
- When proxying tool calls, it needs access to the resources and permissions required by the underlying MCP servers.
- The Lasso plugin requires a configured Lasso API key; the Presidio and xetrack plugins require their respective dependencies.

## Risks
- The gateway forwards tool calls to underlying MCP servers, which may still read or modify data within their granted access.
- The basic plugin lists masking support for specific credential types; this does not establish that it detects all sensitive information.
- The Lasso plugin checks content through the Lasso API, which involves sending relevant content to that service.
- Scan results and the stated risk threshold do not guarantee that a server is completely safe.

## Client config (JSON)
```json
{
  "mcpServers": {
    "mcp-gateway": {
      "command": "mcp-gateway",
      "args": [
        "--mcp-json-path",
        "~/.cursor/mcp.json",
        "--plugin",
        "basic"
      ],
      "servers": {
        "filesystem": {
          "command": "npx",
          "args": [
            "-y",
            "@modelcontextprotocol/server-filesystem",
            "."
          ]
        }
      }
    }
  }
}
```

## Tools (2)
- `get_metadata`: Provides information about all proxied MCPs so a model can choose appropriate tools and resources.
- `run_tool`: Executes a capability from any proxied MCP, with request and response sanitization.
