Get the FREE Ultimate OpenClaw Setup Guide →

whm

WHM Management Control Panel (MCP) server for managing WHM/cPanel servers

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio hosthobbit-whm-mcp-server node server.js \
  --env PORT="3000" \
  --env API_KEY="your-secret-api-key-here" \
  --env NODE_ENV="development" \
  --env WHM_PORT="2087" \
  --env LOG_LEVEL="info" \
  --env WHM_SERVER="your-whm-server-domain.com" \
  --env WHM_USERNAME="root" \
  --env WHM_API_TOKEN="your-api-token-here"

How to use

This MCP server provides a bridge to WHM (Web Host Manager) functionality via the Model Context Protocol (MCP). It exposes tools for account management, server information, domain and SSL handling, backups, and email management, all accessible through the MCP endpoints using JSON-RPC over SSE. Start the server with a Node.js runtime, ensure your WHM credentials are configured in the .env file, and then connect your AI assistant (such as Claude) to the provided /sse and /messages endpoints to discover and invoke the available tools. The server's tools are organized into categories like Account Management, Server Management, and Domain Management, each exposing specific WHM actions (for example, whm_list_accounts, whm_create_account, whm_server_status, whm_add_domain, whm_delete_domain, and more). The MCP implementation follows the standard JSON-RPC 2.0 format and uses SSE for transport, providing proactive readiness notifications and standard error handling.

How to install

Prerequisites:

  • Node.js installed (v14+ recommended)
  • Access to a WHM server with API token

Installation steps:

  1. Clone the repository git clone https://github.com/your-org/hosthobbit-whm-mcp-server.git

  2. Navigate to the project directory cd hosthobbit-whm-mcp-server

  3. Install dependencies npm install

  4. Create and configure the .env file with WHM and MCP settings

    WHM Server Configuration

    WHM_SERVER=your-server-domain.com WHM_PORT=2087 WHM_USERNAME=root WHM_API_TOKEN=your-api-token-here

    MCP Server Configuration

    PORT=3000 NODE_ENV=development LOG_LEVEL=info

    API Authentication

    API_KEY=your-secret-api-key-here

  5. Start the server npm start

For development mode with auto-reload (if supported by your setup): npm run dev

Additional notes

Tips and caveats:

  • Ensure WHM API tokens have the necessary permissions for the requested actions.
  • Use HTTPS in production to protect API tokens and credentials.
  • Keep .env files secure and do not commit them to version control.
  • If you encounter connection issues, verify WHM_PORT and network accessibility from the MCP server host.
  • Review the available MCP endpoints at /api/* and the docs endpoint at /docs after the server starts.
  • When testing with the example client, you can run: npm run example to verify tooling connectivity.
  • Regularly rotate API tokens and follow WHM/cPanel security best practices.

Related MCP Servers

Sponsor this space

Reach thousands of developers