AI and integrations
MCP server
Let AI assistants read status and run the actions you allow.
๐ก What it is
The Orchestrator MCP server connects AI clients that speak the Model Context Protocol โ desktop assistants, coding agents and other MCP clients โ to your panel. The AI can then answer questions like "which servers are low on disk?" or "why is the queue on shop.example.com failing?", and run the actions you allow, such as deploying a site or restarting a service.
It works through the panel's REST API with a personal access token, so the AI can never do more than the token's owner โ and much less than an admin in the browser.
๐งฐ Setting it up
- Create a token: Settings โ Security โ Personal Access Tokens (for example AI assistant). Use an admin account if the AI should see servers, fleet, billing and monitoring; those tools return 403 for other roles.
- Build the MCP server on the machine where your AI client runs (it ships in
apps/mcpof the Orchestrator distribution and needs Node.js 20+):
cd apps/mcp
npm install
npm run build
- Add it to your MCP client's configuration. Most clients use a block like this:
{
"mcpServers": {
"orchestrator": {
"command": "node",
"args": ["/path/to/apps/mcp/dist/index.js"],
"env": {
"ORCHESTRATOR_URL": "https://panel.example.com",
"ORCHESTRATOR_TOKEN": "orch_โฆ",
"MCP_ENABLE_ACTIONS": "true"
}
}
}
}
Clients that are configured from the command line need the same three parts: the command node /path/to/apps/mcp/dist/index.js and the environment variables ORCHESTRATOR_URL and ORCHESTRATOR_TOKEN.
On start, the server checks the token and logs how many sites it can see.
Settings
| Variable | Notes |
|---|---|
ORCHESTRATOR_URL |
The panel's address, without a trailing slash. |
ORCHESTRATOR_TOKEN |
A personal access token (orch_โฆ). |
MCP_ENABLE_ACTIONS |
Set to false for a read-only AI โ only the read tools are offered. |
MCP_HTTP_PORT |
Serve over Streamable HTTP on this port instead of stdio (endpoint /mcp). |
MCP_HTTP_AUTH |
A shared bearer token HTTP clients must send. Always set it when using HTTP. |
๐ Server permissions
Actions on servers need an explicit, per-server permission in Infrastructure โ server โ Settings โ AI permissions:
| Permission | Allows |
|---|---|
| Manage services | start, stop, restart, reload systemd services |
| Manage Docker containers | start, stop, restart containers |
| Update packages | apt upgrade / dist-upgrade |
| Reboot the server | reboot now or scheduled, cancel |
| Run saved scripts | run scripts marked AI may run this script |
Granting a permission needs a 2FA step-up; removing one does not. The AI can never use the terminal or free commands, confirm a step-up, change permissions, or enroll and remove agents.
๐งฐ Tools
Read tools
| Area | Tools |
|---|---|
| Sites | list_sites, get_site, list_releases, deploy_pending, composer_outdated, site_logs, ssl_status, workers_status, scheduler_status, failed_jobs, database_backups, artisan_commands |
| Monitoring | uptime, performance_apm, monitor_services, metrics_history, top_processes, log_errors, notifications, alerts, system_info |
| Servers and fleet | list_servers, server_health, fleet_list_servers, fleet_server_status, fleet_metrics_history, fleet_processes, fleet_services, fleet_docker, fleet_updates, fleet_alerts, fleet_logs, fleet_list_scripts, fleet_run_status |
| Billing | billing_overview, billing_clients, billing_subscriptions, server_economics |
| Automation and audit | automation_webhooks, automation_rules, automation_event_types, audit_log |
Action tools
| Tool | What it does |
|---|---|
deploy_site |
Deploy a site (optionally a specific ref, or without tests). |
rollback_site |
Roll back to a release on disk. |
create_staging |
Create a staging copy. |
set_maintenance |
Turn maintenance mode on or off. |
clear_cache |
Run optimize:clear. |
run_artisan |
Run an allowed Artisan command. |
queue_restart |
Restart the queue workers. |
retry_failed_job, retry_all_failed_jobs |
Re-queue failed jobs. |
create_database_backup |
Back up a site's database. |
ssl_renew |
Issue or renew a certificate. |
test_webhook |
Send a test delivery to an automation webhook. |
fleet_service_action |
Start/stop/restart/reload a service (needs Manage services). |
fleet_docker_action |
Start/stop/restart a container (needs Manage Docker containers). |
fleet_package_update |
Update packages (needs Update packages). |
fleet_reboot, fleet_cancel_reboot |
Reboot or cancel (needs Reboot the server; the AI must confirm explicitly). |
fleet_run_script |
Run a saved script on up to 50 servers (needs Run saved scripts and an AI-allowed script). |
๐ Watching what the AI does
AI Activity (admin) lists every request made with a personal access token โ reads and actions โ with the token, user, tool, path, status, duration and IP, and summary counts for the last 24 hours. Filter by token, type (Actions only / Reads only), tool or path. Actions also appear in the audit log, marked as coming from the AI.
To revoke the AI's access, delete its token in Settings โ Security.