🌐
v1.3.0 PRODUCTION RELEASE // HETEROGENEOUS MCP FEDERATION

Cut LLM prompt bloat by 90%.
The dynamic MCP gateway & lazy router.

Connecting coding agents to 10+ Model Context Protocol servers injects 30,000+ tokens of heavy JSON schemas before you type a word. mcp-mesh federates your servers into a single, high-performance bridgeβ€”indexing, pre-warming, and routing tools on demand with zero external dependencies.

$ uvx mcp-mesh run --federate
94.6%
Turn-0 Prompt Token Reduction
Zero Deps
100% Python Standard Library
< 1.2s
10-Server Concurrent Discovery
161 / 161
Automated Regression Tests Passing
The Bottleneck

Why static MCP schemas break coding agents

1. Turn-0 Context Exhaustion

Each connected tool adds ~163 tokens of JSON schema. Connecting 60 tools across GitHub, Postgres, and Slack dumps nearly 10,000 tokens into the prompt on every turn, burning dollars before work starts.

2. Attention Decay ('Lost in the Middle')

Flooding the context with hundreds of parameter signatures distracts frontier models. High schema density causes parameter hallucinations, invalid formats, and ignored instructions.

3. Fragmented Workstation Configs

Developers maintain separate configs across Claude Desktop, Cursor, and Antigravity. Duplicate subprocesses spawn zombie background jobs and slow down workstation performance.

Architecture Comparison

Raw Static Injection vs. mcp-mesh Gateway

WITHOUT MESH (STATIC INJECTION) Naive Architecture
Naive multi-server client architecture
  • βœ• 9,790 tokens injected into system prompt on turn 0
  • βœ• High schema density induces severe attention decay
  • βœ• Disparate unmanaged child processes and zombie leaks
WITH MCP-MESH GATEWAY Production Proxy
Universal transparent reverse proxy
  • βœ“ Only 4 lightweight meta-tools (527 tokens total)
  • βœ“ Sub-millisecond BM25 keyword tool search & predictive pre-warm
  • βœ“ Continuous stderr drain & dedicated thread lifecycle supervision
Technical Specification

Transparent Multiplexing & Lazy Routing Architecture

mcp-mesh operates as an in-memory transparent reverse proxy between your AI client and upstream MCP child processes with sub-millisecond overhead.

 β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
 β”‚                      Heterogeneous AI Clients / IDEs                    β”‚
 β”‚               Claude Desktop  β”‚  Cursor  β”‚  Google Antigravity         β”‚
 β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                     β”‚ Single stdio / JSON-RPC 2.0 connection
                                     β”‚ Only 4 lightweight Meta-Tools (527 tokens total)
                                     β–Ό
 β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
 β”‚                   mcp-mesh v1.3.0 Federation Gateway                   β”‚
 β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
 β”‚  β”‚        Federation Manager (Auto-discovery, Loop Prevention)       β”‚  β”‚
 β”‚  β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€  β”‚
 β”‚  β”‚      Tool Indexer, BM25 Scoring & Predictive Pre-Warmer          β”‚  β”‚
 β”‚  β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€  β”‚
 β”‚  β”‚  Circuit Breakers, Telemetry Ledger & Transparent Process Router β”‚  β”‚
 β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
 β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                     β”‚ Concurrently supervised upstream stdio pipes
         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
         β–Ό                           β–Ό                           β–Ό
 β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
 β”‚ ghost-job-hunter MCP  β”‚   β”‚ Postgres MCP          β”‚   β”‚ Filesystem / Git MCP  β”‚
 β”‚ (Antigravity Config)  β”‚   β”‚ (Claude Config)       β”‚   β”‚ (Cursor Config)       β”‚
 β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

The 4 Core Meta-Tools (527 Tokens Total)

mesh_search_tools 145 tokens

Sub-millisecond BM25 keyword indexing across all federated schemas. Finds relevant tools dynamically without dumping whole definitions.

params: { query: string, limit?: integer (default: 5) }
mesh_describe_tool 128 tokens

Just-In-Time schema retrieval. Fetches exact parameter types, required fields, and enums only when the LLM selects a specific tool.

params: { tool_name: string }
mesh_invoke_tool 136 tokens

Transparent stdio dispatch to target child process. Supervised execution with timeouts and output capture.

params: { tool_name: string, arguments: object }
mesh_status 118 tokens

Real-time topology, process health, memory usage, circuit breaker states, and SQLite token economics ledger.

params: { verbose?: boolean }

Subprocess Management & Non-Blocking Supervision

Standard OS pipes deadlock at 64KB when children write to stderr without a consumer. mcp-mesh spawns dedicated daemon reader threads with 50-line circular ring buffers for continuous non-blocking drain.

  • βœ“ Cross-platform SIGTERM & Windows taskkill /F /T
  • βœ“ Zero orphan zombie processes upon host exit

Predictive Pre-Warming Engine

Searching for a tool triggers an asynchronous background spawn of the target downstream server before the LLM generates the invoke call, completely hiding cold-start latency.

  • ⚑ 0ms added invocation latency for hot tools
  • ⚑ Background PID initialization in ~120ms
Interactive Lab

Simulate Your Token & Dollar Savings

Adjust parameters to calculate exact context window savings and estimated API bill reductions based on empirical benchmark models.

Workstation Parameters Live Formula
Connected Upstream MCP Servers 10
e.g. GitHub, Postgres, Slack, Filesystem, AWS, Stripe...
Average Tools per Server 6
Total active tools in fleet: 60
Monthly Agent Turns (Prompt Invocations) 5,000
Typical active engineering agent usage
Static Injection (Without Mesh)
9,790

Prompt tokens burned on turn 0 before user enters code.

With mcp-mesh Gateway
527

Lightweight meta-tool signatures loaded on demand.

Prompt Context Reduction
94.6% saved per turn

Net tokens avoided per request: 9,263

Avoided Monthly Spend
$138.95

Direct API billing dollars eliminated

Turn-0 Token & Latency Impact Benchmark mcp-mesh-eval
Naive Static Injection 9,790 tokens
mcp-mesh Gateway 527 tokens
Time-To-First-Token (TTFT)
1,840 ms
Static Injection
74.7% Faster TTFT
465 ms
With mcp-mesh Gateway
$ python -m mcp_mesh.cli stats --db
Interactive Tool Routing & BM25 Playground /

Test natural language query routing across simulated upstream servers in real time.

Configuration

One-Command Integration

Add mcp-mesh as your single master MCP bridge. The --federate flag automatically auto-discovers all local server configs.

Global One-Liner Install Runs instantly with zero external dependencies using uv or python
$ uvx mcp-mesh run --federate
{ ... }

Configuration File Locations by Operating System

Client / IDE macOS Path Windows Path Linux Path
Claude Desktop ~/Library/Application Support/Claude/claude_desktop_config.json %APPDATA%\Claude\claude_desktop_config.json ~/.config/Claude/claude_desktop_config.json
Cursor IDE ~/.cursor/mcp.json %USERPROFILE%\.cursor\mcp.json ~/.cursor/mcp.json
Google Antigravity ~/.gemini/config/mcp_config.json %USERPROFILE%\.gemini\config\mcp_config.json ~/.gemini/config/mcp_config.json
Production Hardening

Enterprise-Grade Reliability & Security Audit

mcp-mesh is built with defense-in-depth principles to protect local developer workstations and remote server deployments.

πŸ›‘οΈ DNS Rebinding Protection

Enforces loopback host header verification against malicious browser-origin attacks targeting localhost daemon services.

πŸ”’ Timing-Safe Bearer Auth

Constant-time token verification via hmac.compare_digest eliminates side-channel timing vulnerabilities on SSE endpoints.

πŸ“¦ Memory & Payload Gating

Strict 10MB payload size ceiling prevents buffer overflow and denial-of-service memory exhaustion attacks.

⚑ Deadlock-Free Pipe Supervision

Dedicated reader threads and continuous 50-line stderr ring buffers prevent OS pipe capacity deadlocks during high-throughput execution.

Automated Regression Verification Matrix

Empirical verification results from 161 automated regression tests passing across 5 repositories.

Repository Test Suite Focus Passing Tests Verified Status
mcp-mesh Federation, BM25 Indexer, Pipe Drain, Circuit Breakers 46 / 46 100% PASS
mcp-mesh-ui SSE Live Stream, Port 8765 Web SPA, Topology Graph 14 / 14 100% PASS
mcp-mesh-eval 94.6% Token Reduction, Latency Benchmark, Cost Modeling 15 / 15 100% PASS
mcp-registry-cli Remote Registry Search, Schema Ingestion, Health Checking 12 / 12 100% PASS
ghost-job-hunter 5 Scoring Heuristics, Multi-Board Scraper, SQLite Ledger 42 / 42 100% PASS
career-reboot-armor Documentation Integrity, Markdown Linting, Structure Tests 32 / 32 100% PASS
Total Fleet Suite 6 Repositories Across Ecosystem 161 / 161 ALL PASSED
Live Observability

Real-Time Telemetry & Topology Stream

Why was 127.0.0.1:8765 previously shown? When running locally, mcp-mesh-ui binds an SSE event stream and HTTP visualizer to http://127.0.0.1:8765. Below is an interactive client simulation, plus instructions to connect your local daemon.

GATEWAY STATUS
SUPERVISED
Supervised Reader Pipes
3 Active (50-line ring)
P95 Dispatch Latency
0.84 ms
Cumulative Tokens Saved
68,420
Filter:
Connect Local mcp-mesh-ui Daemon UNCHECKED

Run the following command on your workstation to start the local visualizer and connect your IDEs:

$ uvx mcp-mesh-ui --port 8765
Portfolio

Open Source Ecosystem

Maintained under Existential Cloud AI Studio. All repositories engineered with zero external dependencies.

FLAGSHIP GATEWAY v1.3.0

mcp-mesh

The Universal Heterogeneous MCP Reverse Proxy & Federation Gateway. Slashes prompt bloat by 85–95%, auto-discovers client configs, pre-warms target processes, and persists SQLite telemetry.

Python β€’ 46/46 Tests β€’ ZeroDeps Repo →
OBSERVABILITY v1.3.0

mcp-mesh-ui

Real-time topology visualizer & observability dashboard for mcp-mesh. Features dark-mode local Web SPA (port 8765, SSE live stream), ANSI terminal TUI, and tool co-occurrence graph.

Vanilla JS β€’ 14/14 Tests β€’ SSE Repo →
BENCHMARK HARNESS v1.0.0

mcp-mesh-eval

Empirical benchmarking suite for evaluating prompt token degradation, schema overhead, and end-to-end routing latencies with statistical confidence intervals.

Python β€’ 15/15 Tests β€’ Benchmarks Repo →
TACTICAL AGENT v2.1.0

ghost-job-hunter

Autonomous anti-phantom job hunting agent. Features 5 heuristic scoring engines, multi-board scraping (Hacker News, RemoteOK, WWR), SQLite tracking ledger, and 1-click RFC 822 email drafting.

Python β€’ 42/42 Tests β€’ MCP Server Repo →
TACTICAL PLAYBOOK Phase 3

career-reboot-armor

Publication-grade field manual and portfolio strategy guide for engineers re-entering the tech workforce after medical or family hiatuses. Includes ATS bypass blueprints and interview scripts.

Markdown β€’ 32/32 Tests β€’ Playbook Repo →
STUDIO PORTAL v1.0.0

github-ai-studio

Central repository hub and landing portal for Existential Cloud AI Studio. Orchestrates documentation, repository federation, and portfolio showcases.

Static Portal β€’ GitHub Pages Repo →
Frequently Asked Questions

Everything you need to know about mcp-mesh

Does routing through mcp-mesh add latency to tool calls?

No. In fact, total end-to-end latency decreases significantly. Reducing the prompt token footprint from 10,000 to 527 tokens slashes model pre-fill latency (TTFT) by 60%–70%. Additionally, mcp-mesh predictively pre-warms target downstream subprocesses the instant an agent searches for them.

Do I need to reconfigure all my existing MCP servers?

No. With the --federate flag, mcp-mesh automatically scans Claude Desktop, Cursor, and Antigravity configuration files, unifying all existing servers into a single bridge without manual migration.

Does mcp-mesh send telemetry or data to the cloud?

Zero telemetry leaves your machine. mcp-mesh runs entirely locally with zero external network dependencies, storing telemetry only in your local workstation's SQLite ledger for auditability.

What happens if a downstream MCP server crashes or hangs?

mcp-mesh features built-in isolated circuit breakers. If an upstream server hangs or fails, mcp-mesh safely returns a graceful JSON-RPC error without freezing your host IDE or agent session.

How are Windows and Unix process signals handled?

On POSIX systems, mcp-mesh issues SIGTERM followed by SIGKILL on timeout. On Windows, it uses taskkill /F /T to terminate the entire process tree including spawned child shells, preventing orphaned background zombie processes.

How is the 94.6% token reduction measured?

Empirical benchmarks in mcp-mesh-eval measure naive schema injection (10 servers x 6 tools = 60 tools x ~163 tokens = 9,790 tokens) versus mcp-mesh meta-tool schemas (4 tools = 527 tokens total), yielding exactly 94.6% reduction.

Can mcp-mesh bridge stdio servers to SSE / HTTP clients?

Yes. mcp-mesh supports bidirectional protocol bridging: stdio client to stdio server, stdio client to SSE server, or SSE client to stdio server with timing-safe Bearer authentication.

What is the open source license and commercial policy?

All core repositories under Existential Cloud AI Studio are published under the MIT License and contain zero external runtime dependencies. They are free for personal, commercial, and enterprise deployment.