MCP Gateway
Supports connecting to a GitHub MCP server via stdio, allowing GitHub tools and operations to be aggregated and invoked through the gateway using configured credentials.
Supports connecting to Notion's MCP server over HTTP with OAuth authentication, exposing Notion tools through the gateway's unified interface.
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
Unified MCP router that aggregates multiple MCP servers into a single interface for AI agents.
Overview
MCP Gateway lets any compatible client talk to multiple Model Context Protocol servers through one entry point. It supports stdio and streamable HTTP transports, manages OAuth flows, and keeps configuration in sync across files with hot reloading.
flowchart TB
subgraph Clients["AI Clients"]
CLI["Claude Desktop<br/>(stdio)"]
HTTP["Custom Client<br/>(HTTP)"]
end
subgraph Gateway["MCP Gateway"]
Router["Central Router"]
Discovery["Tool Discovery"]
Auth["OAuth Manager"]
Cache["Config Hot Reload"]
end
subgraph Storage["Local Storage"]
Config["Config Files<br/>~/.mcp-gateway"]
Keychain["OS Keychain<br/>(Tokens)"]
end
subgraph MCPServers["⚡ MCP Servers"]
FS["Filesystem<br/>(stdio)"]
GH["GitHub<br/>(stdio)"]
Notion["Notion<br/>(HTTP + OAuth)"]
Custom["Custom Server<br/>(SSE)"]
end
CLI -.->|stdio| Router
HTTP -.->|HTTP/SSE| Router
Router -->|parallel execution| FS
Router -->|parallel execution| GH
Router -->|parallel execution| Notion
Router -->|parallel execution| Custom
Config -.->|load/watch| Cache
Keychain -.->|secure tokens| Auth
Discovery -.->|list tools| Router
Router -.->|start OAuth flow| Auth
Auth -.->|tokens for downstream| Notion
classDef clientStyle fill:#e1f5ff,stroke:#0288d1,stroke-width:2px,color:#000000
classDef gatewayStyle fill:#fff3e0,stroke:#f57c00,stroke-width:2px,color:#000000
classDef serverStyle fill:#f3e5f5,stroke:#7b1fa2,stroke-width:2px,color:#000000
classDef storageStyle fill:#e8f5e9,stroke:#388e3c,stroke-width:2px,color:#000000
class CLI,HTTP clientStyle
class Router,Discovery,Auth,Cache gatewayStyle
class FS,GH,Notion,Custom serverStyle
class Config,Keychain storageStyleRelated MCP server: MCP Proxy Server
Project Direction
This fork of Super MCP focuses on dedicated enhancements and modular architecture improvements:
Modular server.ts - Breaking down the monolithic server into focused, testable components
Expanded test coverage - Comprehensive test suite for reliability and confidence
Tooling & auth flow enhancements - Faster hot reload, improved authentication patterns, request deduplication
Schema caching optimizations - Performance improvements for large-scale deployments
Key Features
Transport flexibility – Connect stdio, SSE, and streamable HTTP packages from one router.
Parallel execution – Run multiple tool calls simultaneously with
multi_use_toolfor faster workflows.Secure authentication – Run built-in OAuth flows with token storage handled by the OS keychain.
Config orchestration – Generate configs automatically, hot-reload changes, and merge multiple files.
Discovery & validation – Inspect tool and package metadata, run health checks, and validate schemas.
Structured observability – Use structured logging with optional file output for debugging sessions.
Differentiators vs Super MCP
This fork introduces several focused enhancements while maintaining compatibility with the upstream original project:
Architecture & Performance
Modular design - Server components separated for better testability and maintenance
Request deduplication - Intelligent caching to reduce redundant MCP calls
Schema caching - Faster tool discovery and validation through persistent schema storage
Enhanced hot reload - Faster configuration changes with improved file watching
Extended CLI commands - Additional management and inspection capabilities
Development Experience
Comprehensive testing - Expanded test coverage for reliability
Better debugging - Enhanced logging and diagnostic tools
Modular extensibility - Easier to add custom transports and handlers
Note: This fork maintains a focused roadmap for production-ready enhancements.
Privacy & Security
Tokens and credentials are stored locally via the system keychain.
Configuration files may reference environment variables (e.g.,
${GITHUB_TOKEN}) to avoid hardcoding secrets.Never commit personal configs or API keys to source control.
Quick Start
1. Add to your MCP-enabled CLI (stdio)
Edit the CLI config to point at MCP Gateway. The CLI will launch the router on demand.
{
"mcpServers": {
"mcp-gateway": {
"command": "npx",
"args": ["-y", "github:sting8k/mcp-gateway", "--transport", "stdio", "--log-to-file", "--log-level", "info"]
}
}
}Use this fork for enhanced features like faster hot reload, improved authentication, and modular architecture.
--transport stdiois required for CLI integrations.--log-to-filewrites protocol-safe logs to~/.mcp-gateway/logs/; adjust--log-levelas needed.
2. Optional: streamable HTTP server
Start MCP Gateway manually if your client prefers HTTP (default port 3001).
npx -y github:sting8k/mcp-gatewayThen register it with your client:
{
"mcpServers": {
"mcp-gateway": {
"type": "http",
"url": "http://localhost:3001/mcp"
}
}
}3. Restart your CLI
~/.mcp-gateway/config.json is created automatically on first run.
4. Add MCP servers
Use cli
npx mcp-gateway add filesystem
npx mcp-gateway add githubYou can also edit ~/.mcp-gateway/config.json directly.
Or edit Configuration file
Example ~/.mcp-gateway/config.json:
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/dir"]
},
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_xxx"
}
},
"notion": {
"type": "http",
"url": "https://mcp.notion.com/mcp",
"oauth": true
}
}
}Config Options
Stdio servers: command, args, env, cwd
HTTP/SSE servers: type ("http" or "sse"), url, oauth, headers
Common fields: disabled (boolean), name, description
Multiple Config Files
Point MCP Gateway to additional config files via CLI arguments or environment variables:
CLI flag: pass
--config /path/to/one.json --config /path/to/two.jsonwhen launching the router.Environment: set
MCP_GATEWAY_CONFIG="~/personal.json,~/work.json"(comma-separated paths) before starting the CLI.
npx -y github:sting8k/mcp-gateway --config ~/personal.json --config ~/work.jsonexport MCP_GATEWAY_CONFIG="~/personal.json,~/work.json"Feature Spotlight
Single interface for all MCP transports.
OAuth support with token storage.
Tool discovery and validation helpers.
Config hot reload for rapid iteration.
Built-in help via
get_help(topic: "getting_started").
Community & Resources
License
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
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
The OpenRouter for tools. One MCP connection gives any AI agent 254 hosted tools, pay per call.
The Remote MCP server acts as a standardized bridge between LLM applications (like Claude, ChatGPT, and Cursor) and external services, enabling AI agents to access external tools and resources. Its primary capability is providing a centralized search tool to discover other MCP servers and their respective tools. Unlike local implementations, it runs remotely with OAuth authentication and permission controls for security.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables connecting, aggregating, and routing multiple backend Model Context Protocol servers (Stdio, SSE, and Streamable HTTP) by exposing their combined tools and resources through unified SSE/HTTP endpoints or a single Stdio interface, with optional authentication and web-based admin management.120 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables aggregation and unified access to multiple backend Model Context Protocol servers, exposing their tools and resources through SSE, Streamable HTTP, or Stdio endpoints while routing requests to the appropriate backend.120 npmMIT
- AlicenseNot gradedqualityAmaintenanceAggregates multiple backend Model Context Protocol servers of Stdio, SSE, and Streamable HTTP types and exposes their combined tools and resources through a single unified SSE, Streamable HTTP, or Stdio interface with request routing and authentication. Includes an optional web admin UI for managing server connections, enabling or disabling individual tools, overriding tool names and descriptions, and live-reloading configuration.120 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables clients to connect to and manage multiple backend Model Context Protocol servers, aggregating their tools and resources and exposing them through a unified SSE, Streamable HTTP, or Stdio interface.120 npmMIT