MCP Catalogs
首页mcp-gateway screenshot

mcp-gateway

by lasso-security·371·综合分 49

MCP Gateway 是一个基于插件的中间件,可编排多个 MCP 服务器,并提供安全功能和监控能力。

securitydeveloper-toolsops-infra
28
Forks
6
活跃 Issue
4 个月前
最近提交
2 天前
收录于

概述

MCP Gateway 充当 LLM 和其他 MCP 服务器之间的中间件,集中和增强 AI 基础设施。它管理服务器配置,拦截请求以清理敏感信息,提供与代理 MCP 交互的统一接口,并包含安全扫描器以分析服务器声誉和风险。该项目支持各种防护栏插件,用于 PII 掩码、令牌掩码和自定义安全策略,并可选择监控和跟踪工具调用。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:构建具有增强安全性和监控功能的企业级 AI 代理
:使用 MCP 服务器与 LLM 时掩码敏感令牌和个人身份信息
:通过单一网关界面编排多个 MCP 服务器
:什么是 MCP Gateway?
:有哪些可用的插件?

什么时候选它

当您需要管理多个 MCP 服务器并具有集中式安全控制功能时,特别是需要令牌掩码和数据泄露防护的企业环境。

什么时候不要选它

如果您需要直接的 MCP 服务器通信而无需中介,或者您正在寻找具有最小开销的轻量级解决方案。

此 server 暴露的工具

从 README 抽取出 2 个工具
  • get_metadata

    Provides information about all available proxied MCPs

  • run_tool

    Executes capabilities from any proxied MCP after sanitizing the request and response

可对比工具

mcp-servernpx-@modelcontextprotocol/server-filesystemmcp-streaming-server

安装

Python 安装

pip install mcp-gateway

Claude Desktop 配置

{
  "mcpServers": {
    "mcp-gateway": {
      "command": "<python 路径>",
      "args": [
        "-m",
        "mcp_gateway.server",
        "--mcp-json-path",
        "<claude_desktop_config 路径>",
        "--plugin",
        "basic"
      ],
      "servers": {
        "filesystem": {
          "command": "npx",
          "args": [
            "-y",
            "@modelcontextprotocol/server-filesystem",
            "."
          ]
        }
      }
    }
  }
}

FAQ

什么是 MCP Gateway?
MCP Gateway 是一个中间件解决方案,可编排多个 MCP 服务器,提供增强的安全功能、监控功能和插件支持。
有哪些可用的插件?
内置插件包括用于令牌掩码的 'basic'、用于 PII 掩码的 'presidio',以及用于全面安全扫描和策略执行的 'lasso'。

mcp-gateway 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。