Skip to content

CLI Reference

Global Options

OptionDescription
--config, -cPath to config file (default: config/default.yaml)
--jsonEmit machine-readable JSON output
--dry-runShow what would change without applying it
--yesAutomatically confirm destructive actions

Commands

serve

Start the aggregator hub.

bash
mcp-director serve [OPTIONS]
OptionDescription
--config, -cPath to config file
--log-level, -lOverride log level
--quiet, -qDo not print logs to stderr (only the banner)
--project, -pActive project to load
--profileProfile to use for STDIO connections
--langLanguage (en/ru)
--no-webDo not start the integrated web interface
--no-stdioDisable STDIO transport (run as daemon for multi-client setup)

connect

Connect to a running MCP Director server via stdio.

bash
mcp-director connect [OPTIONS]
OptionDescription
--url, -uURL of the MCP Director server (default: http://127.0.0.1:3000)
--project, -pProject to use
--profileProfile to use
--tokenAuthentication token
--quiet, -qSuppress status messages to stderr

Multi-Client Architecture

┌─────────────────────────────────────────────────────────────────┐
│                    mcp-director serve --no-stdio                │
│  ┌───────────────┐  ┌───────────────┐  ┌───────────────────┐   │
│  │ HTTP :3000    │  │ Router        │  │ Web UI            │   │
│  │  - /mcp       │  │ Registry      │  │ (single instance) │   │
│  │  - /sse       │  │ Backends      │  │                   │   │
│  │  - /api       │  │ Database      │  │                   │   │
│  └───────────────┘  └───────────────┘  └───────────────────┘   │
└─────────────────────────────────────────────────────────────────┘

                               │ HTTP POST /mcp
         ┌─────────────────────┼─────────────────────┐
         │                     │                     │
         ▼                     ▼                     ▼
┌─────────────────┐  ┌─────────────────┐  ┌─────────────────┐
│ mcp-director    │  │ mcp-director    │  │ mcp-director    │
│ connect         │  │ connect         │  │ connect         │
│ (Claude)        │  │ (Cursor)        │  │ (Other)         │
│ stdin ↔ HTTP    │  │ stdin ↔ HTTP    │  │ stdin ↔ HTTP    │
└─────────────────┘  └─────────────────┘  └─────────────────┘

server

Manage configured servers.

bash
mcp-director server <COMMAND>
CommandDescription
listList all servers
add <name>Add new server
remove <name>Remove server from config
start <name>Start a server
stop <name>Stop a server
status <name>Check server configuration status

project

Manage projects.

bash
mcp-director project <COMMAND>
CommandDescription
listList all projects
set <name>Set default project in config
add <name> --servers <s1,s2>Create new project
remove <name>Delete project

profile

Manage client profiles.

bash
mcp-director profile <COMMAND>
CommandDescription
listList all profiles
add <name>Create new profile
remove <name>Delete profile

auth

Manage authentication settings.

bash
mcp-director auth <COMMAND>
CommandDescription
statusCheck authentication status
enableEnable authentication
disableDisable authentication

reload

Send a reload signal to a running mcp-director serve process via API.

bash
mcp-director reload [OPTIONS]

Released under the MIT License.