← Back to directory
M

MCP Gateway

Community
Gateway / proxy
A unified proxy and security layer for multiple MCP servers.

This gateway aggregates or proxies other MCP servers; it only becomes useful once you connect real servers behind it.

Category
Dev Tools #549 of 751
Stars
★ 402 Popular
Runtime
Python
Credentials
Optional API key
License
MIT
Last commit
⚠
Tools
2
45FMRS · D

The source describes an MCP gateway centered on proxying and plugins, with tool discovery and execution, credential masking, optional PII handling, external security checks, call tracing, and pre-load scanning. It provides Cursor and Claude Desktop configuration examples but does not specify a transport protocol.

Strongest · Setup experience 12/20 Weakest · Security and permissions 6/20

Reliability
7/20
Security and permissions
6/20
Maintenance
9/20
Documentation
11/20
Setup experience
12/20
Why each score
Reliability 7/20
The README says the gateway reads configuration, manages downstream MCPs, and exposes get_metadata and run_tool. It provides no manifest, actual tool definitions, committed tests, or CI evidence, so initialization, tool behavior, and error handling cannot be verified; the score reflects only a plausible happy path.
Security and permissions 6/20
The README describes request and response sanitization, a scanner, and optional security plugins, and shows an API key passed through an environment variable. It lacks details on permission scope, data flows, and external API handling. Scanner results can be manually set to skipped, and a token example appears to contain a real Hugging Face credential, triggering the stated red line; security is therefore scored within the 0–4 range.
Maintenance 9/20
The repository has an MIT license and is not archived; metadata lists 402 stars and 18 open issues. There is no evidence here of commit or release cadence, issue response, dependency updates, or a security response channel, so the score is limited.
Documentation 11/20
The README covers installation, client configuration, plugins, the scanner, and tracing examples, and lists some protection categories. It lacks a manifest and detailed parameters, limitations, troubleshooting, and a complete account of data handling. The token example also raises a security concern, so points are deducted.
Setup experience 12/20
The README provides a pip installation path and Cursor, Claude, and Docker configuration examples, and mentions optional dependencies. Dependency configuration files are not provided, some steps rely on external MCP configuration, and there is no verifiable execution evidence, so cross-platform setup cannot be confirmed.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesUses the networkConnects to a database

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 and side effects

  • 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.

Setup

Before you start

Runtime:Python

LASSO_API_KEY optionalsecret Set when using the lasso plugin; obtain the API key by signing up with Lasso Security.
Other optional settings (4)
XETRACK_DB_PATH optional Set when using the xetrack plugin; specifies the location of the SQLite database file.
XETRACK_LOGS_PATH optional Set when using the xetrack plugin; specifies where logs are stored.
FLATTEN_ARGUMENTS optional Optional with the xetrack plugin; controls whether call arguments are flattened and defaults to true.
FLATTEN_RESPONSE optional Optional with the xetrack plugin; controls whether responses are flattened and defaults to true.

Install the mcp-gateway Python package, configure the client to run it as a server, and use --mcp-json-path to point to an MCP configuration file. Specify plugins with --plugin; the README example enables basic and configures a filesystem MCP under servers.

.cursor/mcp.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",
            "."
          ]
        }
      }
    }
  }
}

Shown for Cursor. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "mcp-gateway": {
      "command": "mcp-gateway",
      "args": [
        "--mcp-json-path",
        "~/.cursor/mcp.json",
        "--plugin",
        "basic"
      ],
      "servers": {
        "filesystem": {
          "command": "npx",
          "args": [
            "-y",
            "@modelcontextprotocol/server-filesystem",
            "."
          ]
        }
      }
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.mcp-gateway]
command = "mcp-gateway"
args = ["--mcp-json-path", "~/.cursor/mcp.json", "--plugin", "basic"]

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add mcp-gateway -- mcp-gateway --mcp-json-path '~/.cursor/mcp.json' --plugin basic

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

Confirm get_metadata and run_tool appear in the client's tool list. Call get_metadata and check that it returns information about the configured proxied MCPs.

Troubleshooting

  1. Check that `--mcp-json-path` points to a valid MCP configuration file.
  2. Check that the client configuration's `servers` entry includes the intended underlying MCP servers.
  3. Check dependencies for enabled plugins; Presidio and xetrack must be installed separately.
  4. When using the Lasso plugin, confirm that `LASSO_API_KEY` is set.
  5. After scanning, check the `blocked` status in the server configuration; documented values include `passed`, `blocked`, and `skipped`.

Things to try

Once connected, you can ask your AI assistant things like:

  • List the files and folders in the filesystem server's root directory.
  • Read tokens.txt in the current directory and return the value of HF_TOKEN.

Tools 2

get_metadata read-only
Provides information about all proxied MCPs so a model can choose appropriate tools and resources.
run_tool writes
Executes a capability from any proxied MCP, with request and response sanitization.

Use cases

Discovering and calling multiple configured MCP servers through one entry point.
Masking common tokens and secrets with the basic plugin.
Analyzing server reputation and tool descriptions before loading with the security scanner.
Recording tool calls for debugging and monitoring with the xetrack plugin.

Supported clients

Cursor
Claude Desktop

Listed from the project's documentation, not tested by this site.

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.

Similar servers

Source revision 7e7f1f6e5314 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/mcp-gateway.svg)](https://followmcp.com/en/servers/mcp-gateway)