cPanel MCP Server
Exposes cPanel UAPI and WHM-compatible tools for managing hosting files, databases, email, DNS, SSL, domains, runtimes, Git, backups, and security policies.
Provides tools for managing Git repositories and related deployment workflows through cPanel.
Enables GitHub synchronization, webhooks, and GitHub Actions setup for cPanel-hosted projects.
Provides workflows and tools to provision and configure Laravel applications on cPanel, including runtime, code, dependencies, environment, scheduler, database, and HTTPS.
Provides tools for creating, managing, and repairing MySQL databases, users, and privileges through cPanel.
Provides tools for creating, managing, and repairing PostgreSQL databases, users, and privileges through cPanel.
Provides workflow tools for provisioning and configuring Python applications on cPanel.
Provides tools and workflow prompts for deploying and managing WordPress sites on cPanel.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@cPanel MCP Server create a MySQL database and grant my cPanel user access"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
cPanel MCP Server & AI State-Space Deployment Planner
A full-stack Model Context Protocol (MCP) server and AI State-Space Planning Engine for automating cPanel Web Hosting operations, comparing classical & informed graph search algorithms (BFS, DFS, UCS / UFS, A*), and visualizing live search traces through a monochrome React + Tailwind CSS v4 + shadcn/ui dashboard.
Group Members & Contributors
This project is a collaborative group project by:
Akash Jamali — @akashjamali
Abdul Basit — @b4sit
Ali Nawaz — @mr-ans-2006
Basit Ali Shah — @ItsBasitAliShah
Related MCP server: whm-mcp-server
Overview
The system combines two tightly integrated layers:
cPanel MCP Server (
220Tools,3Resources,7Prompts) Exposes cPanel UAPI & WHM-compatible workflows over stdio MCP so AI assistants can inspect and manage files, MySQL/PostgreSQL databases, email accounts, DNS zones, SSL certificates, domains, Node.js/Python/Laravel/WordPress runtimes, Git repositories, backups, and security policies.AI State-Space Deployment Planner (
src/planner/) + Visualization Dashboard (frontend/) Models hosting provisioning and recovery as a deterministic state-space search problem over 12 state variables, 16 operators across 9 disjoint partitions, and 5 deployment/recovery goals, allowing direct side-by-side comparison of BFS, DFS, UCS (UFS), and A* using an admissible, consistent heuristich(s).
AI Problem Formulation & Search Algorithms
State-Space Representation
Each search node tracks a structured 12-variable CpanelPlanningState plus resource load context (cpuPercent, memoryPercent, inodesUsedPercent):
Infrastructure & Domain:
domainReady,docrootValid,dnsConfigured,sslModeApplication Lifecycle:
runtimeConfigured,codeDeployed,depsInstalled,envConfigured,schedulerActiveDatabase & Security:
dbCreated,dbUserGranted,permsHardened
Operators, Partitions & Goals
16 Operators across 9 Disjoint Partitions: Each transition encodes preconditions, effects, and load-aware step cost (
computeOperatorCost).5 Predefined Goals:
provision_laravelprovision_nodejsprovision_pythonprovision_static_siterepair_https_and_db
Implemented Search Algorithms
Algorithm | Strategy | Optimal Cost | Notes |
BFS ( | Breadth-First Search | Step-count optimal | Guarantees minimum step count, high frontier expansion |
DFS ( | Depth-First Search | No | Cycle-safe with configurable |
UCS / UFS ( | Uniform Cost Search | Yes | Expands lowest cumulative path cost |
A* ( | Informed Search | Yes | Minimizes |
Observed Benchmark (provision_laravel on clean_account)
Verified via MCP compare_search_algorithms:
Algorithm | Plan Steps | Total Cost | Nodes Expanded |
BFS | 9 | 31 | 1,065 |
DFS | 12 | 23 | 12 |
UCS (UFS) | 11 | 22 | 861 |
A* | 11 | 22 | 11 ( |
Monochrome Planner UI & Local API Server
A local HTTP API server (src/ui-server.ts) binds to 127.0.0.1:3001 and serves the built frontend/dist bundle alongside dry-run/read-only planning endpoints:
GET /api/health— Check local UI server & frontend build statusGET /api/state-space— Inspect problem states, 16 operators, and goal definitions (offline/no cPanel calls)GET /api/observe— Observe initial hosting state (4 dry-run presets or explicit live cPanel read-only check)POST /api/plan— Run a single algorithm (bfs,dfs,ucs/ufs,astar) with step-by-stepexploredTracePOST /api/compare— Benchmark all 4 algorithms side by side
Frontend Stack (frontend/)
Vite
8.4.0+ React19.3.1(JavaScript)Tailwind CSS v4 (
@tailwindcss/vite) + lucide-react12 shadcn/ui Components (
button,badge,card,input,label,select,separator,switch,checkbox,tabs,table,progress) styled with a strict0px-radius monochrome Light/Dark palette (frontend/src/index.css)Starts disconnected from live cPanel on initial load (
frontend/src/App.jsx) for safe offline/dry-run experimentation
Architecture
MyMCP/
├── src/
│ ├── index.ts # MCP stdio server entrypoint (registers 33 modules / 220 tools)
│ ├── ui-server.ts # Localhost API & static UI server (127.0.0.1:3001)
│ ├── cpanel-api.ts # HTTPS cPanel UAPI client with HTTP 429 Retry-After backoff
│ ├── setup.ts # Interactive setup wizard (`npm run setup`)
│ ├── resources.ts # 3 MCP resources
│ ├── prompts.ts # 7 MCP workflow prompts
│ ├── planner/
│ │ ├── types.ts # State, operator, goal, trace, and benchmark types
│ │ ├── domain.ts # 12 state variables, 16 operators, 9 partitions, admissible h(s)
│ │ ├── algorithms.ts # BFS, DFS, UCS/UFS, and A* implementations
│ │ └── observe.ts # Live & dry-run initial state observation
│ └── tools/ # 33 MCP tool modules (auth, password reset, files, db, email, dns, ssl, planner, etc.)
├── frontend/ # Vite + React + Tailwind CSS v4 + shadcn/ui dashboard
├── test/
│ ├── security-regression.test.mjs
│ ├── mcp-protocol.test.mjs
│ ├── planner.test.mjs
│ ├── password-reset.test.mjs
│ └── ui-server.test.mjs
├── SKILL.md # Mandatory AI agent safety & execution guardrails
├── .env.example # Configuration template (never commit real secrets)
└── package.jsonMCP Server Capabilities
Registered Surface (220 Tools Across 33 Modules)
AI State-Space Planning (
src/tools/planner.ts):describe_cpanel_state_space,observe_cpanel_state,plan_cpanel_workflow,compare_search_algorithmsAuthentication, Account & Password Reset (
src/tools/auth.ts,src/tools/password-reset.ts):login_cpanel,get_login_status,logout_cpanel,verify_cpanel_connection,reset_cpanel_password,reset_password,get_account_info,get_server_info, API token & SSH key managementFiles & Backups: Directory listing, read/create/edit/delete, compression/extraction, permissions, Base64 upload, full/home/DB/email backups
Databases: MySQL & PostgreSQL databases, users, privileges, check/repair
Email & Deliverability: Email accounts, forwarders, autoresponders, filters, DKIM/SPF/PTR validation, SpamAssassin, greylisting
Domains, DNS & SSL: Subdomains, addon/parked domains, redirects, DNS records, DNSSEC, SSL certificates & AutoSSL
App Hosting & CI/CD: WordPress, Node.js, Python, Passenger, Laravel, Git repositories, GitHub sync/webhooks/Actions, cron jobs
Security & Telemetry: IP blocker, directory privacy, ModSecurity, hotlink protection, 2FA, ClamAV virus scan, error logs, resource usage
MCP Resources & Prompts
3 Resources (
src/resources.ts):cpanel://system/disk-usagecpanel://server/infocpanel://account/summary
7 Prompts (
src/prompts.ts):troubleshoot_domainhosting_security_auditdeploy_new_sitesetup_github_cpanel_cicdsetup_nodejs_app_workflowsetup_python_app_workflowsetup_laravel_app_workflow
Quick Start
1. Install & Build
git clone <repository-url>
cd MyMCP
npm install
npm run build2. Configure Credentials (Optional for Offline Planning)
Run the interactive setup wizard or copy .env.example to .env:
npm run setupSupported connection methods:
Environment variables:
CPANEL_HOST,CPANEL_USERNAME,CPANEL_API_TOKEN(never committed to git)Runtime MCP login:
login_cpanelnormalizes copied/cpsess...URLs automatically and persists session config outside the repo (~/.cpanel-mcp/config.json)
3. Start the AI Planner Dashboard
Serve the built frontend and planner API at http://127.0.0.1:3001:
npm run uiOr run the frontend dev server with API proxy (after installing frontend dependencies):
cd frontend
npm install
npm run dev4. Connect to an MCP Client
Add the built server to your MCP client configuration (such as mcp_config.json):
{
"mcpServers": {
"cpanel": {
"command": "node",
"args": ["/absolute/path/to/MyMCP/build/index.js"]
}
}
}Security & Safety Guardrails
Operational Guardrails (
SKILL.md): Requires path validation, strict credential scoping, explicit user confirmation for destructive operations (deleting databases, emails, files, or domains), and dry-run planning prior to live infrastructure mutation.Transport & Rate-Limit Resilience (
src/cpanel-api.ts): Enforces HTTPS cPanel UAPI requests, sanitizes HTML rate-limit responses, and automatically retriesHTTP 429responses honoringRetry-Afterheaders.Local-Only Dashboard Binding:
src/ui-server.tsbinds exclusively to127.0.0.1:3001with read-only observation and dry-run planning endpoints.
Testing & Verification
Run the root TypeScript build and Node test suite (24 tests across test/security-regression.test.mjs, test/mcp-protocol.test.mjs, test/planner.test.mjs, test/password-reset.test.mjs, and test/ui-server.test.mjs):
npm testRun frontend linting and production bundle build:
cd frontend
npm run lint
npm run buildLicense
This project is licensed under the MIT License.
Available Tools
220 toolsadd_directory_userB
Add a user to a password-protected directory
Inputs: dir (required), user (required), password (required).
add_dns_recordB
Add a DNS zone record (A, AAAA, CNAME, MX, TXT, SRV, CAA)
Inputs: name (required), type (required), domain (required), address (required), +3 more.
add_email_filterB
Create or update an email filter. Rules are OR'd/AND'd via each rule's opt field; the last rule's opt is ignored by cPanel.
Inputs: rules (required), account (required), actions (required), filtername (required).
apply_dns_presetB
Configure DNS record bundles for popular services (Google Workspace, Microsoft 365, Zoho Mail, Resend, Cloudflare)
Inputs: domain (required), preset (required).
authorize_ssh_keyB
Authorize an SSH key for login
Inputs: name (required).
block_ipA
Block an IP address or range
Inputs: ip (required).
change_email_passwordB
Change password for an email account
Inputs: email (required), password (required).
change_email_quotaC
Change mailbox quota for an email account
Inputs: email (required), quota (required).
change_ftp_passwordB
Change an FTP account password
Inputs: user (required), domain (required), password (required).
change_ftp_quotaA
Change an FTP account's disk quota
Inputs: user (required), quota (required), domain (required).
change_permissionsC
Change file or directory permissions (chmod)
Inputs: path (required), permissions (required).
check_featureA
Check if a specific feature is enabled for the account
Inputs: feature (required).
check_github_sync_statusB
Check if cPanel repository is up-to-date with the latest commit on GitHub
Inputs: repo (required), owner (required), repository_root (required), branch, +1 more.
check_mysql_databaseC
Check a database for table corruption or index issues
Inputs: name (required).
cleanup_account_temp_filesA
Free up disk space by emptying trash bins, clearing error_log files, and purging temporary session caches
Inputs: dry_run.
clear_spam_boxA
Clear all messages from the SpamAssassin spam box
Inputs: no named parameters.
compare_search_algorithmsA
Run BFS, DFS, UCS (UFS), and A* side-by-side on the same cPanel planning problem and compare path steps, cost, nodes expanded, frontier size, and runtime
Inputs: goal, domain, scenario, observe_live, +1 more.
compress_filesC
Compress files or a directory into a .zip, .tar, or .tar.gz archive
Inputs: source_path (required), archive_name (required), archive_type.
configure_github_tokenC
Save a GitHub Personal Access Token (PAT) for automated GitHub repository operations and webhooks
Inputs: github_token (required), save_permanently.
configure_nodejs_envC
Set or update environment variables in .env for a Node.js application
Inputs: app_root (required), env_variables (required).
configure_python_envB
Set or update environment variables in .env for a Python application
Inputs: app_root (required), env_variables (required).
connect_github_repoC
Connect and clone a GitHub repository to cPanel and optionally configure deployment paths
Inputs: github_repo_url (required), repository_name (required), repository_root (required), branch, +1 more.
copy_filesC
Copy a file or directory to a new location on the server
Inputs: source_path (required), destination_dir (required).
create_addon_domainB
Create a new addon domain
Inputs: domain (required), subdomain (required), document_root (required).
create_api_tokenA
Create a new cPanel API token with full access
Inputs: name (required).
create_autoresponderC
Create an email autoresponder
Inputs: body (required), from (required), email (required), subject (required), +1 more.
create_cron_jobC
Create a new cron job
Inputs: command (required), day, hour, month, +2 more.
create_database_backupC
Create a backup of a specific MySQL database
Inputs: database (required).
create_email_accountC
Create a new email account
Inputs: email (required), password (required), quota.
create_email_backupA
Create a backup of email configurations and data
Inputs: no named parameters.
create_email_forwarderC
Create an email forwarder
Inputs: email (required), forward_to (required).
create_fileC
Create a new file with specified text content
Inputs: path (required), content (required).
create_ftp_accountB
Create a new FTP account
Inputs: user (required), password (required), quota, domain, +1 more.
create_full_backupC
Create a full account backup
Inputs: port, rdir, user, email, +3 more.
create_github_webhookB
Create a push webhook on a GitHub repository to trigger automatic redeployment on cPanel
Inputs: repo (required), owner (required), webhook_url (required), secret, +1 more.
create_git_repoB
Create a new Git repository in cPanel
Inputs: name (required), repository_root (required), source_repository.
create_homedir_backupB
Create a backup of the home directory files
Inputs: no named parameters.
create_mysql_databaseB
Create a new MySQL database
Inputs: name (required).
create_mysql_userB
Create a new MySQL database user
Inputs: name (required), password (required).
create_parked_domainB
Park/alias a domain to the main domain
Inputs: domain (required).
create_postgresql_databaseB
Create a new PostgreSQL database
Inputs: name (required).
create_postgresql_userB
Create a new PostgreSQL user
Inputs: name (required), password (required).
create_redirectB
Create a URL redirect
Inputs: domain (required), redirect_url (required), path, type, +1 more.
create_simple_cron_jobB
Create a cron job using a human-friendly schedule preset without manually formatting cron syntax
Inputs: command (required), frequency (required).
create_subdomainC
Create a new subdomain
Inputs: domain (required), subdomain (required), document_root.
deauthorize_ssh_keyA
Deauthorize an SSH key (revoke login access)
Inputs: name (required).
delete_addon_domainB
Delete an addon domain
Inputs: domain (required), subdomain (required).
delete_autoresponderB
Delete an email autoresponder
Inputs: email (required).
delete_cron_jobB
Delete a cron job
Inputs: linekey (required).
delete_dns_recordA
Delete a DNS zone record by line number
Inputs: line (required), domain (required).
delete_email_accountC
Delete an email account
Inputs: email (required).
delete_email_filterB
Delete an email filter
Inputs: account (required), filtername (required).
delete_email_forwarderC
Delete an email forwarder
Inputs: email (required), forward_to (required).
delete_fileB
Delete a file or directory (move to trash)
Inputs: path (required).
delete_ftp_accountB
Delete an FTP account
Inputs: user (required), domain (required), destroy.
delete_git_repoB
Delete a Git repository from cPanel
Inputs: repository_root (required).
delete_mysql_databaseB
Delete a MySQL database
Inputs: name (required).
delete_mysql_userB
Delete a MySQL database user
Inputs: name (required).
delete_parked_domainA
Remove a parked/aliased domain
Inputs: domain (required).
delete_postgresql_databaseB
Delete a PostgreSQL database
Inputs: name (required).
delete_postgresql_userB
Delete a PostgreSQL user
Inputs: name (required).
delete_redirectB
Delete a URL redirect
Inputs: path (required), domain (required).
delete_ssh_keyB
Delete an SSH key
Inputs: name (required), type (required).
delete_ssl_certificateA
Delete/uninstall an SSL certificate from a domain
Inputs: domain (required).
delete_subdomainC
Delete a subdomain
Inputs: subdomain (required).
deploy_git_repoA
Deploy a Git repository (trigger deployment via .cpanel.yml)
Inputs: repository_root (required).
deploy_laravel_updateC
Deploy updates to an existing Laravel installation: clears and warms config, route, and view caches
Inputs: project_root (required).
describe_cpanel_state_spaceB
Return the formal AI problem formulation (initial state schema, operators with preconditions/effects/costs, goal tests, and admissible heuristic) for cPanel planning
Inputs: goal, high_load.
destroy_nodejs_appC
Unregister and remove a Node.js application configuration
Inputs: app_name (required).
destroy_python_appC
Unregister and remove a Python application configuration
Inputs: app_name (required).
disable_dkimB
Disable DKIM for a domain
Inputs: domain (required).
disable_dnssecA
Disable DNSSEC for a domain
Inputs: domain (required).
disable_greylistingA
Disable greylisting for all domains
Inputs: no named parameters.
disable_hotlink_protectionC
Disable hotlink protection
Inputs: no named parameters.
disable_modsecurityA
Disable ModSecurity (WAF) for all domains
Inputs: no named parameters.
disable_modsecurity_domainA
Disable ModSecurity for specific domains
Inputs: domains (required).
disable_passenger_appC
Disable/stop a registered application
Inputs: name (required).
disable_spam_assassinA
Disable SpamAssassin spam filtering
Inputs: no named parameters.
disable_spam_boxB
Disable the spam box
Inputs: no named parameters.
disinfect_filesB
Quarantine/disinfect files detected as infected
Inputs: no named parameters.
edit_cron_jobC
Edit an existing cron job
Inputs: command (required), linekey (required), day, hour, +3 more.
edit_dns_recordA
Edit an existing DNS zone record
Inputs: line (required), name (required), type (required), domain (required), +2 more.
edit_fileA
Update the contents of an existing file
Inputs: path (required), content (required).
enable_dkimB
Enable DKIM (DomainKeys Identified Mail) for a domain
Inputs: domain (required).
enable_dnssecA
Enable DNSSEC for a domain
Inputs: domain (required).
enable_greylistingA
Enable greylisting for all domains (delays first-time senders to block spam)
Inputs: no named parameters.
enable_hotlink_protectionC
Enable hotlink protection
Inputs: urls (required), extensions, redirect_url.
enable_modsecurityA
Enable ModSecurity (WAF) for all domains
Inputs: no named parameters.
enable_modsecurity_domainB
Enable ModSecurity for specific domains
Inputs: domains (required).
enable_passenger_appC
Enable/start a registered application
Inputs: name (required).
enable_spam_assassinA
Enable SpamAssassin spam filtering for the account
Inputs: no named parameters.
enable_spam_boxA
Enable the spam box (auto-deliver spam to a separate folder)
Inputs: no named parameters.
ensure_dkim_keysA
Ensure DKIM keys exist for all domains (generates missing keys)
Inputs: no named parameters.
ensure_passenger_depsA
Install/update dependencies for a registered application (npm install, pip install, etc.)
Inputs: name (required).
export_dnssec_keyA
Export a DNSSEC DNSKEY record for a domain
Inputs: domain (required).
extract_archiveB
Extract a compressed archive (.zip, .tar, .tar.gz, .bz2) into a destination directory
Inputs: archive_path (required), destination_dir (required).
generate_2fa_configA
Generate a new two-factor authentication secret (returns QR code data)
Inputs: no named parameters.
generate_cpanel_ymlC
Generate or update a .cpanel.yml deployment specification in a repository or directory
Inputs: target_dir (required), deploy_path (required), custom_commands.
generate_github_actions_workflowA
Generate a GitHub Actions workflow (.github/workflows/deploy.yml) that automatically calls cPanel to redeploy on push
Inputs: repository_root (required), branch, build_steps.
generate_ssh_keyC
Generate a new RSA or DSA SSH keypair directly on the cPanel server
Inputs: name (required), bits, key_type, passphrase.
generate_ssl_csrB
Generate a Certificate Signing Request (CSR)
Inputs: city (required), email (required), state (required), domain (required), +3 more.
get_2fa_statusA
Check if two-factor authentication is configured for the account
Inputs: no named parameters.
get_account_infoB
Get general server and account information
Inputs: no named parameters.
get_account_statsA
Get general account statistics (email count, db count, domains, etc.)
Inputs: no named parameters.
get_autossl_statusA
Check AutoSSL status and pending requests
Inputs: no named parameters.
get_bandwidth_usageA
Get bandwidth usage statistics for the account
Inputs: no named parameters.
get_cron_emailA
Get the email address for cron job notifications
Inputs: no named parameters.
get_default_addressB
Get the catch-all (default) email address destination for a domain
Inputs: domain (required).
get_disk_usageA
Get account disk space usage summary (quota, used, limits)
Inputs: no named parameters.
get_dns_recordsB
Get all DNS records for a zone/domain
Inputs: domain (required).
get_dnssec_ds_recordsA
Fetch DS records for a DNSSEC-enabled domain (needed for registrar configuration)
Inputs: domain (required).
get_domain_infoB
Get detailed information about a specific domain
Inputs: domain (required).
get_email_client_settingsA
Get mail client manual and auto-config settings (IMAP, POP3, SMTP ports, hostnames, SSL settings)
Inputs: account (required).
get_email_disk_usageB
Get detailed disk space consumption for a specific email address
Inputs: email (required).
get_email_routingA
Get email routing configuration for all mail domains
Inputs: no named parameters.
get_error_logA
Get the most recent entries from the site error log
Inputs: domain (required).
get_ftp_portB
Get the FTP server port number
Inputs: no named parameters.
get_git_deployment_statusB
Get the deployment status of a Git repository
Inputs: repository_root (required).
get_greylisting_statusA
Check if greylisting is enabled for the account
Inputs: no named parameters.
get_hotlink_protectionA
Get current hotlink protection settings
Inputs: no named parameters.
get_laravel_statusB
Inspect the health and configuration of a Laravel installation on cPanel
Inputs: project_root (required).
get_login_statusA
Check if cPanel is currently connected and view account connection status or get login instructions
Inputs: no named parameters.
get_modsecurity_statusA
Check if ModSecurity (WAF) is installed and get domain status
Inputs: no named parameters.
get_mysql_server_infoB
Get MySQL server information and restrictions
Inputs: no named parameters.
get_php_ini_directivesA
Get current PHP INI directives for the account
Inputs: no named parameters.
get_php_version_for_domainA
Get the current PHP version assigned to a domain
Inputs: domain (required).
get_resource_usageA
Get current resource usage (CPU, memory, I/O, entry processes)
Inputs: no named parameters.
get_server_infoA
Get server information (hostname, OS, IP addresses)
Inputs: no named parameters.
get_spam_settingsB
Get SpamAssassin settings and score threshold
Inputs: no named parameters.
get_ssh_connection_infoA
Get server SSH port and connection details for remote terminal access
Inputs: no named parameters.
get_ssl_statusA
Get SSL status for all domains on the account
Inputs: no named parameters.
get_virus_scan_statusA
Check the status of a running virus scan
Inputs: no named parameters.
get_visitors_statsC
Get visitor/access statistics for a domain
Inputs: domain (required).
import_ssh_keyB
Import an SSH public or private key
Inputs: key (required), name (required), type.
install_spf_recordsB
Install/update SPF records for all domains
Inputs: no named parameters.
install_ssl_certificateB
Install an SSL certificate for a domain
Inputs: key (required), cert (required), domain (required), cabundle.
kill_ftp_sessionA
Terminate an active FTP session
Inputs: id (required).
list_addon_domainsA
List all addon domains
Inputs: no named parameters.
list_api_tokensA
List all cPanel API tokens for the account
Inputs: no named parameters.
list_autorespondersA
List all email autoresponders
Inputs: no named parameters.
list_backupsA
List available backups on the account
Inputs: no named parameters.
list_blocked_ipsA
List all blocked IP addresses
Inputs: no named parameters.
list_cron_jobsA
List all cron jobs on the account
Inputs: no named parameters.
list_directory_privacyA
List directories with password protection configured
Inputs: path.
list_domainsA
List all domains on the account (main, addon, sub, parked)
Inputs: no named parameters.
list_email_accountsA
List all email accounts with disk usage info
Inputs: no named parameters.
list_email_filtersA
List all email filters for an account
Inputs: account (required).
list_email_forwardersA
List all email forwarders
Inputs: no named parameters.
list_featuresA
List all features available to the cPanel account
Inputs: no named parameters.
list_filesB
List files and directories in a specified path
Inputs: path.
list_ftp_accountsA
List all FTP accounts with disk usage
Inputs: no named parameters.
list_ftp_sessionsA
List active FTP sessions
Inputs: no named parameters.
list_git_reposA
List all Git repositories managed by cPanel
Inputs: no named parameters.
list_infected_filesA
List files detected as infected by ClamAV
Inputs: no named parameters.
list_mysql_databasesA
List all MySQL databases on the account
Inputs: no named parameters.
list_mysql_usersA
List all MySQL database users
Inputs: no named parameters.
list_nodejs_appsB
List all configured Node.js applications and their status
Inputs: no named parameters.
list_parked_domainsA
List all parked/aliased domains
Inputs: no named parameters.
list_passenger_appsA
List all registered Node.js/Python/Ruby applications
Inputs: no named parameters.
list_php_versionsA
List all installed PHP versions available on the server
Inputs: no named parameters.
list_postgresql_databasesA
List all PostgreSQL databases
Inputs: no named parameters.
list_postgresql_usersA
List all PostgreSQL users
Inputs: no named parameters.
list_python_appsA
List all configured Python applications and their status
Inputs: no named parameters.
list_redirectsA
List all URL redirects
Inputs: no named parameters.
list_ssh_keysA
List all SSH keys on the account
Inputs: no named parameters.
list_ssl_certificatesA
List all installed SSL certificates
Inputs: no named parameters.
list_ssl_keysA
List all SSL private keys on the account
Inputs: no named parameters.
list_subdomainsA
List all subdomains
Inputs: no named parameters.
list_wordpress_installationsA
List all WordPress installations managed by cPanel (requires WP Toolkit or Instance Manager on server)
Inputs: no named parameters.
login_cpanelB
Log into cPanel using your server URL, username, and API token. Credentials are saved permanently so you only have to do this once.
Inputs: username (required), api_token (required), server_url (required), verify_ssl, +1 more.
logout_cpanelA
Disconnect and remove saved cPanel credentials from this computer
Inputs: no named parameters.
move_filesB
Move or rename a file or directory on the server
Inputs: source_path (required), destination_dir (required).
observe_cpanel_stateA
Safely observe cPanel state in read-only mode (or build a preset scenario) and compute its canonical AI state encoding and heuristic estimate
Inputs: domain (required), goal, scenario, observe_live, +1 more.
plan_cpanel_workflowB
Compute an AI search plan (BFS, DFS, UCS/UFS, or A*) to reach a cPanel hosting goal without mutating cPanel
Inputs: goal, domain, scenario, algorithm, +4 more.
provision_full_websiteA
Provision a complete website in one step: creates domain/docroot, MySQL database, secure user with full grants, index placeholder, and triggers AutoSSL
Inputs: domain (required), document_root, create_database, database_suffix.
read_fileB
Read the contents of a text file
Inputs: path (required).
redeploy_from_githubB
Pull latest commits from GitHub and execute deployment tasks configured in .cpanel.yml
Inputs: repository_root (required), branch.
register_passenger_appB
Register a new Node.js, Python, or Ruby application
Inputs: name (required), path (required), domain (required), base_uri, +3 more.
remove_2faA
Remove/disable two-factor authentication from the account
Inputs: no named parameters.
rename_api_tokenB
Rename an existing API token
Inputs: name (required), new_name (required).
rename_mysql_databaseC
Rename an existing MySQL database
Inputs: new_name (required), old_name (required).
rename_mysql_userC
Rename an existing MySQL user
Inputs: new_user (required), old_user (required).
repair_mysql_databaseB
Repair damaged or corrupted tables in a database
Inputs: name (required).
reset_cpanel_passwordA
Reset or change the main cPanel login password (requires old_password per cPanel UAPI; optionally syncs MySQL and auto-generates a strong password)
Inputs: old_password (required), new_password, enable_digest_auth, sync_mysql_password, +1 more.
reset_passwordB
Unified MCP password reset tool for cPanel account, Email mailbox, FTP user, MySQL user, or protected directory user
Inputs: account_type (required), domain, target, new_password, +5 more.
restart_nodejs_appB
Restart a running Node.js application instantly by updating its Passenger restart trigger
Inputs: app_root (required), app_name.
restart_python_appA
Restart a running Python WSGI application instantly by updating its Passenger restart trigger
Inputs: app_root (required), app_name.
restore_database_backupB
Restore a MySQL database from a backup file
Inputs: backup_file (required), timeout.
restore_file_backupC
Restore a file from a backup
Inputs: backup_file (required), directory.
revoke_api_tokenA
Revoke/delete an API token
Inputs: name (required).
revoke_mysql_privilegesB
Revoke all privileges for a MySQL user on a database
Inputs: user (required), database (required).
revoke_postgresql_privilegesB
Revoke a PostgreSQL user's access to a database
Inputs: user (required), database (required).
run_npm_installC
Run npm dependency installation for a Node.js application
Inputs: app_name (required).
run_pip_installC
Run pip dependency installation for a registered Python application
Inputs: app_name (required).
set_2faB
Enable two-factor authentication with a secret and verification code
Inputs: code (required), secret (required).
set_cron_emailA
Set the email address for cron job notifications
Inputs: email (required).
set_default_addressC
Configure the catch-all (default) email behavior for unrouted emails sent to a domain
Inputs: domain (required), forward_to (required).
set_dnssec_nsec3A
Enable NSEC3 for a DNSSEC domain (prevents zone enumeration)
Inputs: domain (required).
set_mysql_privilegesB
Set privileges for a MySQL user on a database
Inputs: user (required), database (required), privileges.
set_mysql_user_passwordB
Change the password for an existing MySQL database user
Inputs: user (required), password (required).
set_php_ini_directivesB
Set PHP INI directives (e.g., memory_limit, upload_max_filesize)
Inputs: content (required).
set_php_version_for_domainB
Set the PHP version for a domain
Inputs: domain (required), version (required).
set_postgresql_privilegesB
Grant a PostgreSQL user access to a database
Inputs: user (required), database (required).
setup_github_deploy_keyA
Generate an SSH key in cPanel and automatically register it as a read-only Deploy Key on GitHub for private repo access
Inputs: repo (required), owner (required), key_title, github_token.
setup_laravel_hostingB
Provision a complete, production-ready Laravel hosting environment: sets docroot to /public, provisions MySQL database, generates secure .env, configures 0775 permissions, adds Laravel scheduler cron, and sets PHP 8.2+
Inputs: domain (required), project_root (required), php_version, create_database, +1 more.
setup_nodejs_appC
Provision and configure a complete Node.js application with Passenger, .htaccess routing, starter files, and domain mapping
Inputs: domain (required), app_name (required), app_root (required), port, +3 more.
setup_python_appC
Provision and configure a complete Python application (Flask, Django, FastAPI, or WSGI) with Passenger and .htaccess routing
Inputs: domain (required), app_name (required), app_root (required), env_mode, +2 more.
start_virus_scanB
Start a ClamAV virus scan on a directory (requires ClamAV plugin on server)
Inputs: path.
trace_email_deliveryB
Trace mail delivery and routing path for an email address to debug delivery failures
Inputs: recipient (required).
trace_email_filterA
Test email filters against a message to see which rules match
Inputs: msg (required), account (required).
trigger_autosslA
Trigger an AutoSSL check/renewal for the account
Inputs: no named parameters.
unblock_ipA
Unblock a previously blocked IP address
Inputs: ip (required).
unregister_passenger_appB
Unregister/remove a Node.js, Python, or Ruby application
Inputs: name (required).
unset_dnssec_nsec3A
Disable NSEC3 for a DNSSEC domain (revert to NSEC)
Inputs: domain (required).
update_git_repoC
Pull/update a Git repository
Inputs: repository_root (required), branch.
upload_file_base64B
Upload a binary or text file using Base64 encoding (ideal for images, archives, PDFs)
Inputs: path (required), base64_content (required).
validate_dkimA
Validate current DKIM configuration for all domains
Inputs: no named parameters.
validate_ptr_recordsA
Validate current PTR (reverse DNS) records
Inputs: no named parameters.
validate_spfA
Validate current SPF records for all domains
Inputs: no named parameters.
verify_cpanel_connectionB
Test and verify the live connection and credentials to the cPanel server
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 220 tools
The 220-tool surface contains many overlapping or near-duplicate operations, such as reset_password vs. reset_cpanel_password/change_email_password/change_ftp_password, setup_nodejs_app vs. register_passenger_app, and list_domains/list_addon_domains/list_parked_domains/list_subdomains. While many tools target distinct resources, the sheer volume and layered abstractions create unclear boundaries for an agent choosing among similar actions.
Nearly all tools use a consistent snake_case verb_noun pattern (list_*, get_*, create_*, delete_*, enable_*, disable_*, validate_*). Even the more specialized planning and provisioning tools follow readable verb-first naming without mixing conventions.
220 tools is an extreme over-expansion for a cPanel server, far beyond a well-scoped set. Many operations are duplicated across generic and specialized tools, making the surface unwieldy despite broad domain coverage.
The tool set covers most cPanel domains comprehensively: files, DNS, SSL, email, databases, FTP, cron, security, domains, Node/Python/Laravel hosting, and backups. Minor gaps exist, such as directory-privacy user removal and some email routing configuration, but core lifecycle operations are broadly present.
Maintenance
Related MCP Connectors
Hosting run by your AI agent: publish websites, apps, databases, domains and email from chat.
Run your Lanetti hosting from your AI agent: domains, DNS, websites, email, backups and billing.
Manage NodePal Minecraft servers, worlds, mods, backups and console from AI agents.
Deploy and manage your apps, databases, storage, and scheduled jobs from your AI agent
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to manage Plesk hosting environments through a set of standardized tools for security, health monitoring, DNS, email, backups, and service management.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to manage WHM hosting accounts and server administration tasks including account management, server stats, updates, SSL, backups, and email through a secure API.13ISC
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage cPanel hosting accounts including DNS, email, databases, SSL, files, security, and more through natural language using cPanel's UAPI and API2.ISC
- AlicenseBqualityCmaintenanceEnables AI assistants to query and manage cPanel and WHM servers through official APIs, defaulting to read-only and requiring preview and confirmation for every change.18MIT