Labsco
gd03champ logo

MCP Docker Orchestrator

from gd03champ

A daemon to orchestrate MCP servers as Docker containers and configure AWS ALB path-based routing.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

MCP Docker Orchestrator

A systemd-managed daemon that orchestrates MCP (Model Context Protocol) servers as Docker containers and configures AWS ALB path-based routing.

Features

  • Docker Compose Integration: Manage MCP servers using standard Docker Compose format
  • AWS ALB Integration: Configure path-based routing in AWS Application Load Balancer
  • Web Dashboard: Monitor and control MCP services through a web interface
  • Self-healing: Automatically reconcile configuration and actual state
  • Secure: No persistence of secrets, compatible with LiteLLM Proxy

Architecture

The MCP Docker Orchestrator consists of several core components:

  • Configuration Manager: Handles loading and parsing of Docker Compose configuration
  • Compose Manager: Manages Docker Compose service lifecycle
  • ALB Manager: Configures AWS ALB routing rules
  • Dashboard: Web interface for monitoring and management
  • Orchestrator Service: Main process that coordinates all components

Dashboard

The web dashboard is available at:

http://your-server:5000/monitor

Default login: admin / changeme

Features:

  • Overview of MCP servers
  • Container status monitoring
  • ALB routing configuration
  • Actions (start/stop/restart services)
  • Synchronization controls

Routing

Each MCP server is mapped to a path based on its ID or the mcp.path label:

/mcp/{server-id}/*

These path patterns are configured in the ALB listener rules.

Migrating from mcp.config.json

If you're upgrading from an older version that used mcp.config.json, you can use the built-in migration tool:

python orchestrator/main.py --migrate /path/to/mcp.config.json

This will:

  1. Read your existing mcp.config.json
  2. Convert it to the new Docker Compose format
  3. Save it as mcp-compose.yaml