
MCP服务器,通过AI助手管理cPanel托管——DNS、电子邮件、数据库、域名、SSL、PHP、cron、安全、备份等(164个工具)。
概览
一个全面的模型上下文协议(MCP)服务器,通过AI助手管理cPanel托管账户。直接连接cPanel的UAPI和API2,支持自然语言管理网络托管——DNS、DNSSEC、电子邮件(带DKIM/SPF)、数据库、域名、SSL/AutoSSL、PHP、cron作业、安全(WAF、IP拦截器、病毒扫描、双重认证)、Git部署、Node.js/Python应用等。 - ——检查磁盘空间的消耗和限制 - 数据库、用户和权限 - - 版本和限制详情 - - 每个数据库的授权/撤销 - 针对数据库、用户和权限 - 每个数据库 - — 创建、删除、更改密码、设定配额、列出磁盘使用情况 - — 创建、列出和删除邮件转发规则 - — 创建、列出并删除外出/自动回复邮件 - — 查看邮件域配置 - — 启用、禁用、验证并确保所有域的密钥存在 - — 验证并安装/更新SPF记录 - — 验证反向DNS记录 - — 列出、添加/更新、删除,...
概述(AI 翻译)
一个全面的模型上下文协议(MCP)服务器,通过AI助手管理cPanel托管账户。直接连接cPanel的UAPI和API2,支持自然语言管理网络托管——DNS、DNSSEC、电子邮件(带DKIM/SPF)、数据库、域名、SSL/AutoSSL、PHP、cron作业、安全(WAF、IP拦截器、病毒扫描、双重认证)、Git部署、Node.js/Python应用等。
特色
文件管理
- 在您的主机账户中列出、创建、阅读、编辑和删除文件
磁盘使用
- 账户配额信息 — 检查磁盘空间的消耗和限制
MySQL 数据库管理
- 完整的数据库、用户和权限 CRUD
- 服务器信息 — 版本及限制详情
- 特权管理 — 每个数据库的授予/撤销
PostgreSQL 数据库管理
- 完整的数据库、用户和权限 CRUD
- 每个数据库授予/撤销访问
电子邮件管理
- 电子邮件账户 — 创建、删除、更改密码、设置配额、列出磁盘使用情况
- 转发器 — 创建、列出和删除邮件转发规则
- 自动回复器 — 创建、列出并删除外出/自动回复消息
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
cPanel MCP Server
A comprehensive Model Context Protocol (MCP) server for managing cPanel hosting accounts through AI assistants. Connects directly to cPanel’s UAPI and API2, enabling natural language management of web hosting — DNS, DNSSEC, email (with DKIM/SPF), databases, domains, SSL/AutoSSL, PHP, cron jobs, security (WAF, IP blocker, virus scanner, 2FA), Git deployment, Node.js/Python apps, and more.
Features
File Management
- List, create, read, edit, and delete files in your hosting account
Disk Usage
- Account quota info — check disk space consumption and limits
MySQL Database Management
- Full CRUD for databases, users, and privileges
- Server info — version and restriction details
- Privilege management — grant/revoke per database
PostgreSQL Database Management
- Full CRUD for databases, users, and privileges
- Grant/revoke access per database
Email Management
- Email accounts — create, delete, change password, set quotas, list with disk usage
- Forwarders — create, list, and delete email forwarding rules
- Autoresponders — create, list, and delete out-of-office / autoresponse messages
- Email routing — view mail domain configuration
Email Authentication (DKIM/SPF)
- DKIM — enable, disable, validate, and ensure keys exist for all domains
- SPF — validate and install/update SPF records
- PTR — validate reverse DNS records
Email Filters & Spam
- Email filters — list, add/update, delete, and trace/test filters
- SpamAssassin — enable/disable, configure spam box, get settings, clear spam
- Greylisting — enable/disable for all domains
DNS Management
- Get zone records for any domain (via API2 ZoneEdit)
- Add, edit, and delete DNS records (A, AAAA, CNAME, MX, TXT, SRV, CAA)
DNSSEC
- Enable/disable DNSSEC for domains
- DS records — fetch for registrar configuration
- DNSKEY export — export zone keys
- NSEC3 — enable/disable (prevents zone enumeration)
Domain Management
- List all domains — main, addon, subdomains, and parked
- Addon domains — create and delete
- Subdomains — create and delete with custom document roots
- Parked domains (aliases) — park and unpark
- Redirects — create and delete URL redirects (301/302)
Cron Job Management
- List, create, edit, and delete cron jobs (via API2)
- Notification email — get and set the cron notification address
PHP Management
- List installed PHP versions available on the server
- Get/set PHP version per domain
- PHP INI directives — read and modify (memory_limit, upload_max_filesize, etc.)
SSL/TLS Management
- List certificates and SSL status per domain
- Install and delete SSL certificates
- Generate CSR for certificate requests
- AutoSSL — check status and trigger renewal
- List private keys
Security
- IP Blocker — list, block, and unblock IP addresses/ranges
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"cpanel": {
"command": "node",
"args": ["/path/to/cPanel-MCP-Server/build/index.js"],
"env": {
"CPANEL_USERNAME": "your_cpanel_username",
"CPANEL_API_TOKEN": "your_cpanel_api_token",
"CPANEL_SERVER_URL": "https://your-domain.com:2083"
}
}
}
}