
Obambu cPanel MCP
io.github.RodrigueDev13由 GitHub 账号 RodrigueDev13 发布v0.1.2更新于 Oct 24, 2026
MCP server exposing cPanel UAPI (domains, DNS, email, MySQL, files) as tools for AI assistants.
概览
本地 MCP 服务器,让 AI 助手通过 cPanel UAPI 管理 cPanel 主机账户:域名、DNS、邮箱、MySQL 和文件。
- 可以做什么
- 查看账户:配额与带宽用量、域名与子域名、DNS 区域记录、邮箱账户、MySQL 数据库与用户、主目录下的文件。管理 DNS 记录:新增、编辑和删除域名区域中的记录。管理邮箱账户:创建和删除邮箱。管理 MySQL:创建数据库和用户、授予权限。通过通用调用入口调用其他任意 cPanel UAPI 模块或函数,包括读取和保存单个文件。
- 适用场景
- 适合用自然语言让助手处理 cPanel 主机日常事务:域名切换前检查域名与 DNS、添加 DNS 记录、创建邮箱、为新应用配置数据库,或在迁移时审查账户。
- 运行要求
- 通过 npx 在本地运行,需要 Node.js 18 或更高版本。需要一个可访问 API 令牌的 cPanel 账户,并设置四个环境变量:CPANEL_HOST、CPANEL_USERNAME、CPANEL_API_TOKEN,以及可选的 CPANEL_PORT。需要能访问 cPanel 服务器的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 Obambu cPanel MCP,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
obambu-cpanel-mcp
A Model Context Protocol (MCP) server that lets an AI assistant (Claude, etc.) manage a cPanel hosting account through the cPanel UAPI.
It exposes tools for domains, DNS zones, email accounts, MySQL databases, and file listing, plus a generic escape hatch to call any other UAPI module/function.
Requirements
- Node.js 18+
- A cPanel account with API token access (Security → Manage API Tokens in cPanel)
Getting your cPanel credentials (Obambu example)
The four env vars below can come from any cPanel host, but here's how to find them on Obambu:
CPANEL_HOST— your server hostname, e.g.cp4.obambu.com(or your own domain if cPanel is reachable athttps://yourdomain.com:2083). Find it in your Obambu welcome email, or in your domain's DNS zone: look for anArecord namedcpanel(e.g.cpanel.yourdomain.com) — that same server also answers at itscpX.obambu.comhostname.CPANEL_PORT—00000(cPanel's default HTTPS port). Leave it unless your host says otherwise.CPANEL_USERNAME— your cPanel account username, shown top-right when logged into cPanel, or in the welcome email Obambu sent when the hosting account was created.CPANEL_API_TOKEN— generate one yourself, it is not your cPanel password:- Log into cPanel at
https://<CPANEL_HOST>:00000 - Go to Security → Manage API Tokens
- Click Create, give it a name (e.g.
mcp-server), optionally restrict it to specific ACLs, then Create - Copy the token immediately — cPanel only shows it once
- Log into cPanel at
Using it with an MCP client (npx, recommended)
Published on npm as obambu-cpanel-mcp — no clone or build needed. Add it to your MCP client config (e.g. Claude Desktop / Claude Code):
Running from source
Edit .env with your cPanel details, then:
For local development without building first:
When running from source, point your MCP client at the built entrypoint instead of npx:
Available tools
Usage examples
Once connected, just talk to your assistant in plain language — it picks the right tool:
- "Test the connection to my cPanel account" →
get_account_summary - "What domains and subdomains are on this hosting account?" →
list_domains - "Show me the DNS records for example.com" →
list_dns_records - "Add an A record for shop.example.com pointing to 1.2.3.4" →
add_dns_record - "Create a mailbox [email protected]" →
create_email - "Create a MySQL database and user for my new app, then grant privileges" →
create_database+create_database_user+grant_database_privileges - "List the files in public_html" →
list_files - "Read config/filesystems.php and fix this path" →
cpanel_uapi_callwithmodule: "Fileman", function: "get_file_content"/save_file_content
Because tool calls map directly to UAPI modules, this is also useful for real migration/deployment workflows — e.g. moving a site to a new cPanel account, provisioning a database for a fresh app, or auditing DNS before a domain cutover.
Notes on Fileman
Only list_files (backed by Fileman::list_files) and, through the cpanel_uapi_call escape hatch, get_file_content / save_file_content are known to work reliably for reading and writing individual files. Bulk filesystem operations (extract_files, rename, mkdir, fileop, delete_files, ...) are not guaranteed to be available depending on your cPanel version/provider — test before relying on them, and prefer cPanel's File Manager UI for bulk moves, extraction, and deletion.
Security
- Never commit your
.envfile (it's git-ignored by default). - Scope your cPanel API token as narrowly as your provider allows.
- The
cpanel_uapi_calltool can call any UAPI function available to your account — treat it with the same care as direct API/token access.
License
MIT
来源:README.md,提交 84d3b3c
工具
0版本历史
1- v0.1.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分