Skip to main content
Glama

License: MIT Version Author MCP Protocol Tools Tests

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/sdk supporting 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:2083

    • https://server123.hostingprovider.com:2083

  • šŸ’” Tip: cPanel always uses HTTPS on port :2083. If you access cPanel via https://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:

  1. Log into your cPanel Dashboard in your web browser.

  2. In the top search bar, type "API Tokens" (or scroll down to the Security box and click Manage API Tokens).

  3. Click the blue + Create Token button in the top right.

  4. In the Token Name field, type any name (for example, mcp-assistant).

  5. (Optional) Under Specify Expiration, choose your preferred duration or leave unchecked for no expiration.

  6. Leave full permissions checked so the MCP server can orchestrate files, databases, domains, and frameworks.

  7. Click Create at the bottom.

  8. āš ļø 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 (or Cmd + Shift + J on 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.js

  • Or add directly to .cursor/mcp.json in 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.json

    • macOS: ~/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 setup
  1. Enter your cPanel Server URL.

  2. Enter your cPanel username.

  3. Paste your API token.

  4. 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 .env
CPANEL_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_token

Step 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

Connection timed out or ECONNREFUSED

Firewall or ISP blocks port 2083.

Try using your hosting provider's direct hostname (e.g. https://server123.host.com:2083) or check if your hosting uses an alternate proxy URL like https://cpanel.yourdomain.com.

SELF_SIGNED_CERT_IN_CHAIN

Your cPanel server uses a self-signed or shared SSL cert.

Set CPANEL_VERIFY_SSL=false in .env, or answer n when running npm run setup, or pass verify_ssl: false in login_cpanel.

HTTP 403 Forbidden

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 logout_cpanel), then log in with your new account credentials.


šŸ›”ļø 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:

  1. 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.

  2. 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.

  3. Safe Production Framework Deployment:

    • Enforces zero-downtime application reloading via tmp/restart.txt.

    • Enforces /public document root containment for Laravel so .env secrets cannot be leaked.

    • Restricts folder permissions to 0775 (rejecting unsafe 0777).

To equip your AI assistant with this skill:

  • Cursor: Add the contents of SKILL.md to .cursorrules.

  • Antigravity: Copy SKILL.md to your workspace skills directory.

  • Cline: Reference SKILL.md in your .clinerules.

  • Claude Desktop: Paste SKILL.md into Project Instructions.


šŸ“¦ Detailed MCP Capabilities

1. MCP Tools (214 Total)

Category

Tools

Capabilities

Authentication & Setup

3

login_cpanel, get_login_status, logout_cpanel

Composite Workflows

3

provision_full_website, apply_dns_preset, cleanup_account_temp_files

Node.js Hosting

6

setup_nodejs_app, restart_nodejs_app, list_nodejs_apps, run_npm_install, configure_nodejs_env, destroy_nodejs_app

Python Hosting

6

setup_python_app (Flask/Django/FastAPI/WSGI), restart_python_app, list_python_apps, run_pip_install, configure_python_env, destroy_python_app

Laravel Hosting Suite

3

setup_laravel_hosting (public docroot, MySQL, .env, 0775 permissions, scheduler cron), deploy_laravel_update, get_laravel_status

GitHub CI/CD & Deploy

8

connect_github_repo, redeploy_from_github, generate_cpanel_yml, create_github_webhook, setup_github_deploy_key, generate_github_actions_workflow, check_github_sync_status, configure_github_token

File Management

11

list_files, create_file, read_file, edit_file, delete_file, extract_archive (.zip/.tar/.tar.gz), compress_files, copy_files, move_files, change_permissions (chmod), upload_file_base64

Disk Usage

1

get_disk_usage (Quota, consumption, limits)

MySQL Databases

14

list_mysql_databases, create_mysql_database, delete_mysql_database, rename_mysql_database, check_mysql_database, repair_mysql_database, list_mysql_users, create_mysql_user, delete_mysql_user, rename_mysql_user, set_mysql_user_password, set_mysql_privileges, revoke_mysql_privileges, get_mysql_server_info

PostgreSQL Databases

8

Database & user CRUD, fine-grained access grants

Email Management

17

list_email_accounts, create_email_account, delete_email_account, change_email_password, change_email_quota, forwarders, autoresponders, get_email_client_settings, get_email_disk_usage, get_default_address, set_default_address, trace_email_delivery

Email Authentication

7

get_dkim_status, install_dkim_key, get_spf_records, install_spf_record, PTR validation

Email Filters & Spam

13

Filter rules, SpamAssassin spam box, Greylisting

DNS Management

4

get_dns_records, add_dns_record, edit_dns_record, delete_dns_record (A, AAAA, CNAME, MX, TXT, SRV, CAA)

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

list_cron_jobs, create_cron_job, create_simple_cron_job (presets: hourly, daily, etc.), edit_cron_job, delete_cron_job, notification alerts

PHP Management

5

List installed PHP versions, set domain PHP version, edit php.ini directives

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 .cpanel.yml deployment

API Tokens

4

List, create, rename, and revoke cPanel API authentication tokens

Server & Features

5

Live connection verification (verify_cpanel_connection), account profile, server details, feature checks


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-api on subdomain api.example.com in directory nodejs/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.com in folder laravel/my-app"

The server executes setup_laravel_hosting:

  1. Points the document root directly to laravel/my-app/public.

  2. Assigns PHP 8.2+.

  3. Creates a MySQL database & user with ALL PRIVILEGES.

  4. Generates .env with a secure APP_KEY and database credentials.

  5. Sets 0775 permissions on storage and bootstrap/cache.

  6. Configures the Laravel Scheduler cron (* * * * * php artisan schedule:run).

  7. Queues AutoSSL.

4. Setting up Automated GitHub CI/CD Redeployment

Ask your AI:

"Connect my GitHub repo my-org/my-site and redeploy on every push"

The server executes:

  1. connect_github_repo: Clones the repo into cPanel.

  2. generate_cpanel_yml: Writes .cpanel.yml with tasks to deploy to public_html.

  3. create_github_webhook or generate_github_actions_workflow: Automates redeployment whenever new commits hit main.


šŸ”’ 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.md non-destructive protocols.


šŸ› ļø Development & Testing

# Install dependencies
npm install

# Build TypeScript to JavaScript
npm run build

# Run full test suite (protocol compliance + security regression)
npm test

All 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 tools
add_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_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_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_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

    C2.9/5.0

    Scored across 214 tools

    Disambiguation3/5

    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.

    Naming Consistency4/5

    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.

    Tool Count1/5

    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.

    Completeness4/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to manage Plesk hosting environments through a set of standardized tools for security, health monitoring, DNS, email, backups, and service management.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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.
      13
      ISC
    • A
      license
      B
      quality
      C
      maintenance
      A 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.
      100
      27
      ISC