原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Enterprise MCP Gateway

作者:BenjaminJ版本 1.0.0i★ –i–
注册名称io.github.BenjaminJ/enterprise-mcp-gateway

安装

概览

作者提供的说明(英文原文)

Production-grade MCP Gateway in Go with RBAC, in-flight PII redaction, and audit logging.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: –
  • 传输方式:
  • 分类: 旅行、地图与天气

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

作者没有在注册中心列出安装信息。请查看下方作者的 README。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 BenjaminJ 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“旅行、地图与天气”中的其他服务器比较i

  • 星标数多于此分类中其他 1716 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 1716 个服务器的 30% 更新
  • 基础检查结果等于或优于此分类中其他 1716 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Enterprise MCP Gateway 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.0.0)于2个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。

有什么可以替代它?

同一分类中有:Acosta Curated Travel, topo^alpin, roadstyle

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Acosta Curated Travel

Search Acosta Curated Travel articles, browse upcoming group trips, and reach Ivone Acosta.

作者:travelacosta.com起步阶段今天更新

在云端运行✓ travelacosta.com

topo^alpin

Avalanche bulletins, mountain weather, stations, huts, ski and snowshoe tours in the Alps.

作者:topoalpin.app起步阶段今天更新

在云端运行✓ topoalpin.app

roadstyle

Styled, interactive road maps of any place (OpenStreetMap) or road file, with PNG previews.

作者:Khoshkhah起步阶段↓ 807/周今天更新

在你的电脑上运行

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

Enterprise MCP Gateway

Production-grade, high-performance Model Context Protocol (MCP) Gateway in Go.

A secure, audited, and PII-sanitized bridge connecting AI agents (Claude Desktop, Cursor, Antigravity, LangGraph) to enterprise backends (OpenAPI, Java/Spring Boot, Go microservices, relational databases).

Live Demo: AI Agent querying CRM with in-flight PII & card redaction (left) while the Gateway streams structured JSON audit logs in real-time (right).


🚀 Key Features

  • ⚡ Blazing Fast & Lightweight: Single static Go binary (<25MB resident memory footprint, sub-millisecond routing overhead, zero external runtime dependencies).
  • 🛡️ High-Performance PII & Secret Redaction: Real-time stream and JSON-key masking (Credit Cards with Luhn checksum validation, SSNs, emails, phone numbers, AWS keys, JWTs, GitHub PATs, and custom regex rules) before tool responses reach LLMs.
  • 🔐 Role-Based Tool Governance (RBAC): Token-to-role resolution that limits tool visibility in tools/list and enforces execution permissions during tools/call.
  • 🔌 Dynamic OpenAPI / Swagger Connector: Instantly registers validated MCP tools directly from OpenAPI 3.0/Swagger YAML or JSON specs without writing backend glue code.
  • 📜 Structured JSON Audit Logging: Emits tamper-resistant, structured JSON logs containing caller identity, tool invoked, SHA-256 hashed parameters, execution latency, and PII redaction metrics.
  • 🔄 Dual Transport Support: Fully compliant JSON-RPC 2.0 engine supporting both standard stdio (for Claude Desktop / Cursor) and HTTP Server-Sent Events (SSE) for distributed microservices.

🏗️ Architecture

┌────────────────────────────────────────────────────────┐

│ AI Client (Claude / Cursor / Agent) │ └──────────────────────────┬─────────────────────────────┘ │ JSON-RPC 2.0 (stdio or SSE) ▼ ┌────────────────────────────────────────────────────────┐ │ Enterprise MCP Gateway (Single Go Binary) │ │ │ │ 1. Transport Layer (pkg/mcp/transport) │ │ - Stdio & HTTP-SSE Transceivers │ │ 2. Security & Auth Guard (pkg/governance/rbac) │ │ - Token authentication & least-privilege filtering │ │ 3. Router & Tool Registry (pkg/mcp/protocol) │ │ - JSON-RPC 2.0 & MCP handshake engine │ │ 4. Backend Dispatcher (pkg/connector/openapi) │ │ - Dynamic OpenAPI 3.0 path/query/body mapper │ │ 5. Sanitization Engine (pkg/sanitizer/pii) │ │ - Zero-alloc PII, secret, & JSON key redactor │ │ 6. Structured Audit Logger (pkg/audit) │ │ - Cryptographic JSON event trail for SIEM │ └──────────────────────────┬─────────────────────────────┘ │ Authorized & Sanitized Calls ▼ ┌────────────────────────────────────────────────────────┐ │ Internal Enterprise Services (Java / Go / DBs) │ └────────────────────────────────────────────────────────┘


📦 Quick Start

1. Build from Source

Ensure you have Go 1.24+ installed:

# Clone the repository

git clone https://github.com/BenjaminJ/enterprise-mcp-gateway.git cd enterprise-mcp-gateway

Build gateway and mock backend server

go build -o bin/mcp-gateway ./cmd/gateway go build -o bin/mockserver ./cmd/mockserver

2. Run the Mock Enterprise Backend (Terminal 1)
./bin/mockserver --port 8081
3. Run the Gateway with Sample Config (Terminal 2)
Option A: Stdio Mode (Default)
./bin/mcp-gateway --config ./examples/config.yaml --token "agent-support-key"
Option B: HTTP Server-Sent Events (SSE) Mode
./bin/mcp-gateway --config ./examples/config.yaml --transport sse --port 8080
4. Stream Live Audit Logs in Real-Time (Terminal 3)

Follow and format structured audit records as tools execute:

PowerShell (Windows):

Get-Content -Path .\audit.log -Wait -Tail 10 | ForEach-Object {

if ($_ -match '^\s*\{') { $e = $_ | ConvertFrom-Json $time = ([DateTime]$e.timestamp).ToLocalTime().ToString("HH:mm:ss") $statusColor = if ($e.status -eq "SUCCESS") { "Green" } else { "Red" } $redactColor = if ($e.pii_redacted_count -gt 0) { "Yellow" } else { "DarkGray" } Write-Host "[$time] " -NoNewline -ForegroundColor DarkGray Write-Host "[$($e.status)] " -NoNewline -ForegroundColor $statusColor Write-Host "$($e.tool) " -NoNewline -ForegroundColor Cyan Write-Host "(Role: $($e.role), Latency: $($e.duration_ms)ms, Redacted: $($e.pii_redacted_count))" -ForegroundColor $redactColor } }

Bash / Linux / macOS (`jq`):

tail -f audit.log | jq -c '{time: .timestamp, status: .status, tool: .tool, role: .role, latency_ms: .duration_ms, redacted: .pii_redacted_count}'

🔍 Verification with Anthropic Official MCP Inspector

You can test and inspect the gateway using Anthropic's official @modelcontextprotocol/inspector:

Test via Stdio:
npx @modelcontextprotocol/inspector ./bin/mcp-gateway --config ./examples/config.yaml --token agent-support-key
Test via SSE:
  1. Start the gateway in SSE mode:
   ./bin/mcp-gateway --config ./examples/config.yaml --transport sse --port 8080
  1. Open the inspector pointing to the SSE endpoint:
   npx @modelcontextprotocol/inspector http://localhost:8080/sse

💻 Claude Desktop Integration

To connect Claude Desktop to your enterprise systems through enterprise-mcp-gateway:

  1. Open your Claude Desktop configuration file:
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  1. Add enterprise-mcp-gateway to the mcpServers object:
{

"mcpServers": { "enterprise-gateway": { "command": "/absolute/path/to/enterprise-mcp-gateway/bin/mcp-gateway", "args": [ "--config", "/absolute/path/to/enterprise-mcp-gateway/examples/config.yaml", "--token", "agent-support-key" ] } } }

  1. Restart Claude Desktop. The enterprise tools (listCustomers, getCustomerDetails, createSupportTicket, etc.) will appear with a hammer icon in the prompt interface.

⚙️ Configuration Guide (config.yaml)

server:

name: "enterprise-mcp-gateway" version: "1.0.0" transport: "stdio" # "stdio" or "sse" host: "0.0.0.0" port: 8080

governance: enabled: true default_role: "support_agent" tokens: "agent-ro-secret": "readonly_agent" "agent-support-secret": "support_agent" "admin-master-secret": "admin" roles: readonly_agent: allowed_tools:

  • "list*"
  • "get*" support_agent: allowed_tools:
  • "list*"
  • "get*"
  • "createSupportTicket" admin: allowed_tools:
  • "*"

sanitizer: enabled: true mask_card_numbers: true # Luhn-verified Credit Card masking mask_ssn: true # US SSN masking mask_secrets: true # Private keys, AWS keys, JWTs, PATs sensitive_keys:

  • "password"
  • "secret"
  • "token"
  • "apiKey"
  • "ssn"
  • "creditCard" custom_regex:
  • name: "Internal Employee ID" pattern: "\\bEMP-[0-9]{6}\\b" replacement: "[REDACTED-EMP-ID]"

audit: enabled: true log_path: "stdout" # "stdout" or path to file e.g. "/var/log/mcp-audit.log" hash_inputs: true # SHA-256 hashes tool arguments for compliance

connectors:

  • name: "enterprise-crm" type: "openapi" spec_file: "./examples/crm-openapi.yaml" base_url: "http://localhost:8081" headers: Authorization: "Bearer backend-secret-token" X-Gateway-Source: "enterprise-mcp-gateway" timeout_seconds: 15

🧪 Testing

Run all unit and end-to-end integration tests:

# Run all unit and integration tests

go test -v ./...

Run tests with the Go race detector enabled

go test -race ./...


🐳 Docker Deployment

# Build lightweight Docker image

docker build -t enterprise-mcp-gateway:latest .

Run container in SSE mode

docker run -d -p 8080:8080 -p 8081:8081 enterprise-mcp-gateway:latest --transport sse --port 8080


📄 License

MIT License.

问 PopNx