MCP Gateway
@lasso-security
MCP Gateway について
A plugin-based gateway that orchestrates other MCPs and allows developers to build upon it enterprise-grade agents.
基本情報
設定
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"mcp-gateway": {
"command": "mcp-gateway",
"args": [
"--mcp-json-path",
"~/.cursor/mcp.json",
"--enable-guardrails",
"basic",
"--enable-guardrails",
"presidio"
],
"servers": {}
}
}
}ツール
2Provides information about all available proxied MCPs to help LLMs choose appropriate tools and resources
Executes capabilities from any proxied MCP after sanitizing the request and response
概要
What is MCP Gateway?
MCP Gateway is an intermediary between large language models and other MCP servers. It centralizes and enhances AI infrastructure by reading server configurations from a mcp.json file, managing server lifecycles, intercepting requests and responses to sanitize sensitive information, and providing a unified interface to discover and interact with all proxied servers. It also includes a security scanner that analyzes server reputation and risks before loading.
How to use MCP Gateway?
Install with pip install mcp-gateway. Start the server by running mcp-gateway with the --mcp-json-path flag pointing to your configuration file and the --plugin flag for each plugin to enable (e.g., -p basic -p presidio). You can also run it inside Docker or as a Python module. Configuration is placed under the mcpServers key in your editor’s settings (Cursor, Claude Desktop, etc.) with the gateway itself configured as an MCP server.
Key features of MCP Gateway
- Automatically masks common secrets (API keys, tokens, etc.)
- PII masking via the Presidio plugin (credit cards, emails, etc.)
- Lasso Security guardrails for prompt injection and data leakage
- Tracing and monitoring of all tool calls with the Xetrack plugin
- Unified interface to discover and invoke tools from all proxied MCPs
- Security scanner that checks server reputation before loading
Use cases of MCP Gateway
- Protect sensitive credentials and PII from exposure to LLMs.
- Audit and debug MCP tool usage with request/response logs.
- Centralize management of multiple MCP servers behind one endpoint.
- Enforce custom AI safety policies with a cloud-based guardrail.
FAQ from MCP Gateway
What plugins are available out of the box?
The README describes three guardrail plugins: basic (secret masking), presidio (PII masking), and lasso (full security guardrails). There is also a tracing plugin called xetrack.
How do I install the Presidio plugin?
pip install mcp-gateway[presidio] installs the extra dependency required for PII masking.
Does MCP Gateway require an API key?
Only the lasso plugin requires a LASSO_API_KEY environment variable (obtained from Lasso Security). The other plugins work without an external API key.
How are MCP servers configured under the gateway?
You place other MCP server configurations inside a "servers" key within the gateway’s own entry in your mcpServers configuration. The gateway reads them from the mcp.json file specified with --mcp-json-path.
Where are logs and trace data stored?
For the xetrack plugin, logs are written to a file path set via XETRACK_LOGS_PATH, and structured data is stored in an SQLite database at the path set via XETRACK_DB_PATH.
「開発者ツール」の他のコンテンツ
MCP Unity Editor (Game Engine)
CoderGamesterModel Context Protocol (MCP) plugin to connect with Unity Editor — designed for Cursor, Claude Code, Codex, Windsurf and other IDEs
MCP-Scan: An MCP Security Scanner
invariantlabs-aiSecurity scanner for AI agents, MCP servers and agent skills.
Burp Suite MCP Server Extension
PortSwiggerMCP Server for Burp
mcp-excalidraw
yctimlinMCP server and Claude Code skill for Excalidraw — programmatic canvas toolkit to create, edit, and export diagrams via AI agents with real-time canvas sync.
test
cloudwegoThe ultimate LLM/AI application development framework in Go.
コメント