Skip to content

AI & MCP

Hosting with AI

Copy page

30 hosting tools for your own cPanel — site doctor, databases, cron jobs, subdomains, redirects, PHP, resource usage, error log, email, extra domains, SSL, FTP and files

With the 30 hosting_* tools of Remote MCP, your AI tool manages your own cPanel hosting — the things you would do in cPanel, without opening it. They work on Linux, WordPress and Node.js hosting. Email services and one-click apps are not included (hosting_tools_not_available).

Quick start

  1. Connect Remote MCP and approve hosting:read (view) and, if you want changes, hosting:write. If you connected before, re-authenticate once (in Claude Code: /mcp → hostino → Re-authenticate).
  2. Ask: “Is something wrong with my site? Run the site doctor.”

The consent screen shows a warning for hosting:write, because with it an app can delete databases and subdomains and create cron jobs (scheduled commands) on your hosting. For reports and troubleshooting only, hosting:read is enough.

Site doctor

hosting_site_doctor checks one domain of the hosting (default: the main domain) in a single run:

PartWhat is checked
ReachabilityHTTP answer from Iran and Germany (main domain)
SSLMissing certificate, self-signed certificate, expiry soon (under 7 days critical, under 20 days warning) and AutoSSL problems
ErrorsSerious PHP errors in the last 24 hours (fatal, out of memory…)
ResourcesUsage against the plan limits (warning from 80%, critical from 95%)
PHPOutdated PHP version, low memory_limit, and .htaccess lines that override PHP settings

The result has an overall status (ok, warning or critical) and a list of findings ordered by severity, each with a concrete fix — usually another hosting_* tool. A part that could not be checked is listed under not_checked without breaking the rest of the report.

{
"domain": "example.com", "status": "critical",
"findings": [
{ "severity": "critical", "area": "ssl", "title": "No SSL certificate covers example.com",
"fix": "Run hosting_run_autossl; if it keeps failing, the domain must point (A record) to this hosting." },
{ "severity": "info", "area": "php", "title": ".htaccess overrides some PHP settings",
"fix": "Changes made with hosting_set_php_settings may not apply until these lines are removed." }
],
"not_checked": [],
"summary": "1 critical, 0 warning(s). Fix the critical ones first."
}

Tools by task

Overview, resources and troubleshooting

ToolPermissionWhat it does
hosting_overviewhosting:readDomains (main, addon, parked, subdomains), disk used and limit, PHP version per domain, number of databases and cron jobs
hosting_site_doctorhosting:readOne diagnosis with findings ordered by severity and fixes
hosting_resource_usagehosting:readDisk, databases, bandwidth, email accounts, subdomains, addon domains and more against the plan limits, with percentages
hosting_error_loghosting:readLatest web server / PHP errors of one domain (newest first, up to 200 lines)

Databases

ToolPermissionWhat it does
hosting_list_databaseshosting:readMySQL databases with size and users, and the account prefix
hosting_create_databasehosting:writeCreate a database plus a same-named user with all privileges. name is the part after the account prefix (lowercase letters, digits and _, up to 16). The password is returned once
hosting_reset_database_passwordhosting:writeNew random password for a database user (shown once). Apps using the old password stop connecting until their config is updated
hosting_delete_databasehosting:writePermanently delete a database and its same-named user; confirm_name must be exactly the full database name

Cron jobs

ToolPermissionWhat it does
hosting_list_cron_jobshosting:readCron jobs with id, schedule and command
hosting_add_cron_jobhosting:writeSchedule a command with standard cron fields (minute, hour, day, month, weekday). The command is a single line of up to 500 characters and runs inside the hosting account only. At most 20 cron jobs per account
hosting_delete_cron_jobhosting:writeDelete by id; confirm_id must be that id

Subdomains and redirects

ToolPermissionWhat it does
hosting_list_subdomainshosting:readSubdomains and the root domains new ones can be created under
hosting_create_subdomainhosting:writeCreate label.root_domain with its own folder (default public_html/<label>; the folder must be inside public_html)
hosting_delete_subdomainhosting:writeRemove a subdomain; its files are kept. confirm_subdomain must be the full subdomain
hosting_list_redirectshosting:readRedirects (domain, path, destination, 301/302)
hosting_add_redirecthosting:writeRedirect a path to an absolute http(s) URL; type 301 (permanent, default) or 302 (temporary); wildcard: true also redirects everything under the path
hosting_delete_redirecthosting:writeRemove the redirect for domain + path; confirm_path must be that path

If the domain’s DNS is not hosted on this server (e.g. Hostino free DNS or another provider), a new subdomain also needs a DNS record; the tool can add it with dns_set_record.

PHP

ToolPermissionWhat it does
hosting_get_phphosting:readPHP version of each domain and the selectable versions (supported branches only, e.g. ea-php82, ea-php83)
hosting_set_php_versionhosting:writeChange the PHP version of one domain. Test the site afterwards; to undo, set the previous version again
hosting_php_settingshosting:readPHP settings of one domain (memory_limit, upload_max_filesize…) and .htaccess lines that override them
hosting_set_php_settingshosting:writeChange 1–10 settings per request (table below)
SettingAllowed values
memory_limit, upload_max_filesize, post_max_size2M to 1024M (or 1G)
max_execution_time, max_input_time1–600 seconds
max_input_vars1000–50000
session.gc_maxlifetime60–604800 seconds
display_errors, allow_url_fopen, zlib.output_compressionOn / Off

Email

ToolPermissionWhat it does
hosting_email_accountshosting:readMailboxes (with quota and usage), forwarders, autoresponders and the catch-all setting of one domain
hosting_manage_emailhosting:writeOne tool for every email change, chosen with action (table below)
actionInputsNotes
createemail, quota_mb (50–10240, default 1024)New mailbox; password once plus mail client settings (IMAP 993, POP3 995, SMTP 465 with SSL on mail.<domain>, and the webmail URL)
deleteemail, confirm = the addressDelete the mailbox
reset_passwordemailNew password (once)
add_forwarder / delete_forwarderemail, to (and confirm = email to delete)Forward to another address
set_autoresponder / delete_autoresponderemail, subject, body, days (optional, 1–365)Automatic reply
set_catch_alldomain, mode (reject, discard, forward), toMail to non-existent addresses

Only addresses on the account’s own domains are accepted. The number of mailboxes depends on the plan.

Extra domains

hosting_manage_domains (hosting:write) with action:

  • add_addon: a separate website on the same hosting with its own folder (default public_html/<domain>).
  • add_parked: an alias that shows the main site.
  • delete_addon / delete_parked: remove, with confirm = the domain. Addon files are kept.

The domain’s DNS must point to this hosting for it to work.

SSL, FTP and files

ToolPermissionWhat it does
hosting_ssl_statushosting:readInstalled certificates per domain (issuer, expiry, AutoSSL) and current AutoSSL problems
hosting_run_autosslhosting:writeIssue/renew free certificates for every account domain that points to the hosting (in the background; check hosting_ssl_status after a few minutes)
hosting_ftp_accountshosting:readFTP accounts with folder, usage and quota (server: ftp.<domain>, port 21 with TLS)
hosting_manage_ftphosting:writecreate (login, folder inside the home directory, optional quota_mb; password once), reset_password, and delete (confirm = login; files are kept). The main account cannot be changed here
hosting_list_fileshosting:readFiles and folders of a path relative to the home directory (default public_html; . for the home directory; up to 500 entries)
hosting_read_filehosting:readContent of one text file up to 256 KB, e.g. public_html/.htaccess

File access is read-only; no tool writes or deletes files. Config files can contain passwords, and the tool should not repeat them without reason.

Example prompts

  • “My site is down. Run the site doctor and list the problems by priority.”
  • “The site shows a 500 error; read the error log of example.com and explain the cause.”
  • “Create a database called shop and give me its connection details.”
  • “Raise the upload limit of example.com to 128 MB.”
  • “Switch my site to PHP 8.3.”
  • “Add a cron job that runs public_html/cron.php every 15 minutes.”
  • “Create the subdomain blog and set up its DNS record too.”
  • “301-redirect /old-page to https://example.com/new-page.”
  • “Create info@example.com and give me the Outlook settings.”
  • “Forward sales@ to my Gmail.”
  • “Add shop2.com as a second website on this hosting.”
  • “How full is my hosting? If it’s near the limit, suggest a higher plan.”
  • “My site has an SSL warning; check the status and run AutoSSL.”

Security

  • Only your own hosting: the service is looked up from your sign-in token and must be active. The server address and cPanel username are never taken from the request or returned.
  • Exactly cPanel’s powers: every operation is a cPanel API call as your own hosting user — no shell, no root. Every input (database name, domain, path, schedule…) is checked against a strict format, and domains must belong to that account.
  • Deletes only with the exact name: every delete has a confirm_* or confirm field that must be exactly the item’s name (full database name, cron job id, subdomain, redirect path, email address, domain or FTP login). The tool should ask you first.
  • Passwords once: database, email and FTP passwords are only in the answer to that request; Hostino does not keep them. Store them safely; if lost, reset the password.
  • The site doctor and read tools change nothing.

Errors

CodeMeaning
hosting_tools_not_availableThis service has no cPanel account on a supported server (e.g. an email service or a one-click app)
plan_limit_reachedA plan limit is full (addon domains, mailboxes…); see plan upgrades
confirmation_mismatchThe confirm* value is not exactly the item’s name
domain_not_in_accountThe domain does not belong to this hosting account
too_many_cron_jobsThe 20 cron job limit is reached
setting_not_allowed / invalid_valueThe PHP setting is not allowed or the value is out of range
php_version_not_availableThat PHP version cannot be selected on the server; see hosting_get_php
database_exists / subdomain_exists / domain_exists / ftp_existsAlready exists
database_not_found / cron_job_not_found / subdomain_not_found / redirect_not_found / ftp_not_foundNot found
invalid_docrootThe folder must be inside public_html
file_too_large / binary_file / is_a_directoryOnly text files up to 256 KB can be read
cpanel_errorcPanel refused the request; details in detail
service_not_foundThe service is not yours or not active

The REST equivalents are in the Hosting API.