Master MCP Server
Master MCP Server aggregates multiple MCP servers behind a single, secure endpoint. It provides configuration-driven module loading, unified capability discovery, request routing with resilience, and first-class OAuth flows for multi-backend authentication.
Highlights
Aggregates multiple MCP servers with tool/resource discovery and namespacing
OAuth support: master token pass-through, delegated provider flows, proxy refresh
Config-driven setup with JSON/YAML, schema validation, and secret resolution
Resilient routing: load-balancing, retries with backoff/jitter, circuit-breakers
Cross-platform: Node.js server and Cloudflare Workers runtime
Production-ready deployment: Docker, Cloudflare Workers, Koyeb
Testing strategy and CI-ready structure
Quick Start (Node.js)
Install dependencies (requires network):
Configure environment (copy and edit):
Run in dev mode:
Health and Metrics:
GET /health→{ ok: true }GET /metrics→ basic system metrics
MCP endpoints (HTTP gateway):
POST /mcp/tools/listPOST /mcp/tools/callwith{ name, arguments }POST /mcp/resources/listPOST /mcp/resources/readwith{ uri }
See docs/ for full guides and end-to-end examples.
Documentation
Docs index:
docs/index.mdGetting started:
docs/getting-started/overview.mdGuides:
docs/guides/*API reference: generated into
docs/api/reference/(see below)Configuration reference:
docs/configuration/*Deployment:
docs/deployment/*Troubleshooting:
docs/troubleshooting/*Contributing:
docs/contributing/*
Generate API Docs
We use TypeDoc (Markdown) to generate API docs from TypeScript.
Install (requires network):
Generate docs:
Outputs to docs/api/.
Examples
Working examples live in examples/:
Basic Node:
examples/basic-nodeCloudflare Worker:
examples/cloudflare-workerAdvanced Routing:
examples/advanced-routingOAuth Delegation:
examples/oauth-delegationTesting Patterns: see
/testsanddocs/examples/testing.md
Each example has a README with run instructions.
Deployment
Docker:
deploy/docker/*and top-levelDockerfile/docker-compose.ymlCloudflare Workers:
deploy/cloudflare/*withwrangler.tomlKoyeb:
deploy/koyeb/koyeb.yamlCI/CD examples: see
docs/deployment/cicd.md
Architecture
Contributing & Support
See
docs/contributing/*for development workflow and guidelinesSee
docs/troubleshooting/index.mdfor solutionsOpen an issue or discussion for help and ideas
License
See LICENSE. This repository currently uses UNLICENSED for private/internal use.
This server cannot be installed
Related Resources
Related MCP Servers
- -securityAlicense-qualityA middleware server that enables multiple isolated instances of the same MCP servers to coexist independently with unique namespaces and configurations.Last updated -1475MIT License
- AsecurityAlicenseAqualityA central hub that aggregates multiple MCP resource servers into a single unified interface, enabling users to access tools and capabilities from multiple backend servers through one connection point.Last updated -5182MIT License
Pipedreamofficial
-security-license-qualityRun your own MCP server for over 2,500 apps and APIs. * Run your own MCP server for over 2,500 APIs * Manage servers for your users, in your own app. * Connect accounts, configure params, and make API requests, all via tools * Fully-managed OAuth and credential storage )Last updated -19810,840