Cloudways MCP by usefulapi

v1.1.0
io.usefulapi/cloudways Checked 6 hours ago Published 7 days ago

Read servers, apps, logs, traffic and billing; restart servers and clear app caches in Cloudways.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

cloudways_list_servers List servers

List the Flexible servers on the account with status, provider, region and app count. Good first call to find a server_id. Cloudways API: GET /servers.

ParameterTypeDescription
limitintegerResults per page.
pageintegerPage number for pagination (default 1).
providerstringFilter by cloud provider code (for example do, vultr, linode, amazon, gce).
sort_bystring
sort_orderstring
statusstringFilter by server status: 1 = running, 0 = stopped.

cloudways_get_server Get server

Get the details of one Flexible server: label, cloud, region, instance type, IP and status. Cloudways API: GET /servers/{serverId}.

ParameterTypeDescription
server_id *integerNumeric id of the server (from cloudways_list_servers).

cloudways_get_server_settings Get server settings

Get the PHP and server settings of a server (memory_limit, upload_size, execution_limit, timezone) and its installed package versions. Cloudways API: GET /server/manage/settings.

ParameterTypeDescription
server_id *integerNumeric id of the server (from cloudways_list_servers).

cloudways_get_server_usage Get server usage

Get bandwidth usage (type bw) for a server, or disk size per application (type db). Cloudways API: GET /server/monitor/summary.

ParameterTypeDescription
server_id *integerNumeric id of the server (from cloudways_list_servers).
type *string"bw" for server bandwidth usage, "db" for disk size per application.

cloudways_get_operation Get operation status

Check a background operation (for example a server restart or a backup) by its operation_id. Returns whether it is still running, completed or failed. Cloudways API: GET /operation/{id}.

ParameterTypeDescription
operation_id *stringThe operation_id returned by a write tool.

cloudways_list_regions List regions

List the cloud regions available for each provider (for new servers). Cloudways API: GET /regions.

cloudways_list_server_sizes List server sizes

List the server sizes (instance types) available for each cloud provider. Cloudways API: GET /server_sizes.

cloudways_list_apps List applications

List the Flexible applications on the account (WordPress, Laravel, Magento and others), with their server and state. Use the app_id with the other app tools. Cloudways API: GET /apps/flexible.

ParameterTypeDescription
app_typestringFilter by application type, for example wordpress or laravel.
is_stagingstring1 = staging copies only, 0 = production only.
limitintegerResults per page.
pageintegerPage number for pagination (default 1).
server_idintegerOnly applications on this server.
sort_bystring
sort_orderstring

cloudways_get_app Get application

Get the details of one Flexible application: label, domain, server, app type and version. Cloudways API: GET /app/{appId}.

ParameterTypeDescription
app_id *integerNumeric id of the application (from cloudways_list_apps).

cloudways_list_app_types List application types

List the application types and their available versions (use these when choosing an app for a new server). Cloudways API: GET /apps.

cloudways_get_app_traffic Get application traffic

Get traffic analytics for an application over a period: top IPs, bots, URLs or status codes. Cloudways API: GET /app/analytics/traffic.

ParameterTypeDescription
app_id *integerNumeric id of the application (from cloudways_list_apps).
duration *stringPeriod to report on.
resource *stringWhich breakdown to return.
server_id *integerNumeric id of the server (from cloudways_list_servers).

cloudways_get_app_logs Get application logs

Get recent access or error log lines of an application. Pick the log type and the source tab. Cloudways API: GET /app/logs/{type}.

ParameterTypeDescription
app_fqdn *stringApplication domain (FQDN), for example example.com.
app_id *integerNumeric id of the application (from cloudways_list_apps).
resource *stringLog source tab, as shown in the Cloudways UI (for example backend or static for access logs).
server_id *integerNumeric id of the server (from cloudways_list_servers).
type *stringaccess = request logs, error = error logs.

cloudways_get_app_cron_jobs Get application cron jobs

List the cron jobs of an application on a server. Cloudways API: GET /app/manage/cronList.

ParameterTypeDescription
app_id *integerNumeric id of the application (from cloudways_list_apps).
server_id *integerNumeric id of the server (from cloudways_list_servers).

cloudways_get_app_vulnerabilities Get application vulnerabilities

List the known vulnerabilities found for an application (from the Cloudways security scan). Cloudways API: GET /app/vulnerabilities/{app_id}.

ParameterTypeDescription
app_id *integerNumeric id of the application (from cloudways_list_apps).
server_id *integerNumeric id of the server (from cloudways_list_servers).

cloudways_list_projects List projects

List the projects that group servers and applications on the account. Cloudways API: GET /project.

cloudways_list_team_members List team members

List the team members that have access to the account. Cloudways API: GET /member.

cloudways_list_alerts List CloudwaysBot alerts

List the server and application alerts raised by CloudwaysBot, newest first. Cloudways API: GET /alerts/.

cloudways_get_billing_summary Get billing summary

Get the billing summary of the account: current month charges and the estimated amount due. Cloudways API: GET /account/billing/summary.

cloudways_list_invoices List invoices

List the invoices of the account, newest first. Cloudways API: GET /account/invoices.

ParameterTypeDescription
pageintegerPage number for pagination (default 1).
per_pageintegerInvoices per page.

cloudways_restart_server Restart server

Restart a server. Every app on it goes offline for a short time. Returns an operation_id to poll with cloudways_get_operation. Cloudways API: POST /server/restart.

ParameterTypeDescription
server_id *integerNumeric id of the server (from cloudways_list_servers).

cloudways_clear_app_cache Clear application cache

Clear all cache of an application (page cache and object cache). Safe to repeat. Cloudways API: POST /app/cache/purge.

ParameterTypeDescription
app_id *integerNumeric id of the application (from cloudways_list_apps).
server_id *integerNumeric id of the server (from cloudways_list_servers).

cloudways_update_server_label Rename server

Change the label (display name) of a server. Safe to repeat with the same label. Cloudways API: PUT /server/{serverId}.

ParameterTypeDescription
label *stringNew label of the server.
server_id *integerNumeric id of the server (from cloudways_list_servers).