
Enterprise Mcp Gateway
io.github.BenjaminJPublished by GitHub account BenjaminJv1.0.0Updated Oct 24, 2026
Production-grade MCP Gateway in Go with RBAC, in-flight PII redaction, and audit logging.
Overview
A self-hosted Go MCP gateway that exposes enterprise backends as tools, with role-based tool access, PII redaction and JSON audit logging.
- What you can do
- Register MCP tools automatically from OpenAPI 3.0 or Swagger specs and route calls to backend services such as CRM endpoints, Java/Go microservices and databases, including example tools like listing customers, fetching customer details and creating support tickets (per the README). Filter which tools each caller can see and call according to token-to-role rules. Redact credit cards, SSNs, emails, phone numbers, AWS keys, JWTs, GitHub tokens and custom patterns from tool responses before they reach the model. Emit structured JSON audit records with caller identity, tool name, hashed parameters, latency and redaction counts. Serve over stdio for desktop clients or over HTTP SSE for shared or,
- When to use it
- Use it when an organization wants a single governed entry point between AI assistants and internal APIs, and needs per-role tool permissions, PII masking and an audit trail. It suits teams already documenting backends with OpenAPI specs who want tools generated without writing glue code.
- Requirements
- Runs as a local process built from source with Go 1.24 or later, or as a Docker image; no package is published. Needs a YAML config file listing tokens, roles, sanitizer rules, audit settings and OpenAPI connector specs, plus reachable backend services. The token is passed on the command line and backend credentials are set in the connector headers in the config.
Installation
In SourceWeft
- Open Enterprise Mcp Gateway in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Enterprise MCP Gateway
[CI Status] [Last Commit] [Go Version] [MCP Version] [Glama Score] [Security] [License]
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).
[enterprise-mcp-gateway Glama Card]
[Enterprise MCP Gateway Live Demo]
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/listand enforces execution permissions duringtools/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
📦 Quick Start
1. Build from Source
Ensure you have Go 1.24+ installed:
2. Run the Mock Enterprise Backend (Terminal 1)
3. Run the Gateway with Sample Config (Terminal 2)
Option A: Stdio Mode (Default)
Option B: HTTP Server-Sent Events (SSE) Mode
4. Stream Live Audit Logs in Real-Time (Terminal 3)
Follow and format structured audit records as tools execute:
PowerShell (Windows):
Bash / Linux / macOS (jq):
🔍 Verification with Anthropic Official MCP Inspector
You can test and inspect the gateway using Anthropic's official @modelcontextprotocol/inspector:
Test via Stdio:
Test via SSE:
- Start the gateway in SSE mode:
- Open the inspector pointing to the SSE endpoint:
💻 Claude Desktop Integration
To connect Claude Desktop to your enterprise systems through enterprise-mcp-gateway:
-
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
- macOS:
-
Add
enterprise-mcp-gatewayto themcpServersobject:
- Restart Claude Desktop. The enterprise tools (
listCustomers,getCustomerDetails,createSupportTicket, etc.) will appear with a hammer icon in the prompt interface.
⚙️ Configuration Guide (config.yaml)
🧪 Testing
Run all unit and end-to-end integration tests:
🐳 Docker Deployment
📄 License
MIT License.
Source: README.md at commit 76bbf14
Tools
0Version history
1- v1.0.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts