WHM Management Control Panel (MCP)
@hosthobbit
WHM Management Control Panel (MCP) server for managing WHM/cPanel servers
Overview
What is WHM Management Control Panel (MCP)?
WHM Management Control Panel (MCP) is a Node.js server that integrates with Web Host Manager (WHM) to enable account administration and server management through the Model Context Protocol (MCP). It allows AI assistants to interact with WHM APIs for tasks such as creating cPanel accounts, managing domains, and monitoring server status.
How to use WHM Management Control Panel (MCP)?
Clone the repository, run npm install, and configure a .env file with your WHM server domain, port, username, and API token. Start the server with npm start. For use with AI assistants, add the server’s SSE endpoint to your mcp.json configuration.
Key features of WHM Management Control Panel (MCP)
- Account creation, suspension, and termination
- Server status, load, and service management
- Domain addition, listing, and removal
- SSL certificate and backup management
- Email account management operations
- MCP protocol with SSE and JSON-RPC 2.0
Use cases of WHM Management Control Panel (MCP)
- Automate cPanel account provisioning and suspension
- Monitor server health and restart services
- Manage domains across multiple accounts
- Run SSL and backup operations from an AI assistant
- Integrate WHM administration into chat-based workflows
FAQ from WHM Management Control Panel (MCP)
How do I configure the server?
Set environment variables in .env including WHM_SERVER, WHM_PORT, WHM_USERNAME, WHM_API_TOKEN, and an API_KEY for the MCP server’s own authentication.
What transport does the MCP server use?
It uses HTTP Server-Sent Events (SSE) with a /sse endpoint for persistent connections and a /messages endpoint for request/response exchanges.
What authentication is required?
A WHM API token is needed for WHM commands, and a secret API_KEY must be provided in the .env file to authenticate MCP client requests.
How can I secure the server?
Use HTTPS in production, restrict access by IP address, rotate API tokens regularly, and follow the security best practices described in the README.
How do I test the installation?
Run npm run example to execute a built‑in test client that connects to the MCP server, lists available tools, and runs a sample command.