RunCloud MCP by usefulapi
v1.28.1Read RunCloud servers, web apps, databases and logs; deploy, restart services, renew SSL.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
runcloud_ping Check API connection
Check that the API key works: RunCloud answers with a message ('pong'). GET /ping.
runcloud_list_servers List servers
List the servers connected to the workspace: id, name, provider, IP address, OS, stack, online/connected state, agent and PHP CLI version, auto-update settings and tags. GET /servers.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
per_page | integer | Results per page, 1-40 (default 20). |
runcloud_get_server Get server
One server by id: provider, IP, OS and version, stack, online state, agent version, update settings, tags. GET /servers/{id}.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | RunCloud server id (see runcloud_list_servers). |
runcloud_get_server_stats Get server counts
How many web applications, databases, cron jobs and supervisor jobs a server has, and its country. GET /servers/{id}/stats.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | RunCloud server id (see runcloud_list_servers). |
runcloud_get_server_hardware Get server hardware info
Kernel version, CPU model and cores, memory and disk totals/free, load average and uptime of a server. GET /servers/{id}/hardwareinfo.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | RunCloud server id (see runcloud_list_servers). |
runcloud_get_server_health Get latest server health
The latest health sample of a server: total/available/used memory and disk space (MB) and load average. GET /servers/{id}/health/latest.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | RunCloud server id (see runcloud_list_servers). |
runcloud_list_server_logs List server activity logs
The server's activity log (what was changed in RunCloud and when), newest first. GET /servers/{id}/logs.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | RunCloud server id (see runcloud_list_servers). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
per_page | integer | Results per page, 1-40 (default 20). |
runcloud_list_services List server services
The services on a server (nginx, php-fpm, mariadb, redis, supervisor...) with real name, running state, CPU, memory and version. The realName is what runcloud_control_service needs. GET /servers/{id}/services.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | RunCloud server id (see runcloud_list_servers). |
runcloud_list_system_users List system users
The system (Linux) users on a server: id, username, whether deletable. Deployment keys and passwords are never returned. GET /servers/{id}/users.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | RunCloud server id (see runcloud_list_servers). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
per_page | integer | Results per page, 1-40 (default 20). |
runcloud_list_webapps List web applications
List the web applications on a server: id, name, root/public path, PHP version, stack, type (wordpress, custom...), default flag, alias. Deployment webhook keys are not returned. GET /servers/{id}/webapps.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | RunCloud server id (see runcloud_list_servers). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
per_page | integer | Results per page, 1-40 (default 20). |
search | string | Filter by web application name. |
runcloud_get_webapp Get web application
One web application by id (path, PHP version, stack, type, default flag). GET /servers/{id}/webapps/{webapp}.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | RunCloud server id (see runcloud_list_servers). |
webapp_id * | integer | Web application id (see runcloud_list_webapps). |
runcloud_get_webapp_settings Get web application settings
PHP and FPM/Nginx settings of a web application (disabled functions, timezone, memory and upload limits, process manager...). GET /servers/{id}/webapps/{webapp}/settings.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | RunCloud server id (see runcloud_list_servers). |
webapp_id * | integer | Web application id (see runcloud_list_webapps). |
runcloud_list_webapp_logs List web application activity logs
The activity log of a web application (settings changes, PHP version changes, deployments), newest first. GET /servers/{id}/webapps/{webapp}/log.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | RunCloud server id (see runcloud_list_servers). |
webapp_id * | integer | Web application id (see runcloud_list_webapps). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
per_page | integer | Results per page, 1-40 (default 20). |
runcloud_list_domains List domain names
The domain names of a web application: id, name, type (primary/alias), www, redirection, wildcard, DNS integration, status. GET /servers/{id}/webapps/{webapp}/domains.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | RunCloud server id (see runcloud_list_servers). |
webapp_id * | integer | Web application id (see runcloud_list_webapps). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
per_page | integer | Results per page, 1-40 (default 20). |
runcloud_get_domain_dns Get domain DNS setup instructions
The DNS records (A, CNAME...) a domain name needs to point at the server. GET /servers/{id}/webapps/{webapp}/domains/{domain}/dns.
| Parameter | Type | Description |
|---|---|---|
domain_id * | integer | Domain name id (see runcloud_list_domains). |
server_id * | integer | RunCloud server id (see runcloud_list_servers). |
webapp_id * | integer | Web application id (see runcloud_list_webapps). |
runcloud_get_webapp_ssl Get web application SSL
The web application's SSL certificate (basic / web-app-level SSL): provider, validity, HTTPS settings. Private keys are never returned. GET /servers/{id}/webapps/{webapp}/ssl.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | RunCloud server id (see runcloud_list_servers). |
webapp_id * | integer | Web application id (see runcloud_list_webapps). |
runcloud_get_ssl_method Check SSL method and AutoSSL status
Whether the web application uses basic (one certificate for the app) or advanced (one per domain) SSL, and its AutoSSL status. Advanced SSL is a Business/Enterprise feature. GET /servers/{id}/webapps/{webapp}/ssl/advanced.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | RunCloud server id (see runcloud_list_servers). |
webapp_id * | integer | Web application id (see runcloud_list_webapps). |
runcloud_get_git_deployment Get Git deployment
The Git deployment configured on a web application: provider, branch, repository URL, auto-deploy flag, deployment script and whether it is an atomic deployment. The deployment webhook keys are not returned. The id of the result is the git_id for runcloud_deploy_git. GET /servers/{id}/webapps/{webapp}/git.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | RunCloud server id (see runcloud_list_servers). |
webapp_id * | integer | Web application id (see runcloud_list_webapps). |
runcloud_list_databases List databases
The databases on a server: id, name, collation. No credentials. GET /servers/{id}/databases.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | RunCloud server id (see runcloud_list_servers). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
per_page | integer | Results per page, 1-40 (default 20). |
runcloud_list_database_users List database users
The database users on a server (id, username). Passwords are never returned. GET /servers/{id}/databaseusers.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | RunCloud server id (see runcloud_list_servers). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
per_page | integer | Results per page, 1-40 (default 20). |
runcloud_list_cronjobs List cron jobs
The cron jobs of a server: id, label, user, schedule, command, enabled flag. The id is what runcloud_run_cronjob needs. GET /servers/{id}/cronjobs.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | RunCloud server id (see runcloud_list_servers). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
per_page | integer | Results per page, 1-40 (default 20). |
runcloud_list_supervisors List supervisor jobs
The supervisor (background worker) jobs of a server: id, label, user, process count, auto start/restart, directory, command. GET /servers/{id}/supervisors.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | RunCloud server id (see runcloud_list_servers). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
per_page | integer | Results per page, 1-40 (default 20). |
runcloud_get_supervisor_status Get supervisor job status
The live status (RUNNING, FATAL, BACKOFF...), pid and uptime of every supervisor process, by job label. GET /servers/{id}/supervisors/status.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | RunCloud server id (see runcloud_list_servers). |
runcloud_list_firewall_rules List firewall rules
The firewall rules of a server: type (global/rich), port, protocol, IP address, action. GET /servers/{id}/security/firewalls.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | RunCloud server id (see runcloud_list_servers). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
per_page | integer | Results per page, 1-40 (default 20). |
runcloud_list_blocked_ips List Fail2Ban blocked IPs
The IP addresses Fail2Ban currently blocks on a server. GET /servers/{id}/security/fail2ban/blockedip.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | RunCloud server id (see runcloud_list_servers). |
runcloud_list_backups List backups
The backup instances of the workspace: label, what they cover (web app / database), storage, type, frequency, size, status. Filter by server, storage, status or name. GET /backups.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
per_page | integer | Results per page, 1-40 (default 20). |
search | string | Filter by backup name. |
server_id | integer | Only backups of this server id. |
status | string | Backup status, e.g. active. |
storage | string | Storage type, e.g. runcloud or local. |
runcloud_list_backup_snapshots List backup snapshots
The snapshots of one backup instance: run date, status, type and size. GET /backups/{id}/snapshots.
| Parameter | Type | Description |
|---|---|---|
backup_id * | integer | Backup instance id (see runcloud_list_backups). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
per_page | integer | Results per page, 1-40 (default 20). |
runcloud_list_atomic_projects List atomic deployment projects
The atomic Git deployment projects of the workspace: name, provider, repository, branch, auto-deploy, success/failure counts and the latest deployment. Webhook keys are not returned. GET /atomic.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
per_page | integer | Results per page, 1-40 (default 20). |
runcloud_list_atomic_deployments List atomic deployments
The deployments of an atomic project: commit hash, branch, message, committer, release name, status (DEPLOYING, COMPLETED, FAILED), start and end time. GET /atomic/{project}/deployments.
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | Atomic project id (see runcloud_list_atomic_projects). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
per_page | integer | Results per page, 1-40 (default 20). |
runcloud_control_service Start, restart or reload a service
WRITE: run systemctl start, restart or reload on one service of a server (for example nginx-rc or php81rc-fpm). A restart briefly interrupts that service and the sites behind it. 'stop' is deliberately not offered. Get the realName from runcloud_list_services. PATCH /servers/{id}/services.
| Parameter | Type | Description |
|---|---|---|
action * | string | systemctl action. |
real_name * | string | The service's realName from runcloud_list_services, e.g. nginx-rc or redis-server. |
server_id * | integer | RunCloud server id (see runcloud_list_servers). |
runcloud_deploy_git Force a Git deployment
WRITE: force a Git deployment of a web application now: RunCloud pulls the configured branch and runs the deployment script, which changes the live site's files. Get git_id from runcloud_get_git_deployment (its id). PUT /servers/{id}/webapps/{webapp}/git/{git}/script.
| Parameter | Type | Description |
|---|---|---|
git_id * | integer | Git deployment id (runcloud_get_git_deployment -> id). |
server_id * | integer | RunCloud server id (see runcloud_list_servers). |
webapp_id * | integer | Web application id (see runcloud_list_webapps). |
runcloud_force_deploy_atomic Force an atomic deployment
WRITE: start an atomic deployment of a project now (builds a new release and switches the live symlink when it succeeds). PUT /atomic/{project}/forcedeploy.
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | Atomic project id (runcloud_list_atomic_projects). |
runcloud_run_cronjob Run a cron job now
WRITE: force-run one cron job of a server once, right now, outside its schedule. The job's command runs on the server with its configured user. Get the id from runcloud_list_cronjobs. POST /servers/{id}/cronjobs/{job}/run.
| Parameter | Type | Description |
|---|---|---|
cronjob_id * | integer | Cron job id (runcloud_list_cronjobs). |
server_id * | integer | RunCloud server id (see runcloud_list_servers). |
runcloud_reload_supervisor Reload a supervisor job
WRITE: reload one supervisor job so its worker processes restart (running processes are interrupted). Get the id from runcloud_list_supervisors. POST /servers/{id}/supervisors/{job}/reload.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | RunCloud server id (see runcloud_list_servers). |
supervisor_id * | integer | Supervisor job id (runcloud_list_supervisors). |
runcloud_renew_ssl Renew a Let's Encrypt certificate
WRITE: redeploy (renew) the Let's Encrypt certificate of a web application, which re-issues it and reloads the web server. Let's Encrypt certificates only. For basic SSL pass the ssl_id from runcloud_get_webapp_ssl; for advanced (per-domain) SSL, which requires advanced SSL mode (check runcloud_get_ssl_method), also pass domain_id. PUT /servers/{id}/webapps/{webapp}/ssl/{ssl} or /domains/{domain}/ssl/{ssl}.
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | RunCloud server id (see runcloud_list_servers). |
ssl_id * | integer | SSL certificate id (runcloud_get_webapp_ssl -> id). |
webapp_id * | integer | Web application id (see runcloud_list_webapps). |
domain_id | integer | Only for advanced (per-domain) SSL mode (see runcloud_get_ssl_method): the domain's id. |
runcloud_install_letsencrypt_ssl Issue a Let's Encrypt certificate
WRITE: issue and install a free Let's Encrypt certificate for a web application (basic SSL) or for one domain of it (advanced SSL, pass domain_id; this requires advanced SSL mode, see runcloud_get_ssl_method). The web server is reloaded; the domain's DNS must already point at the server. Custom certificates are not supported here. POST /servers/{id}/webapps/{webapp}/ssl or /domains/{domain}/ssl.
| Parameter | Type | Description |
|---|---|---|
authorization_method * | string | Let's Encrypt challenge: http-01, or dns-01 (needs external_api, a Cloudflare DNS integration). |
enable_hsts * | boolean | Send the HSTS header (browsers will insist on HTTPS). |
enable_http * | boolean | Keep plain HTTP enabled alongside HTTPS. |
server_id * | integer | RunCloud server id (see runcloud_list_servers). |
webapp_id * | integer | Web application id (see runcloud_list_webapps). |
domain_id | integer | Only for advanced (per-domain) SSL mode (see runcloud_get_ssl_method): the domain's id. |
environment | string | live (default, trusted certificate) or staging (test certificate). |
external_api | integer | Id of the Cloudflare DNS integration; required for dns-01. |