cpanel-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| HTTP_PORT | No | Port for the built-in OpenAPI HTTP bridge when running with --http. | 3000 |
| CPANEL_HOST | Yes | Direct cPanel server URL on port 2083, e.g. https://server12.yourhost.com:2083. Do not use a Cloudflare-proxied domain. | |
| CPANEL_USER | Yes | Your cPanel username (Current User). | |
| ALLOWED_ROOT | Yes | Root directory for file operations, e.g. /home/myuser/public_html. Used as the path jail. | |
| CPANEL_TOKEN | Yes | Your cPanel API Token from Security → Manage API Tokens. | |
| HTTP_API_KEY | No | Bearer token used to authenticate the HTTP bridge. If omitted, the server prints a generated Bearer Token. | |
| BLOCKED_FILES | No | JSON array of sensitive filenames to block, e.g. [".env","wp-config.php","config.php",".htaccess"]. | |
| ALLOW_INSECURE_SSL | No | Set to true to allow insecure SSL certificates when connecting to cPanel on port 2083. | false |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_filesA | List all files and directories (including dotfiles, permissions, and sizes) inside a cPanel directory. |
| read_fileB | Read the full text content of a file on the cPanel server. |
| write_fileA | Create or overwrite a file on the cPanel server (automatically saves a backup in .claude_backups first). |
| create_folderC | Create a new directory inside ALLOWED_ROOT. |
| delete_itemB | Move a file or directory to cPanel Trash, or permanently delete it. |
| rename_or_moveC | Rename, move, or copy a file or directory on the cPanel server. |
| chmod_itemB | Change file or directory permissions (chmod) on the cPanel server (e.g., 0644 or 0755). |
| zip_itemsB | Compress one or more files/folders into a ZIP archive directly on the server. |
| unzip_itemC | Extract a ZIP archive directly on the cPanel server. |
| cpanel_uapiC | Execute any official cPanel UAPI module function (e.g., Mysql, Cron, SSL, SubDomain, Email). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 10 tools
Most tools target a distinct file operation (list, read, write, delete, chmod, zip/unzip) and are easy to tell apart. Minor overlap exists: write_file can implicitly create paths that create_folder also handles, rename_or_move secretly also copies, and cpanel_uapi's Fileman module can duplicate any of these file operations.
The set is predominantly consistent verb_noun snake_case (list_files, read_file, create_folder, delete_item, chmod_item). Deviations are small: cpanel_uapi is noun-only with no verb, rename_or_move uses a compound verb, and zip_items/unzip_item are asymmetrically pluralized.
Ten tools is a well-scoped size for a file-management server, with each tool covering a distinct primary operation. The single generic UAPI escape hatch avoids bloating the surface with dozens of cPanel-domain tools.
The core file lifecycle is covered: list, read, write, create, delete, move/copy, chmod, and archive round-trip, backed by UAPI for anything else. Gaps are minor (no file search/grep, no append or stat/exists check, no upload/download), but agents can work around them via read/write or UAPI.