A plugin-based gateway that orchestrates other MCPs and allows developers to build upon it enterprise-grade agents.
# Add to your Claude Code skills
git clone https://github.com/lasso-security/mcp-gateway
MCP Gateway is an advanced intermediary solution for Model Context Protocol (MCP) servers that centralizes and enhances your AI infrastructure.
MCP Gateway acts as an intermediary between LLMs and other MCP servers. It:
mcp.json file located in your root directory.Install the mcp-gateway package:
pip install mcp-gateway
--mcp-json-path- must lead to your mcp.json or claude_desktop_config.json
--pluginor-p- Specify the plugins to enable (can be used multiple times)
This example enables the basic guardrail for token masking and xetrack tracing plugin for filesystem MCP:
mcp-gateway --mcp-json-path ~/.cursor/mcp.json -p basic -p xetrack
You can add more MCPs that will be under the Gateway by putting the MCP server configuration under the "servers" key.
{
"mcpServers": {
"mcp-gateway": {
"command": "mcp-gateway",
"args": [
"--mcp-json-path",
"~/.cursor/mcp.json",
"--plugin",
"basic",
"--plugin",
"xetrack"
],
"servers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"."
]
}
}
}
}
}
Get <PYTHON_PATH>
which python
{
"mcpServers": {
"mcp-gateway": {
"command": "<python path>",
"args": [
"-m",
"mcp_gateway.server",
"--mcp-json-path",
"<path to claude_desktop_config>",
"--plugin",
"basic"
],
"servers": {
"file...