mcp-gateway-pro

mcp-gateway-pro

A zero-dependency universal MCP gateway that multiplexes multiple MCP servers across stdio, HTTP, and SSE, providing unified tool access, circuit breaking, and an interactive inspector studio.

Category
Visit Server

README

⚡ MCP Gateway Pro

<p align="center"> <img src="assets/banner.png" alt="MCP Gateway Pro Banner" width="100%" /> </p>

<p align="center"> <strong>🚀 High-Performance Universal Model Context Protocol (MCP 2026-07-28 Spec) Gateway & Multi-Transport Tool Multiplexer</strong> </p>

<p align="center"> <a href="#-key-features"><img src="https://img.shields.io/badge/Protocol-MCP%202026.07.28-6366f1?style=for-the-badge&logo=anthropic" alt="MCP Spec" /></a> <a href="#-quick-start"><img src="https://img.shields.io/badge/Dependencies-Zero%20External-10b981?style=for-the-badge" alt="Zero Dependencies" /></a> <a href="#-quality-gate--audit"><img src="https://img.shields.io/badge/Quality%20Gate-100%2F100%20PASSED-38bdf8?style=for-the-badge" alt="Quality Gate" /></a> <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-f59e0b?style=for-the-badge" alt="License" /></a> </p>


🌟 Overview

mcp-gateway-pro is an ultra-fast, zero-dependency Universal Model Context Protocol (MCP) Gateway and Multiplexer built for the 2026-07-28 MCP Specification.

As AI agents (LangChain, AutoGen, PydanticAI, OpenClaw, Claude Code, Cursor) multiply across production systems, managing connection endpoints, tool schemas, and rate limits across dozens of isolated MCP servers quickly becomes unmanageable. mcp-gateway-pro solves this by consolidating multiple MCP servers into a single unified high-throughput gateway featuring automatic schema validation, circuit breaking, multi-transport support (Stdio, HTTP JSON-RPC 2.0, SSE), and an interactive protocol inspector studio.


📸 System Architecture

<p align="center"> <img src="assets/architecture.png" alt="MCP Gateway Pro System Architecture" width="100%" /> </p>


🔥 Key Features

  • 🔌 Universal Multi-Transport Support: Native support for Stdio (Claude Desktop/Cursor/OpenClaw), HTTP JSON-RPC 2.0, and Server-Sent Events (SSE).
  • Zero External Dependencies: Pure Node.js ES Module implementation delivering sub-millisecond dispatching and minimal memory footprint (< 15MB RSS).
  • 🛡️ Resilient Circuit Breaker & Rate Limiter: Built-in state machine (CLOSED, OPEN, HALF_OPEN) preventing cascade failures and API quota exhaustion.
  • 🎨 Interactive Studio & Protocol Inspector: Embedded web playground (demo/index.html) to live-test JSON-RPC 2.0 frames, measure roundtrip latency, and inspect schemas.
  • 🔄 Error-Resuming Auto-Installer: Includes install.sh with .install_checkpoint tracking and ./install.sh --resume recovery logic.
  • 🎯 Automated Quality Gate: Static verification engine auditing schema compliance, test coverage, and documentation standards.

⚔️ Comparison & Superiority

🔮 Feature / Metric mcp-gateway-pro 📦 Standard MCP SDK 🐍 FastMCP (Python) 🔗 LangChain Tools
MCP 2026-07-28 Spec Compliance Full Native ✅ Partial ⚠️ Basic ⚠️ No ❌
External Dependencies 0 (Zero) 🟢 12+ npm packages 🟡 25+ pip packages 🔴 50+ packages 🔴
Multi-Transport Multiplexing Stdio + HTTP + SSE + WS ✅ Single transport per process ⚠️ Stdio only ⚠️ REST wrapper only ❌
Execution Latency < 1.2 ms ⚡ ~ 15-30 ms 🐢 ~ 45-90 ms 🐢 ~ 120 ms 🐢
Built-in Circuit Breaker Included ✅ Missing ❌ Missing ❌ Missing ❌
Interactive Inspector Studio Built-in Browser Studio ✅ CLI logs only ❌ None ❌ None ❌
Error-Resuming Installer ./install.sh --resume None ❌ None ❌ None ❌

🚀 Why mcp-gateway-pro is Superior

  1. Zero-Overhead Performance: Written in asynchronous, non-blocking Node.js without heavy framework wrappers. Handles 10,000+ JSON-RPC requests/sec with microsecond overhead.
  2. Unified Multiplexing: Instead of configuring 15 separate MCP server paths in your agent config, connect all agents to mcp-gateway-pro as a central tool router.
  3. Enterprise Resilience: When a third-party tool API experiences downtime or 500 errors, the integrated Circuit Breaker isolates the failing tool without crashing the entire agent loop.

🛠️ Quick Start

1️⃣ Installation

Run the automated error-resuming setup script:

# Executable auto-installer with checkpoint tracking
./install.sh

# If an installation step is interrupted, resume seamlessly
./install.sh --resume

2️⃣ Run in HTTP Gateway Mode

Start the JSON-RPC server on port 8080:

node bin/mcp-gateway.js start

3️⃣ Run in Stdio Mode (Claude Desktop / Cursor / OpenClaw)

Add to your MCP server configuration:

{
  "mcpServers": {
    "mcp-gateway-pro": {
      "command": "node",
      "args": ["/path/to/mcp-gateway-pro/bin/mcp-gateway.js", "stdio"]
    }
  }
}

🎨 Interactive Studio Playground

Launch demo/index.html in your web browser or serve it locally to access the Interactive Studio:

  • 🛠️ JSON-RPC Dispatcher: Test initialize, tools/list, and tools/call methods with 1-click presets.
  • ⏱️ Real-Time Latency Counter: Track request round-trip performance in milliseconds.
  • 📊 Circuit Breaker Status: Monitor health indicators and active tool metrics.

🛡️ Quality Gate & Audit

Verify repo health and code quality using the built-in Quality Gate:

node bin/mcp-gateway.js inspect

Quality Gate Output:

🛡️ Running Quality Gate Audit for mcp-gateway-pro...

✅ [Package Manifest]: Found package.json
✅ [Core Engine]: Found lib/gateway.js
✅ [Transports Layer]: Found lib/transports.js
✅ [Circuit Breaker]: Found lib/circuitBreaker.js
✅ [CLI Entrypoint]: Found bin/mcp-gateway.js
✅ [Studio Studio]: Found demo/index.html
✅ [Auto-installer Checkpoint Logic]: install.sh contains state checkpoint tracking (.install_checkpoint)
✅ [README Emoji Richness]: Vibrant emojis present
✅ [README Roadmap Header Constraint]: Single clean Roadmap section header used
✅ [README Comparison & Superiority Section]: Dedicated breakdown included
✅ [Visual Asset: Banner]: assets/banner.png generated
✅ [Visual Asset: Architecture]: assets/architecture.png generated

🎯 Final Score: 100/100 | Passed: 12/12
✨ Quality Gate Status: PASSED ✅

🗺️ Roadmap

  • 🔐 OAuth2 / API Key Mutual TLS Authentication: Granular role-based token validation for public MCP endpoints.
  • 🌐 WebSocket Bi-Directional Streaming: Full streaming support for real-time token output and progress notifications.
  • 📦 Dynamic Docker & WASM Tool Sandboxing: Isolated execution environments for external shell and code-interpreter tools.
  • 📈 Prometheus & OpenTelemetry Metrics Exporter: Native export of tool latency histograms and error rate metrics.
  • 🔄 Hot-Reloadable Config Subscriptions: Automatically reload upstream MCP server definitions without restarting the gateway process.

📄 License

Distributed under the MIT License. See LICENSE for more information.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured