mcp-gateway
by MikkoParkkola·★ 25·Score 46
Universal MCP Gateway that multiplexes tools with 95% token savings via Meta-MCP.
Overview
MCP Gateway is a sophisticated tool multiplexer that sits between AI clients and backend servers. Instead of loading hundreds of tool definitions into every request, it provides a compact Meta-MCP surface of just 14-17 tools that discover the right backend tool on demand. This approach dramatically reduces context window overhead from ~15,000 tokens (100 tools) to ~1,600 tokens, saving ~89% of token costs and enabling unlimited tool connections without context pressure.
Try asking AI
After installing, here are 6 things you can ask your AI assistant:
When to choose this
Choose MCP Gateway when you have multiple MCP servers and want to reduce context overhead, or when you need to connect REST APIs without building custom MCP servers.
When NOT to choose this
Don't choose MCP Gateway if you only have a small number of tools and servers, or if you need direct, low-latency connections to individual backend services without the gateway layer.
Tools this server exposes
12 tools extracted from the READMEgateway_list_serversList all backend MCP servers connected to the gateway
gateway_list_toolsList all tools available across all connected backend servers
gateway_search_toolsSearch for tools across all backends by name or description
gateway_invokeInvoke a specific tool from any connected backend server
gateway_statsGet usage statistics and performance metrics for the gateway
gateway_cost_reportGenerate a cost report showing token and financial savings
gateway_playbooksShow available playbooks for configuring and managing the gateway
gateway_profile_controlsAccess profile controls for managing tool usage and capabilities
gateway_reloadReload the gateway configuration without restarting the session
gateway_webhook_statusCheck the status of configured webhook endpoints
gateway_disabled_capabilitiesList any disabled capabilities or tools
gateway_doctorRun diagnostic checks on the gateway and its backends
Comparable tools
Installation
Installation Methods
**Homebrew (macOS/Linux, recommended)**
brew install MikkoParkkola/tap/mcp-gateway**Cargo**
cargo install mcp-gateway**Direct binary download**
# macOS Apple Silicon
curl -L https://github.com/MikkoParkkola/mcp-gateway/releases/latest/download/mcp-gateway-darwin-arm64 -o mcp-gateway && chmod +x mcp-gateway**Docker**
docker run -v $(pwd)/gateway.yaml:/config.yaml ghcr.io/mikkoparkkola/mcp-gateway:latest --config /config.yamlSetup
mcp-gateway setup wizard --configure-client
mcp-gateway serve
mcp-gateway doctorFAQ
- How does MCP Gateway save tokens?
- Instead of loading every tool definition into each request, it uses a compact Meta-MCP surface of just 14-17 tools, reducing token overhead by ~89% compared to direct MCP connections.
- Can I use it with existing MCP servers?
- Yes, the gateway can import and route traffic to your existing MCP servers without requiring changes to them.
- How does it handle security?
- The gateway includes tool poisoning validators, SHA-256 capability hash-pinning, rug-pull detection, and provides a centralized audit surface for all capabilities.
Compare mcp-gateway with
Last updated · Auto-generated from public README + GitHub signals.