An MCP server that gives Claude, GPT, and any AI assistant full control over cPanel hosting. 47 tools across email, DNS, databases, files, SSL, and more.
npx cpanel-mcp
uvx cpanel-mcp
go install github.com/ExpertVagabond/cpanel-mcp/cmd/cpanel-mcp@latest
Every tool maps 1:1 to a cPanel UAPI or WHM API endpoint. No wrappers, no abstraction — direct hosting management.
Create accounts, forwarders, set quotas, list mailboxes
6 toolsAdd, delete, list records and zones across domains
4 toolsList domains, add and remove subdomains
3 toolsList, read, write, and delete files on the server
4 toolsCreate databases, manage users, set privileges
5 toolsList certs, generate CSRs, install certificates
3 toolsAdd, list, and remove scheduled cron jobs
3 toolsCreate backups and list existing snapshots
2 toolsCreate, list, and delete FTP accounts
3 toolsGet and set PHP version per domain
2 toolsCreate, suspend, terminate hosting accounts
5 toolsCreate and list hosting packages
2 toolsCheck status, restart Apache, MySQL, and more
2 toolsHostname, load average, server version info
3 toolsPoint Claude Code, Cursor, or any MCP-compatible client to the cpanel-mcp server with your cPanel credentials.
"Create an email account for support@mydomain.com" or "Set up a cron job to run backups nightly."
The MCP server translates to cPanel UAPI calls, executes them, and returns structured results. No dashboard needed.
Add the server to your MCP client config. Supports cPanel API tokens — no password needed.
{
"mcpServers": {
"cpanel": {
"command": "npx",
"args": ["cpanel-mcp"],
"env": {
"CPANEL_HOST": "your-server.com",
"CPANEL_USERNAME": "your-user",
"CPANEL_API_TOKEN": "your-token"
}
}
}
}
# Required CPANEL_HOST=server.web-hosting.com CPANEL_USERNAME=myuser CPANEL_API_TOKEN=ABCDEF123456 # Optional CPANEL_PORT=2083 CPANEL_VERIFY_SSL=true CPANEL_TIMEOUT=30000