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
- 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). - 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:
| Part | What is checked |
|---|---|
| Reachability | HTTP answer from Iran and Germany (main domain) |
| SSL | Missing certificate, self-signed certificate, expiry soon (under 7 days critical, under 20 days warning) and AutoSSL problems |
| Errors | Serious PHP errors in the last 24 hours (fatal, out of memory…) |
| Resources | Usage against the plan limits (warning from 80%, critical from 95%) |
| PHP | Outdated 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
| Tool | Permission | What it does |
|---|---|---|
hosting_overview | hosting:read | Domains (main, addon, parked, subdomains), disk used and limit, PHP version per domain, number of databases and cron jobs |
hosting_site_doctor | hosting:read | One diagnosis with findings ordered by severity and fixes |
hosting_resource_usage | hosting:read | Disk, databases, bandwidth, email accounts, subdomains, addon domains and more against the plan limits, with percentages |
hosting_error_log | hosting:read | Latest web server / PHP errors of one domain (newest first, up to 200 lines) |
Databases
| Tool | Permission | What it does |
|---|---|---|
hosting_list_databases | hosting:read | MySQL databases with size and users, and the account prefix |
hosting_create_database | hosting:write | Create 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_password | hosting:write | New random password for a database user (shown once). Apps using the old password stop connecting until their config is updated |
hosting_delete_database | hosting:write | Permanently delete a database and its same-named user; confirm_name must be exactly the full database name |
Cron jobs
| Tool | Permission | What it does |
|---|---|---|
hosting_list_cron_jobs | hosting:read | Cron jobs with id, schedule and command |
hosting_add_cron_job | hosting:write | Schedule 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_job | hosting:write | Delete by id; confirm_id must be that id |
Subdomains and redirects
| Tool | Permission | What it does |
|---|---|---|
hosting_list_subdomains | hosting:read | Subdomains and the root domains new ones can be created under |
hosting_create_subdomain | hosting:write | Create label.root_domain with its own folder (default public_html/<label>; the folder must be inside public_html) |
hosting_delete_subdomain | hosting:write | Remove a subdomain; its files are kept. confirm_subdomain must be the full subdomain |
hosting_list_redirects | hosting:read | Redirects (domain, path, destination, 301/302) |
hosting_add_redirect | hosting:write | Redirect 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_redirect | hosting:write | Remove 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
| Tool | Permission | What it does |
|---|---|---|
hosting_get_php | hosting:read | PHP version of each domain and the selectable versions (supported branches only, e.g. ea-php82, ea-php83) |
hosting_set_php_version | hosting:write | Change the PHP version of one domain. Test the site afterwards; to undo, set the previous version again |
hosting_php_settings | hosting:read | PHP settings of one domain (memory_limit, upload_max_filesize…) and .htaccess lines that override them |
hosting_set_php_settings | hosting:write | Change 1–10 settings per request (table below) |
| Setting | Allowed values |
|---|---|
memory_limit, upload_max_filesize, post_max_size | 2M to 1024M (or 1G) |
max_execution_time, max_input_time | 1–600 seconds |
max_input_vars | 1000–50000 |
session.gc_maxlifetime | 60–604800 seconds |
display_errors, allow_url_fopen, zlib.output_compression | On / Off |
| Tool | Permission | What it does |
|---|---|---|
hosting_email_accounts | hosting:read | Mailboxes (with quota and usage), forwarders, autoresponders and the catch-all setting of one domain |
hosting_manage_email | hosting:write | One tool for every email change, chosen with action (table below) |
action | Inputs | Notes |
|---|---|---|
create | email, 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) |
delete | email, confirm = the address | Delete the mailbox |
reset_password | email | New password (once) |
add_forwarder / delete_forwarder | email, to (and confirm = email to delete) | Forward to another address |
set_autoresponder / delete_autoresponder | email, subject, body, days (optional, 1–365) | Automatic reply |
set_catch_all | domain, mode (reject, discard, forward), to | Mail 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 (defaultpublic_html/<domain>).add_parked: an alias that shows the main site.delete_addon/delete_parked: remove, withconfirm= the domain. Addon files are kept.
The domain’s DNS must point to this hosting for it to work.
SSL, FTP and files
| Tool | Permission | What it does |
|---|---|---|
hosting_ssl_status | hosting:read | Installed certificates per domain (issuer, expiry, AutoSSL) and current AutoSSL problems |
hosting_run_autossl | hosting:write | Issue/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_accounts | hosting:read | FTP accounts with folder, usage and quota (server: ftp.<domain>, port 21 with TLS) |
hosting_manage_ftp | hosting:write | create (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_files | hosting:read | Files and folders of a path relative to the home directory (default public_html; . for the home directory; up to 500 entries) |
hosting_read_file | hosting:read | Content 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
shopand 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.phpevery 15 minutes.” - “Create the subdomain
blogand set up its DNS record too.” - “301-redirect
/old-pagetohttps://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_*orconfirmfield 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
| Code | Meaning |
|---|---|
hosting_tools_not_available | This service has no cPanel account on a supported server (e.g. an email service or a one-click app) |
plan_limit_reached | A plan limit is full (addon domains, mailboxes…); see plan upgrades |
confirmation_mismatch | The confirm* value is not exactly the item’s name |
domain_not_in_account | The domain does not belong to this hosting account |
too_many_cron_jobs | The 20 cron job limit is reached |
setting_not_allowed / invalid_value | The PHP setting is not allowed or the value is out of range |
php_version_not_available | That PHP version cannot be selected on the server; see hosting_get_php |
database_exists / subdomain_exists / domain_exists / ftp_exists | Already exists |
database_not_found / cron_job_not_found / subdomain_not_found / redirect_not_found / ftp_not_found | Not found |
invalid_docroot | The folder must be inside public_html |
file_too_large / binary_file / is_a_directory | Only text files up to 256 KB can be read |
cpanel_error | cPanel refused the request; details in detail |
service_not_found | The service is not yours or not active |
The REST equivalents are in the Hosting API.