MCPX Control Plane MCP server

Control plane and proxy server that aggregates multiple MCP servers through centralized management, providing tool access controls, session management, metrics collection, and Docker-based orchestration via a web-based dashboard.
Back to servers
Setup instructions
Provider
Lunar.dev
Release date
Jul 07, 2025
Language
JavaScript
Stats
243 stars

Lunar MCPX serves as an aggregator for Model Context Protocol (MCP) servers, streamlining the integration and management of multiple MCP servers dynamically. It enables developers to manage connections to various MCP-compatible services through simple configuration changes, allowing for rapid integration without coding.

Installation Options

Docker Installation

Using Docker is the simplest way to get MCPX running:

docker pull lunar/mcpx:latest
docker run -p 8080:8080 lunar/mcpx:latest

This will start the MCPX server on port 8080 of your local machine.

Local Installation

For local installation, you'll need to:

  1. Clone the repository
  2. Install dependencies
  3. Configure your environment
  4. Start the server

Follow these steps:

# Clone the repository
git clone https://github.com/mcpx/mcpx.git
cd mcpx

# Install dependencies
npm install

# Start the server
npm start

Configuration

MCPX is configured through a JSON configuration file that defines the MCP servers it connects to.

Basic Configuration Example

Create a config.json file:

{
  "servers": [
    {
      "name": "openai",
      "host": "api.openai.com",
      "port": 443,
      "protocol": "https",
      "apiKey": "YOUR_OPENAI_API_KEY"
    },
    {
      "name": "anthropic",
      "host": "api.anthropic.com",
      "port": 443,
      "protocol": "https",
      "apiKey": "YOUR_ANTHROPIC_API_KEY"
    }
  ],
  "defaultServer": "openai"
}

Environment Variables

You can also configure MCPX using environment variables:

export MCPX_PORT=8080
export MCPX_DEFAULT_SERVER=openai
export MCPX_OPENAI_API_KEY=your_api_key
export MCPX_ANTHROPIC_API_KEY=your_api_key

Using MCPX

Connecting Clients

Once MCPX is running, you can connect MCP-compatible clients to it. MCPX accepts connections on the configured port (default: 8080).

For example, to connect Claude Desktop:

  1. Open Claude Desktop
  2. Go to Settings > MCP
  3. Enter the MCPX server address (e.g., http://localhost:8080)
  4. Save and restart Claude Desktop

Switching Between Models

MCPX allows dynamically switching between different MCP backends:

# Using curl to switch the active model
curl -X POST http://localhost:8080/api/config/default -H "Content-Type: application/json" -d '{"server": "anthropic"}'

Checking Server Status

You can verify your MCPX instance is running correctly:

curl http://localhost:8080/health

This should return a 200 OK response with status information.

Control Plane

MCPX includes a control plane interface that helps you inspect live traffic and manage your instance. To access it:

  1. Ensure MCPX is running
  2. Navigate to http://localhost:8080/control in your web browser

The control plane provides:

  • Live traffic monitoring
  • Server configuration management
  • Performance metrics
  • Log inspection

Troubleshooting

Common Issues

  • Connection Refused: Ensure MCPX is running and the port is accessible
  • Authentication Errors: Check that your API keys are correctly configured
  • Missing Models: Verify the server configuration includes the model you're trying to access

Logs

For troubleshooting, check the MCPX logs:

# When running with Docker
docker logs <container_id>

# When running locally
npm run logs

For more detailed information about features, architecture, and advanced options, visit the official documentation.

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 "mcpx" '{"command":"npx","args":["-y","@thelunarcompany/mcpx"]}'

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": {
        "mcpx": {
            "command": "npx",
            "args": [
                "-y",
                "@thelunarcompany/mcpx"
            ]
        }
    }
}

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": {
        "mcpx": {
            "command": "npx",
            "args": [
                "-y",
                "@thelunarcompany/mcpx"
            ]
        }
    }
}

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