Master MCP Proxy MCP server

Production-ready OAuth-enabled proxy that aggregates multiple MCP backends into a unified interface with advanced routing, load balancing, authentication, and monitoring capabilities for enterprise environments requiring high availability and resilience.
Back to servers
Setup instructions
Provider
Jakedismo
Release date
Aug 20, 2025
Language
JavaScript
Stats
2 stars

The Master MCP Server is a powerful tool that aggregates multiple Model Context Protocol (MCP) servers behind a single, secure endpoint. It provides unified capability discovery, request routing with resilience, and OAuth flows for multi-backend authentication, making it easier to manage multiple AI model services through one interface.

Installation

Prerequisites

Before installing the Master MCP Server, ensure you have Node.js installed on your system.

Node.js Setup

  1. Install dependencies:
npm ci
  1. Configure your environment by copying and editing the example file:
cp .env.example .env
  1. Launch the server in development mode:
npm run dev

Basic Usage

Once your server is running, you can access several endpoints to interact with it:

Health and Metrics

Check server health and performance:

  • Health check: GET /health returns { ok: true }
  • Metrics: GET /metrics provides basic system metrics

MCP Endpoints

The HTTP gateway provides the following main endpoints:

  • List available tools:
POST /mcp/tools/list
  • Call a specific tool:
POST /mcp/tools/call

With request body:

{
  "name": "tool_name",
  "arguments": { "param1": "value1" }
}
  • List available resources:
POST /mcp/resources/list
  • Read a specific resource:
POST /mcp/resources/read

With request body:

{
  "uri": "resource_uri"
}

Configuration

The Master MCP Server supports configuration through JSON or YAML files, with schema validation and secret resolution capabilities.

Environment Configuration

Edit the .env file to configure essential server parameters:

  • Server port
  • Authentication settings
  • Backend MCP server URLs
  • OAuth settings (if needed)

Deployment Options

Docker

The server can be deployed using Docker:

docker build -t master-mcp-server .
docker run -p 3000:3000 master-mcp-server

Cloudflare Workers

The server also supports deployment to Cloudflare Workers for edge computing:

  1. Configure your wrangler.toml file
  2. Deploy using the Wrangler CLI

Koyeb

For managed deployments, Koyeb configuration is available in the repository.

Advanced Features

OAuth Support

The server provides multiple OAuth authentication options:

  • Master token pass-through
  • Delegated provider flows
  • Proxy refresh for token management

Resilient Routing

Built-in routing features include:

  • Load balancing across multiple backend servers
  • Automatic retries with exponential backoff and jitter
  • Circuit breakers to prevent cascading failures

Examples

The server comes with several example configurations for different use cases:

  • Basic Node.js setup
  • Cloudflare Worker implementation
  • Advanced routing configurations
  • OAuth delegation patterns

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "master-mcp-server" '{"command":"npx","args":["-y","master-mcp-server","start"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "master-mcp-server": {
            "command": "npx",
            "args": [
                "-y",
                "master-mcp-server",
                "start"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "master-mcp-server": {
            "command": "npx",
            "args": [
                "-y",
                "master-mcp-server",
                "start"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later