npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

cpanel-pilot-mcp

v1.2.0

Published

cPanel Pilot MCP — A comprehensive AI server for cPanel hosting management. Seamlessly control DNS, email, databases, domains, SSL, cron, security, backups, and more.

Readme

cPanel Pilot MCP Banner

🚀 cPanel Pilot MCP

The Ultimate AI Bridge for Web Hosting Management

License Version Author TypeScript cPanel

Empower your AI assistants (like Claude & ChatGPT) to manage, deploy, and secure your cPanel servers entirely through natural language.


🎯 What is cPanel Pilot?

cPanel Pilot MCP is a powerful, comprehensive Model Context Protocol (MCP) server engineered for managing cPanel hosting accounts seamlessly. It bridges your AI directly to cPanel's native UAPI and API2 interfaces.

Stop clicking through endless menus. Just tell your AI:

"Create a new WordPress database, generate a secure password for the user, and assign full privileges."
...and watch it happen instantly.

🏗️ How It Works (Architecture Flow)

sequenceDiagram
    participant User as 🧑‍💻 User
    participant AI as 🤖 AI Assistant (Claude/Cursor)
    participant MCP as 🔌 cPanel Pilot MCP (Local)
    participant cPanel as 🗄️ cPanel Server (Remote)

    User->>AI: "Create a new database named 'blog' and a user"
    activate AI
    AI->>MCP: Call Tool: create_mysql_database(name="blog")
    activate MCP
    MCP->>cPanel: HTTP POST /execute/Mysql/create_database
    activate cPanel
    cPanel-->>MCP: { status: 1, data: { ... } }
    deactivate cPanel
    MCP-->>AI: Success Response
    deactivate MCP
    AI->>User: "Database 'blog' created successfully!"
    deactivate AI

✨ Core Capabilities (164+ Tools)

cPanel Pilot gives your AI unprecedented control over your hosting infrastructure.

📁 File & Storage Management

| Feature | Description | | :--- | :--- | | Operations | List, create, read, edit, and delete files inside your hosting account. | | Uploads | Upload single files, multiple files to different destinations, or entire local directories directly to cPanel via MCP. | | Archives | Extract .zip and .tar.gz archives directly on the server. | | Security | Change CHMOD permissions easily for security and execution. | | Metrics | Check account quota, consumption, and storage limits. |

🗄️ Database Mastery

| Feature | Description | | :--- | :--- | | Engines | Full CRUD support for MySQL & PostgreSQL databases and users. | | Access | Grant or revoke fine-grained privileges per database. | | Remote | Whitelist/remove IPs and hostnames for remote database connections. |

✉️ Next-Gen Email Management

| Feature | Description | | :--- | :--- | | Mailboxes | Create, delete, manage passwords, set quotas, and monitor disk usage. | | Routing | Configure forwarders, autoresponders, and mail domain routing. | | Auth | Validate, enable, and install DKIM, SPF, and PTR records. | | Spam | Control SpamAssassin, email filters, spam box clearing, and Greylisting. | | Tracking | Search email delivery logs by recipient, sender, or success status. |

🌐 Domains & DNS Architecture

| Feature | Description | | :--- | :--- | | Domains | Full control over Addon domains, Subdomains, Parked domains, and Redirects. | | DNS Editor| View, add, edit, and delete DNS records (A, CNAME, MX, TXT, SRV). | | DNSSEC | Enable DNSSEC, fetch DS records for registrars, and toggle NSEC3. |

🔒 Uncompromising Security

| Feature | Description | | :--- | :--- | | WAF | Check installation status and toggle ModSecurity globally or per-domain. | | Access | IP Blocker, SSH Key management (import, authorize, delete). | | Authentication| Generate secrets, enable via QR/Code verification, and disable 2FA. | | Scanner | Run ClamAV Virus Scans (including quarantine/disinfect). |

⚡ Performance & Server Operations

| Feature | Description | | :--- | :--- | | PHP Environment| Assign PHP versions per-domain, and tweak php.ini directives. | | SSL/TLS | Install certificates, generate CSRs, and force AutoSSL renewals. | | Automation | Fully manage Cron Jobs and configure notification emails. |

📦 Applications & Deployment

| Feature | Description | | :--- | :--- | | Backups | Trigger full/partial account backups and restore DBs/files on the fly. | | Modern Apps | Manage Node.js, Python, and Ruby applications via Phusion Passenger. | | Git & WP | Deploy via .cpanel.yml, manage Git repos natively, and list WP installs. |

🛠️ Quick Start Guide

Option 1: Run via npx (Easiest)

You can run the server directly without installing it globally using npx:

{
  "mcpServers": {
    "cpanel-pilot": {
      "command": "npx",
      "args": ["-y", "cpanel-pilot-mcp"],
      "env": {
        "CPANEL_USERNAME": "your_cpanel_username",
        "CPANEL_API_TOKEN": "your_cpanel_api_token",
        "CPANEL_SERVER_URL": "https://your-domain.com:2083",
        "CPANEL_AUTH_MODE": "auto"
      }
    }
  }
}

Option 2: Install via npm

If you prefer to install it globally on your machine:

npm install -g cpanel-pilot-mcp

Then configure your MCP client like this:

{
  "mcpServers": {
    "cpanel-pilot": {
      "command": "cpanel-pilot-mcp",
      "args": [],
      "env": {
        "CPANEL_USERNAME": "your_cpanel_username",
        "CPANEL_API_TOKEN": "your_cpanel_api_token",
        "CPANEL_SERVER_URL": "https://your-domain.com:2083",
        "CPANEL_AUTH_MODE": "auto"
      }
    }
  }
}

Option 3: Build from Source

Ensure you have Node.js 18+ installed on your system.

git clone https://github.com/rayss868/cPanel-Pilot-MCP.git
cd cPanel-Pilot-MCP
npm install
npm run build

Then configure using the absolute path to the build/index.js file as your args.

3. Environment Variables Reference

| Variable | Required | Description | |----------|----------|-------------| | CPANEL_USERNAME | Yes | Your cPanel account username | | CPANEL_API_TOKEN | Yes | API token for authentication OR your cPanel login Password | | CPANEL_SERVER_URL | Yes | Full cPanel URL with port (e.g., https://server.host.com:2083) | | CPANEL_AUTH_MODE | No | Set to password to force Basic Auth if using your password. | | CPANEL_TIMEOUT_MS | No | Request timeout in milliseconds (Default: 30000) | | CPANEL_VERIFY_SSL | No | Set to false to disable SSL verification for self-signed certs |

  1. Log in to your cPanel dashboard.
  2. Navigate to Security > Manage API Tokens.
  3. Create a new token with a descriptive name.
  4. Copy the token immediately — it won't be shown again.

Note: If your hosting provider disables API Tokens, you can simply put your cPanel login password into the CPANEL_API_TOKEN config and set "CPANEL_AUTH_MODE": "password".

📂 Codebase Structure

src/
├── index.ts           # MCP server entry point — registers all tools
├── cpanel-api.ts      # Core API client (UAPI + API2, Auth handling, Retries)
└── tools/             # Modular tool definitions
    ├── backups.ts     ├── dns.ts         ├── mysql.ts
    ├── cron.ts        ├── dnssec.ts      ├── passenger.ts
    ├── disk.ts        ├── domains.ts     ├── php.ts
    ├── email-auth.ts  ├── ftp.ts         ├── postgresql.ts
    ├── email-filters.ts├── metrics.ts    ├── security.ts
    ├── email.ts       ├── modsecurity.ts ├── ssl.ts (and more...)

🛡️ Security & Privacy Promise

Your cPanel credentials are loaded securely from environment variables at runtime. They are never stored in the repository, written to disk, or exposed in logs.

All connections to your cPanel server default strictly to HTTPS to ensure your authentication headers are encrypted via TLS/SSL during transit.

📜 License

This project is open-sourced under the ISC License.
Built and maintained with ❤️ by rayss868.