MCP Gateway
Integrates with Cloudflare Tunnel to provide remote zero-trust access to the local MCP Gateway, including starting/stopping the tunnel and inspecting its status and public ingress hostname.
Provides a built-in native MySQL connector for inspecting schemas, tables, column types, primary keys, and relations, and for executing parameterized SQL queries in an interactive console.
Provides a built-in native PostgreSQL connector for inspecting schemas, tables, column types, primary keys, and relations, and for running parameterized SQL queries in an interactive console.
Provides a built-in native Redis connector within the gateway's database engine for inspecting and querying Redis data.
Provides a built-in native SQLite connector for inspecting database schemas and tables and for executing parameterized SQL queries through the gateway's database console.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP Gateway
π Overview
MCP Gateway is a native, cross-platform desktop control plane and multiplexer for Anthropic's Model Context Protocol (MCP).
Normally, AI agents and IDEs (Cursor, Claude Desktop, Antigravity, Windsurf, Zed, Cline) require managing dozens of fragmented, individual MCP server processes. This results in port conflicts, memory bloat, high latencies, zero centralized access control, and complete lack of traffic observability.
MCP Gateway solves this by acting as a high-performance unified reverse proxy:
Exposes a single multiplexed SSE/HTTP endpoint (
http://127.0.0.1:8080/sse) to your AI clients.Connects simultaneously to multiple downstream MCP servers over Stdio, Server-Sent Events (SSE), and Streamable HTTP.
Dynamically aggregates, namespaces, audits, and secures all tools, prompts, resources, and service extensions.
flowchart LR
subgraph AI_Clients["AI IDEs & Agents"]
C1["Claude Desktop"]
C2["Cursor"]
C3["Antigravity / Gemini"]
C4["Windsurf / Zed"]
end
subgraph Gateway["MCP Gateway (Tauri v2 + Rust Core)"]
direction TB
Proxy["Unified SSE / HTTP Hub (:8080)"]
SecGuard["Security Guardrails & Token Auth"]
ApprModal["Interactive Tool Approval Modal"]
Router["Tool Namespacing & Router"]
DBEng["Built-in DB Engine (PG/SQLite/MySQL/Redis)"]
TelMon["Live Telemetry & RPC Logger"]
Tunnel["Cloudflare Zero Trust Tunnel"]
end
subgraph Upstream["Upstream MCP Servers"]
S1["Local Stdio Servers (Docker, Node, Python)"]
S2["Remote SSE Servers (Coolify, EasyPanel)"]
S3["Cloud MCP Services"]
S4["Databases & Storage (via Hub)"]
end
AI_Clients -->|Single SSE Connection| Proxy
Proxy --> SecGuard
SecGuard --> ApprModal
ApprModal --> Router
Router --> S1
Router --> S2
Router --> S3
Router --> DBEng
DBEng --> S4
Tunnel -.->|Secure Remote Ingress| Proxy
TelMon -.->|Observe| RouterRelated MCP server: mcp_proxy
β¨ Features & Capabilities
1. β‘ Unified Multi-Transport Multiplexing
Single Endpoint for AI: Point Claude Desktop or Cursor to
http://127.0.0.1:8080/sseand gain instant access to every configured server.Multi-Transport Support:
Stdio: Local binaries, Node (
npx), Python (uvx), Docker containers.SSE (Server-Sent Events): Long-lived real-time streams.
Streamable HTTP: Remote cloud MCP endpoints with custom auth headers.
Smart Tool Namespacing: Prevents name collisions across servers by auto-namespacing tools (e.g.,
coolify__<tool>,github__<tool>).
2. π‘οΈ Enterprise-Grade Security & Guardrails
Bearer Token Management: Generate, inspect, rotate, and revoke cryptographically secure API tokens with customizable expiry and permission scopes.
Granular Permission Policies: Set per-server and per-tool rules:
Allow: Auto-execute without friction.Require Approval: Pops up an interactive approval dialog before execution.Deny: Blocks access entirely.
Interactive Approval Modal: Review tool arguments, target server, and operation severity before confirming destructive actions (e.g.,
DROP TABLE, container teardowns).Zero-Secrets Policy: Tokens and credentials stay strictly local on host memory/storage; never exposed in telemetry or client error responses.
3. π Cloudflare Tunnel (Remote Zero-Trust Access)
Direct Remote Sharing: Share your local MCP servers with remote team members or cloud AI agents without public IP or firewall port forwarding.
Integrated Control: Start, stop, and inspect the tunnel status and public ingress hostname directly from the desktop UI.
4. π¦ Registry & MCP Package Hub (1-Click Database & Service Extensions)
Curated MCP Package Directory: Effortlessly discover, install, and run official and community MCP servers in 1-click.
Full Database Ecosystem: Connect PostgreSQL (
@modelcontextprotocol/server-postgres), SQLite (mcp-server-sqlite), and Redis (mcp-server-redis) via standard MCP specifications without bloating the gateway core.Extensible Integration: Install DevOps, developer tools, web search (Brave, Puppeteer, Docker), and memory servers with automatic parameter prompts and verification.
5. π§ͺ Interactive Tools Explorer & Playground
JSON Schema Inspector: Auto-parses tool parameter definitions (
inputSchema) into clean visual forms.Live Test Runner: Trigger any MCP tool directly inside the GUI, view execution latency, and inspect formatted JSON results.
Search & Filter: Real-time filtering, category sorting, and pagination across dozens or hundreds of aggregated tools.
6. π Resources & Prompts Explorer
MCP Resources: Browse file URIs, database schemas, and persistent application state exposed by connected servers.
Prompt Templates: Inspect registered prompt templates, variable slots, and sample prompts.
7. π Real-Time Traffic & RPC Telemetry
Live JSON-RPC Stream: Inspect bi-directional messages (
tools/call,tools/list,resources/read,ping).Telemetry Metrics: Real-time roundtrip latency (ms), success/error rates, and daily call counts.
Audit Log Controls: Search logs, auto-scroll toggle, pause/resume streaming, and 1-click JSON log export.
8. π IDE Auto-Discovery & 1-Click Sync
Automatic Config Scans: Scans and detects installed MCP configurations from:
~/.cursor/mcp.json(Cursor)~/.gemini/config/mcp_config.json(Antigravity)~/Library/Application Support/Claude/claude_desktop_config.json(Claude Desktop)Windsurf configuration directories
Export
mcp.json: Generate a clean, 1-click configuration snippet ready to paste into any client.
9. π¨ Modern Native Desktop Experience
Responsive Layout: Fluid design built with Tailwind CSS v4, collapsible icon sidebar rail with tooltips, and screen-size adaptive buttons.
Table Pagination & Sorting: Robust pagination and column sorting across all data grids.
Native macOS & Windows Assets: Transparent floating quantum gateway emblem (
.icnsfor macOS Dock,.icofor Windows).
10. π System Tray & Background Daemon Mode
Zero-Disruption Background Core: Closing the window automatically minimizes MCP Gateway to the macOS Menu Bar / Windows System Tray, ensuring AI IDEs (Cursor, Claude) maintain active connections without interruption.
Quick Actions Menu: Open dashboard, inspect Core status, copy the active SSE endpoint, or quit directly from the system tray.
11. π‘οΈ Data Loss Prevention (DLP) & Secret Redactor
Automated Response Sanitization: Scans all outgoing tool results and database outputs before returning to AI context windows.
Comprehensive Threat Patterns: Redacts or blocks OpenAI keys, Anthropic tokens, GitHub PATs, AWS credentials, Google Gemini keys, Slack tokens, JWTs, PEM private keys, DB connection passwords, credit cards (PCI-DSS), and PII email addresses.
Configurable Enforcement: Supports
Mask(redact inline),Block(halt tool call), andAuditpolicies, complete with an interactive live DLP testing simulator.
12. π MCP Hub & Package Registry (1-Click Connect)
Curated Server Catalog: Built-in App Store featuring verified MCP servers (GitHub, Brave Search, Filesystem, PostgreSQL, SQLite, Docker, Fetch, Memory, Slack, Puppeteer, GitLab, Redis).
1-Click Installation: Interactive setup dialog automatically handles runtime commands (
npx,uvx) and required environment credentials.
13. π³ Headless Daemon & Docker Server Deployment
Headless CLI Binary: Run MCP Gateway as a standalone server without a GUI via
mcp-gateway --headless --port 8080ormcp-gateway-cli --host 0.0.0.0 --port 8080.Docker Ready: Includes production
Dockerfileanddocker-compose.ymlfor VPS and cloud deployments.
π Getting Started
Prerequisites
Node.js (v20+) or Bun (recommended)
Rust (latest stable) & Cargo (for Tauri v2 native desktop core)
Installation
Clone the repository:
git clone https://github.com/neondeveloperz/mcp-gateway.git cd mcp-gatewayInstall frontend dependencies:
bun install # or: npm installRun in development mode (Desktop App):
bun run tauri devBuild native production binaries:
# Build desktop GUI installer (.dmg / .exe / .AppImage / .deb) bun run build:gui # Build standalone headless CLI binary (mcp-gateway-cli) bun run build:cli # Build both GUI and CLI binaries bun run build:allThe compiled desktop installer (
.dmgon macOS,.msi/.exeon Windows) will be located insrc-tauri/target/release/bundle/, and the standalone CLI executable insrc-tauri/target/release/mcp-gateway-cli.
π Connecting to AI Clients
Add MCP Gateway to your AI client's configuration file as a single multiplexed server:
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"mcp-gateway": {
"command": "curl",
"args": ["-s", "-N", "http://127.0.0.1:8080/sse"],
"headers": {
"Authorization": "Bearer YOUR_GATEWAY_TOKEN"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"mcp-gateway": {
"url": "http://127.0.0.1:8080/sse",
"headers": {
"Authorization": "Bearer YOUR_GATEWAY_TOKEN"
}
}
}
}Antigravity / Gemini CLI (~/.gemini/config/mcp_config.json)
{
"mcpServers": {
"mcp-gateway": {
"url": "http://127.0.0.1:8080/sse",
"headers": {
"Authorization": "Bearer YOUR_GATEWAY_TOKEN"
}
}
}
}π οΈ Project Architecture
mcp-gateway/
βββ public/ # Static assets, web favicon, app-icon
βββ src-tauri/ # Rust Native Backend (Tauri v2 Core)
β βββ src/
β β βββ bin/
β β β βββ cli.rs # Headless CLI entrypoint
β β βββ lib.rs # Tauri command dispatcher & lifecycle
β β βββ gateway.rs # Unified MCP routing engine & SSE server
β β βββ discovery.rs # Host telemetry & IDE config scanner
β β βββ dlp.rs # Data Loss Prevention regex engine & incident manager
β β βββ security.rs # Token guardrails & permission checks
β β βββ tunnel.rs # Cloudflare Tunnel integration
β β βββ types.rs # Shared Rust types & data structures
β βββ icons/ # Multi-resolution native app icons (.icns, .ico)
β βββ Cargo.toml # Rust dependencies & optimization profiles
βββ src/ # Frontend GUI (React 19 + TypeScript)
β βββ components/
β β βββ overview/ # Gateway dashboard, activity charts & stats
β β βββ servers/ # Server manager, connection state & actions
β β βββ marketplace/ # Registry & MCP Package Hub
β β βββ tools/ # Interactive tool tester & parameter form
β β βββ resources/ # Prompt templates & resource inspector
β β βββ logs/ # Real-time JSON-RPC traffic monitor
β β βββ tunnel/ # Cloudflare Tunnel controller
β β βββ tokens/ # Bearer token generator & permissions
β β βββ security/ # Guardrail rules & interactive approval modal
β β βββ status/ # System telemetry & ping health probes
β β βββ ui/ # shadcn/ui components, pagination, sorting
β βββ lib/
β β βββ mcp-service.ts # Gateway API client & event dispatcher
β βββ App.tsx # Main view router & layout container
β βββ main.tsx # Application entry point
βββ package.json
βββ README.mdπ‘οΈ Security & Privacy
Local-First Architecture: MCP Gateway runs strictly on your local machine (
127.0.0.1). No telemetry or code is sent to external cloud servers unless you explicitly configure a Cloudflare Tunnel.Fail-Safe Approvals: Destructive actions can be gated behind human confirmation via the approval modal.
Encrypted Local Storage: Stored tokens and server credentials follow least-privilege host permissions.
π License
This project is licensed under the MIT License.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
An MCP gateway for teams deploying AI tools at scale to employee-facing and headless agents.
Zero-setup MCP gateway securely connecting AI to your tools with authentication and workflows
MCP federation gateway: route, govern and observe agent tools across clouds and MCP servers.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceCentralizes management and routing of multiple MCP servers, exposing them to AI clients via HTTP/SSE endpoints with configurable visibility, sharing, and smart routing.Apache 2.0
- FlicenseNot gradedqualityCmaintenanceEnables centralized routing, discovery, namespacing, and execution of tools from multiple remote MCP servers over HTTP/SSE, aggregating them behind a unified MCP gateway with dynamic server management.-
- AlicenseNot gradedqualityAmaintenanceAggregates and routes requests across multiple backend MCP servers, exposing their combined tools and resources through unified SSE, Streamable HTTP, or Stdio endpoints. Supports optional Web UI management, granular tool control, and endpoint authentication.120 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables clients to connect to, manage, and aggregate multiple backend MCP servers and access their combined tools and resources through unified SSE or Streamable HTTP endpoints, or as a single Stdio server. It provides request routing, optional authentication, granular tool controls, and an optional web admin interface.120 npmMIT