SuperAPI AI Directory

mcp-broker

Local MCP broker exposing one client entry that routes to many upstream MCP servers, with profile gates, lifecycle management and mutating-tool allowlists.

Open website

About this tool

Purpose: mcp-broker is a local Model Context Protocol process proxy for MCP clients, similar to PgBouncer for MCP. It provides a stable local endpoint in front of numerous upstream MCP servers, avoiding each agent session loading all upstream tool definitions before a task begins.

Main capabilities: run a local proxy daemon based on a Unix socket; expose a lightweight stdio client shim to MCP clients; start upstream MCP servers on demand; reuse shared upstreams across sessions when configuration allows, or isolate them per session; map upstream tools to stable namespaces; provide compressed search, describe, call, status, and caller-bound session close tools; enforce profile-level tool budgets and exposure gating; block mutable upstream exposure unless a profile allowlist authorizes it; store runtime state under $HOME/mcp/mcp-broker; support dry-run, backup, and rollback for client configuration rendering; provide install and uninstall procedures for macOS LaunchAgent, Linux systemd user service, and Windows PowerShell scheduled task.

Usage: create config/broker.private.yaml from config/broker.example.yaml for YAML configuration, and validate with JSON Schema via config/broker.schema.json. Run make config-validate to validate configuration, make broker-smoke for smoke testing, and make quality-gate to run the public quality gate. Client configuration must first be rendered with dry-run, reviewed, then applied, and loaded on demand. In the MCP client, /mcp should show an mcp-broker entry, and use broker_status to view the upstream status visible to the profile. Installation is available via Homebrew, Python package, or Docker; requires Python 3.10+, Node.js, and npx.

Applicable scenarios: suitable for developer agent workflows using Codex, Claude Code, AGY CLI, or other MCP clients, with a large number of MCP tools, wanting to share local MCP servers, centrally manage OAuth status and cleanup, and provide different tool profiles for different clients.

Limitations: this repository is local desktop infrastructure, not an enterprise-grade MCP control plane, and the public version does not support hosted execution. Protected interfaces such as OAuth, browser state, filesystem roots, and databases require explicit configuration and validation. The configuration loader rejects unknown keys. Release status and Docker MCP Catalog submission still require Docker review; MCPB metadata is located at mcpb/manifest.json for local catalog review.