cPanel MCP Server
Provides comprehensive tools for controlling and automating cPanel hosting environments via UAPI/API2, including file management, MySQL/PostgreSQL databases, DNS, email, SSL, cron, backups, security, domains, and account administration.
Supports Django application deployment and management through cPanel Python hosting.
Supports FastAPI application deployment and management through cPanel Python hosting.
Supports Flask application deployment and management through cPanel Python hosting.
Provides Git repository management and automated .cpanel.yml deployment within cPanel.
Enables GitHub connection and deployment automation for cPanel, including webhooks, deploy keys, and redeployment on git push.
Supports GitHub Actions workflows for automated cPanel deployments and CI/CD.
Provides a Laravel hosting suite on cPanel, including /public docroot configuration, MySQL setup, .env management, permissions, and scheduler setup.
Provides MySQL database CRUD, table check/repair, user management, and fine-grained grants via cPanel.
Provides Node.js application hosting lifecycle management on cPanel, including provisioning, Passenger configuration, and zero-downtime reloads.
Provides npm package management operations for Node.js applications hosted on cPanel.
Allows multi-PHP version switching and php.ini directive management through cPanel.
Provides PostgreSQL database CRUD, user management, and privilege management via cPanel.
Provides Python application hosting on cPanel, including virtualenv and pip management.
Supports Ruby applications through Phusion Passenger management on cPanel.
Provides WordPress Toolkit instance detection within 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 subdomain shop.example.com and point it to public_html/shop"
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.
Directly bridges AI models with cPanel's UAPI and API2 engines, unlocking natural-language orchestration of files, MySQL/PostgreSQL databases, DNS, email systems, SSL certificates, Git deployment, Node.js applications, Python frameworks (Flask/Django/FastAPI), Laravel hosting, GitHub CI/CD automated redeployment, and built-in AI safety guardrails.
š Key Capabilities
214 MCP Tools: Comprehensive coverage of every cPanel administration domain.
Modern App Hosting: Complete lifecycle management for Node.js, Python, and Laravel applications.
GitHub Continuous Deployment: Instant redeployment on
git push, deploy key management, webhooks, and GitHub Actions workflows.AI Safety Guardrails (
SKILL.md): Prevents accidental file/database deletion, stops server overloads, and protects resource quotas.Zero-Terminal In-Chat Login: Connect to cPanel directly through your AI chat interface without manual config file editing.
Full MCP Compliance: Fully tested with
@modelcontextprotocol/sdksupporting Tools, Resources, and Prompts.
Related MCP server: cPanel MCP Server
šļø Architecture
src/
āāā index.ts # Server entrypoint ā registers 30 tool modules, resources & prompts
āāā cpanel-api.ts # Resilient HTTP/HTTPS client (UAPI + API2, token auth, backoff retries)
āāā config.ts # Global user configuration manager (~/.cpanel-mcp/config.json)
āāā env.ts # Multi-path .env auto-loader
āāā validation.ts # Defense-in-depth sanitization (multi-pass traversal prevention, null bytes, IPs)
āāā tool-helpers.ts # Structured response formatters and error handlers
āāā resources.ts # MCP Resources (disk usage, server info, account overview)
āāā prompts.ts # MCP Prompts (domain troubleshooting, security audit, deployment workflows)
āāā tools/ # 30 domain-specific tool modules (214 tools total)
āāā auth.ts # In-chat login, login status, and logout
āāā workflows.ts # 1-Click site provisioning, DNS presets, account cleanup
āāā nodejs-hosting.ts # Node.js app provisioning, Passenger config, zero-downtime reload, npm
āāā python-hosting.ts # Python hosting (Flask, Django, FastAPI, WSGI), virtualenv, pip
āāā laravel-hosting.ts # Laravel suite: /public docroot, MySQL, .env, 0775 permissions, scheduler
āāā github.ts # GitHub connection, automated redeploy, webhooks, deploy keys, CI/CD
āāā files.ts # File operations (Fileman, extract/compress archives, chmod, copy/move, base64)
āāā disk.ts # Quota and storage consumption
āāā mysql.ts # MySQL database CRUD, table check/repair, users & fine-grained grants
āāā postgresql.ts # PostgreSQL database CRUD, users & privileges
āāā email.ts # POP/IMAP accounts, forwarders, autoresponders, client config, delivery trace
āāā email-auth.ts # DKIM, SPF, reverse PTR validation & key installer
āāā email-filters.ts # Filter rules, SpamAssassin, Greylisting
āāā dns.ts # DNS zone record management (ZoneEdit)
āāā dnssec.ts # DNSSEC key export, DS records, NSEC3 config
āāā domains.ts # Subdomains, addon domains, parked domains, redirects
āāā cron.ts # Cron job scheduling, human-friendly presets, & notification settings
āāā php.ts # Multi-PHP switching & php.ini directives
āāā ssl.ts # SSL certs, CSR generation, AutoSSL renewals
āāā security.ts # IP blocker, SSH keygen & import, key auth, Hotlink protection, directory privacy
āāā modsecurity.ts # ModSecurity WAF toggle (global & per-domain)
āāā twofa.ts # Two-Factor Authentication status & setup
āāā virus-scanner.ts # ClamAV scan triggers, status & disinfection
āāā metrics.ts # Bandwidth, resource usage, visitor logs, error logs
āāā backups.ts # Full/partial backups (homedir, FTP, SCP) and restores
āāā ftp.ts # FTP accounts, quota management, active session termination
āāā wordpress.ts # WordPress Toolkit instance detection
āāā passenger.ts # Phusion Passenger (Node.js, Python, Ruby apps)
āāā version-control.ts # Git repos & automated .cpanel.yml deployment
āāā tokens.ts # API token provisioning and lifecycle
āāā features.ts # cPanel feature availability & connection verificationš Complete Step-by-Step Connection Instructions
Connecting your cPanel account to this MCP server is fast, safe, and foolproof. Follow these exact steps:
Step 1: Obtain Your 3 cPanel Credentials
You only need three pieces of information from your cPanel account:
1.1 Find Your cPanel Server URL
Look at your browser address bar when you log into your cPanel hosting account.
It typically looks like:
https://your-domain.com:2083(Standard cPanel port)https://cpanel.your-domain.com:2083https://server123.hostingprovider.com:2083
š” Tip: cPanel always uses HTTPS on port
:2083. If you access cPanel viahttps://yourdomain.com/cpanel, your browser will automatically redirect to a URL containing:2083. Copy that redirected address!
1.2 Find Your cPanel Username
This is your main cPanel account username (e.g.
john,u123456,myhosting).You can see it in the top-right corner of your cPanel dashboard next to the user icon, or in your hosting provider's welcome email.
1.3 Generate Your cPanel API Token (30 Seconds)
Instead of using your account password, cPanel uses secure, revokable API tokens:
Log into your cPanel Dashboard in your web browser.
In the top search bar, type "API Tokens" (or scroll down to the Security box and click Manage API Tokens).
Click the blue + Create Token button in the top right.
In the Token Name field, type any name (for example,
mcp-assistant).(Optional) Under Specify Expiration, choose your preferred duration or leave unchecked for no expiration.
Leave full permissions checked so the MCP server can orchestrate files, databases, domains, and frameworks.
Click Create at the bottom.
ā ļø IMPORTANT: Click the Copy button to copy the token immediately! cPanel will only show this token once.
Step 2: Add the MCP Server to Your AI IDE / Client
Choose your AI editor and paste the configuration:
A. Cursor
Open Cursor → Press
Ctrl + Shift + J(orCmd + Shift + Jon macOS) to open Cursor Settings.Click Features → MCP Servers → Add New MCP Server.
Name:
cpanel| Type:command| Command:node C:/Users/akashjamali/Documents/MyMCP/build/index.jsOr add directly to
.cursor/mcp.jsonin your project:
{
"mcpServers": {
"cpanel": {
"command": "node",
"args": ["C:/Users/akashjamali/Documents/MyMCP/build/index.js"]
}
}
}B. Claude Desktop
Open Claude Desktop Settings → Developer → Edit Config:
File location:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Add:
{
"mcpServers": {
"cpanel": {
"command": "node",
"args": ["C:/Users/akashjamali/Documents/MyMCP/build/index.js"]
}
}
}C. Antigravity / Gemini Code Assist
Add to your Antigravity or workspace MCP settings:
{
"mcpServers": {
"cpanel": {
"command": "node",
"args": ["C:/Users/akashjamali/Documents/MyMCP/build/index.js"]
}
}
}D. Cline / Roo-Code
In VS Code, open cline_mcp_settings.json and add:
{
"mcpServers": {
"cpanel": {
"command": "node",
"args": ["C:/Users/akashjamali/Documents/MyMCP/build/index.js"],
"disabled": false,
"autoApprove": []
}
}
}Step 3: Authenticate & Connect (Choose Any 1 of 3 Methods)
Method 1: In-Chat Login (Zero Terminal Setup!) š
Once your AI client is running, simply type into the chat:
"Connect to my cPanel: URL is https://your-domain.com:2083, username is myuser, token is abc123xyz"
The AI invokes the login_cpanel tool, verifies the credentials live against cPanel, and saves them permanently to ~/.cpanel-mcp/config.json. You are immediately connected across all future chat sessions without touching any terminal!
Method 2: Interactive Terminal Setup Wizard
If you prefer setting up before opening your editor:
npm run setup
# or globally:
npx cpanel-mcp-server setupEnter your cPanel Server URL.
Enter your cPanel username.
Paste your API token.
The wizard tests connectivity to port 2083, authenticates, and writes your configuration automatically.
Method 3: Traditional .env File
Copy .env.example to .env and fill in your values:
cp .env.example .envCPANEL_SERVER_URL=https://your-domain.com:2083
CPANEL_USERNAME=your_cpanel_username
CPANEL_API_TOKEN=your_cpanel_api_token
GITHUB_TOKEN=ghp_your_optional_github_tokenStep 4: Verify Your Connection in Chat
To verify that your AI can talk to cPanel, open a chat and ask:
"Verify my cPanel connection" or "List my domains and disk quota"
Your AI assistant will call verify_cpanel_connection or get_login_status, returning a live status report with your server name, username, and primary domains!
Step 5: Troubleshooting & FAQ
Problem | Cause | One-Click Fix |
| Firewall or ISP blocks port | Try using your hosting provider's direct hostname (e.g. |
| Your cPanel server uses a self-signed or shared SSL cert. | Set |
| Invalid, misspelled, or expired API token. | Go to cPanel → Security → Manage API Tokens, revoke the old token, and create a fresh one. |
How to switch cPanel accounts? | You want to connect to a different cPanel account. | Ask your AI: "Log out of cPanel" (calls |
š”ļø AI Safety Guardrails & Skills (SKILL.md)
When using AI agents with root-level hosting power, safety is paramount. This repository includes SKILL.md, defining strict behavioral guardrails for your AI:
Zero Destructive Actions Without Prior Confirmation:
The AI will never delete files, drop databases, remove email accounts, or wipe DNS records without explicitly asking and receiving your confirmation.
Anti-Overload & Resource Throttling:
Before running heavy operations (virus scans, large archive extractions, full backups), the AI inspects CPU, RAM, and Entry Process utilization to prevent triggering 508 Resource Limit Reached errors or account lockouts.
Safe Production Framework Deployment:
Enforces zero-downtime application reloading via
tmp/restart.txt.Enforces
/publicdocument root containment for Laravel so.envsecrets cannot be leaked.Restricts folder permissions to
0775(rejecting unsafe0777).
To equip your AI assistant with this skill:
Cursor: Add the contents of
SKILL.mdto.cursorrules.Antigravity: Copy
SKILL.mdto your workspace skills directory.Cline: Reference
SKILL.mdin your.clinerules.Claude Desktop: Paste
SKILL.mdinto Project Instructions.
š¦ Detailed MCP Capabilities
1. MCP Tools (214 Total)
Category | Tools | Capabilities |
Authentication & Setup | 3 |
|
Composite Workflows | 3 |
|
Node.js Hosting | 6 |
|
Python Hosting | 6 |
|
Laravel Hosting Suite | 3 |
|
GitHub CI/CD & Deploy | 8 |
|
File Management | 11 |
|
Disk Usage | 1 |
|
MySQL Databases | 14 |
|
PostgreSQL Databases | 8 | Database & user CRUD, fine-grained access grants |
Email Management | 17 |
|
Email Authentication | 7 |
|
Email Filters & Spam | 13 | Filter rules, SpamAssassin spam box, Greylisting |
DNS Management | 4 |
|
DNSSEC | 6 | Enable/disable DNSSEC, fetch DS records, export DNSKEY, configure NSEC3 |
Domain Management | 14 | Addon domains, subdomains, parked domains (aliases), URL redirects (301/302) |
Cron Job Scheduling | 7 |
|
PHP Management | 5 | List installed PHP versions, set domain PHP version, edit |
SSL / TLS & AutoSSL | 8 | List certs, generate CSR, install certs, check AutoSSL status & trigger renewal |
Security Suite | 15 | IP Deny blocker, SSH keygen & authorization, Hotlink protection, Directory Privacy |
ModSecurity (WAF) | 5 | ModSecurity installation status, domain status, global/domain toggle |
Two-Factor Auth (2FA) | 4 | 2FA verification status, secret generation, enable & removal |
Virus Scanner (ClamAV) | 4 | Directory virus scans, scan progress, infection reports, disinfection |
Metrics & Logs | 5 | Bandwidth usage, CPU/RAM resource usage, error logs, visitor analytics |
Backup Management | 7 | Full backups (homedir, FTP, SCP), partial backups, database & file restores |
FTP Management | 8 | Accounts, quotas, active session termination, connection parameters |
WordPress Toolkit | 1 | Discover installed WordPress instances and details |
Passenger Applications | 6 | Register, launch, stop, and manage dependencies for Node.js/Python/Ruby apps |
Git Version Control | 6 | Git repository creation, cloning, branch switching, and |
API Tokens | 4 | List, create, rename, and revoke cPanel API authentication tokens |
Server & Features | 5 | Live connection verification ( |
2. MCP Resources
Directly inspect live system state via MCP resource URIs:
cpanel://system/disk-usageā Read-only quota, storage consumption, and limits.cpanel://server/infoā Live server specs, OS info, and available PHP versions.cpanel://account/summaryā Consolidated overview of domains, bandwidth, databases, and mail accounts.
3. MCP Prompts
Interactive workflows pre-configured for LLMs:
troubleshoot_domainā Executes a multi-stage audit of domain resolution, DNS records, SSL validity, and error logs.hosting_security_auditā Security posture check across WAF rules, IP bans, SSH keys, 2FA, and hotlink protection.deploy_new_siteā Guided provisioning of a domain, database, user permissions, and AutoSSL.setup_github_cpanel_cicdā Guided setup of GitHub repository linking, deploy keys, webhooks, and automated redeployment.setup_nodejs_app_workflowā Guided setup of a Node.js Express/HTTP application on Phusion Passenger.setup_python_app_workflowā Guided setup of a Flask, Django, or FastAPI application.setup_laravel_app_workflowā Guided provisioning of a production Laravel application with database,.env, and cron scheduler.
š Framework Hosting Quickstarts
1. Deploying a Node.js App
Ask your AI:
"Host my Node.js application
my-apion subdomainapi.example.comin directorynodejs/my-api"
The server executes setup_nodejs_app, creating the directory, package.json, app.js, and .htaccess configured for Phusion Passenger. After updating code, simply say:
"Restart my Node.js app" (invokes
restart_nodejs_app).
2. Deploying a Python App (Flask / Django / FastAPI)
Ask your AI:
"Deploy a Python Flask application on
python.example.com"
The server executes setup_python_app, generating passenger_wsgi.py, starter app.py, requirements.txt, and Passenger WSGI directives.
3. Deploying a Laravel App
Ask your AI:
"Set up Laravel hosting on
laravel.example.comin folderlaravel/my-app"
The server executes setup_laravel_hosting:
Points the document root directly to
laravel/my-app/public.Assigns PHP 8.2+.
Creates a MySQL database & user with
ALL PRIVILEGES.Generates
.envwith a secureAPP_KEYand database credentials.Sets
0775permissions onstorageandbootstrap/cache.Configures the Laravel Scheduler cron (
* * * * * php artisan schedule:run).Queues AutoSSL.
4. Setting up Automated GitHub CI/CD Redeployment
Ask your AI:
"Connect my GitHub repo
my-org/my-siteand redeploy on every push"
The server executes:
connect_github_repo: Clones the repo into cPanel.generate_cpanel_yml: Writes.cpanel.ymlwith tasks to deploy topublic_html.create_github_webhookorgenerate_github_actions_workflow: Automates redeployment whenever new commits hitmain.
š Security Model
Token-Based Authentication: Uses scoped cPanel API tokens without exposing account master passwords.
HTTPS Strict Enforcement: Remote plain HTTP is blocked by default. Loopback HTTP is only allowed for local development when explicitly opted into.
Path Traversal Defense: All file paths and document roots undergo multi-pass decoding to catch raw and URL-encoded traversal (
..,%2e%2e,%252e%252e) as well as null-byte attacks (\0,%00).Input Sanitization: Domains, IP CIDR blocks, email addresses, and cron schedules are validated prior to invoking API handlers.
AI Guardrails Enforced: Full adherence to
SKILL.mdnon-destructive protocols.
š ļø Development & Testing
# Install dependencies
npm install
# Build TypeScript to JavaScript
npm run build
# Run full test suite (protocol compliance + security regression)
npm testAll 9 test suites verify:
JSON-RPC 2.0 handshake and capability negotiation over stdio.
Input validation and directory traversal prevention.
URL normalization and loopback enforcement.
Graceful unconfigured startup and dynamic authentication.
š License & Author
Architect & Developer: AkashJamali (GitHub Profile)
License: MIT License ā see the LICENSE file for complete details.
Copyright: © 2026 AkashJamali. All rights reserved.
Available Tools
214 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.
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_webhookC
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).
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).
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).
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 214 tools
Most tools map to distinct cPanel resources and actions, but there are overlapping layers such as disable_modsecurity vs disable_modsecurity_domain, setup_nodejs_app vs register_passenger_app/enable_passenger_app, and provision_full_website vs individual domain/database/SSL creation tools. Descriptions help distinguish them, but the all-domain vs per-domain and high-level vs granular boundaries are not always crisp.
The toolset overwhelmingly uses snake_case with predictable verb_noun naming, such as list_domains, create_mysql_database, and delete_email_account. Minor deviations like login_cpanel, cleanup_account_temp_files, and get_2fa_status are readable but slightly less uniform.
A 214-tool surface is far beyond a practical, well-scoped MCP toolset, even for a domain as broad as cPanel. The large number of granular CRUD tools, security toggles, app-specific helpers, and provisioning shortcuts creates an overloaded interface that is hard for an agent to navigate efficiently.
Coverage is extensive across files, databases, email, DNS, domains, SSL, cron, security, backups, FTP, Git, and application hosting. Some lifecycle gaps remain, such as limited edit/update operations for certain domain and email resources and no obvious full-account backup restore tool.
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, sites, email, apps, backups and billing.
Deploy and manage your apps, databases, storage, and scheduled jobs from your AI agent
Your Ex2 hosting in your AI assistant: order, renew, DNS, mail, WordPress, backups, with consent.
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
- AlicenseAqualityDmaintenanceA complete MCP server enabling AI assistants to manage cPanel hosting through natural language, including file, database, email, subdomain, and system operations.161MIT
- 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
- AlicenseBqualityCmaintenanceA comprehensive MCP server for managing cPanel hosting accounts through AI assistants. It supports DNS, email (DKIM/SPF), databases, domains, SSL, PHP, cron jobs, security, Git deployment, and more.10027ISC