SkillAgentSearch skills...

whmcs-mcp

MCP server for WHMCS automation - AI-powered client management and hosting operations

Install / Use

claude mcp add caioldcarvalho -- npx -y github:caioldcarvalho/whmcs-mcp

If the server publishes to npm under a different name, use that package instead — check the repo README.

About this skill
šŸ”Œ

MCP Server

Model Context Protocol server

Quality Score

75/100

Category

Automation

Supported Platforms

Claude Code
Claude Desktop

Our assessment of whmcs-mcp

whmcs-mcp scores 75/100 on our quality scale, 2515th of 2,765 Automation skills we index.

Its MCP Server is 8.7 KB long, well organised into 46 sections with 8 code examples: a thorough specification that gives an agent plenty to work with.

It has 10 GitHub stars, so there is little community track record yet; judge it on its content.

Substance
29/30
Structure
20/20
Description
12/15
Adoption
4/20
Freshness
11/15

Maintenance, license and trust

  • The repository was last updated about 4 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
  • It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
  • Its trust signals score 90/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

Safety scan

No issues found

Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.

Automated pattern scan on 2026-11-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.

whmcs-mcp compared with similar skills

All 4 of these similar skills score higher than whmcs-mcp; compare them before choosing.

SkillScoreStarsUpdatedFormat
whmcs-mcp (this skill)by caioldcarvalho75104mo agoMCP Server
Agent-Reachby Panniantong100114.5ktodayCLAUDE.md
hyperframesby heygen-com10089.4ktodayCLAUDE.md
rufloby ruvnet10082.4ktodayCLAUDE.md
headroomby headroomlabs-ai10080.7ktodayCLAUDE.md

Frequently asked questions

How do I install whmcs-mcp?
Run claude mcp add caioldcarvalho -- npx -y github:caioldcarvalho/whmcs-mcp. The install tabs above show the steps for each supported agent.
Which AI agents does whmcs-mcp work with?
It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
Is whmcs-mcp safe to use?
Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is MIT-licensed and scores 90/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is whmcs-mcp still maintained?
The repository was last updated about 4 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.

WHMCS MCP Server

MCP (Model Context Protocol) server for full integration with the WHMCS API.

Features

Tickets and Support

  • List tickets with advanced filters
  • View full ticket details (including replies and notes)
  • Create new tickets
  • Add replies to tickets
  • Update ticket properties
  • List support departments
  • View ticket statuses with counts
  • Full ticket statistics

Clients

  • List clients with filters and pagination
  • View full client details (with stats)

Products and Orders

  • List available products/services, with pay type and the price of every enabled billing cycle
  • List client services with billing cycle, recurring amount, and next due date
  • List orders with filters

Invoices

  • List invoices with filters and sorting

General

  • Secure authentication via API credentials
  • Fully typed with TypeScript
  • 34 MCP tools implemented and tested
  • Automatic XML retry when WHMCS cannot encode a JSON response (see below)

WHMCS JSON encoder workaround

Some installations hold records with bytes that are not valid UTF-8. WHMCS then answers any call touching those records with:

Error generating JSON encoded response: Malformed UTF-8 characters, possibly incorrectly encoded

This makes endpoints like GetClientsProducts permanently unusable. WHMCS has no such problem serving XML, so this server retries the same call as XML and parses it into the same shape — the tool succeeds and the caller sees no difference.

Available Tools (34)

Tickets

  1. whmcs_get_tickets - List tickets with filters
  2. whmcs_get_ticket - View a specific ticket with all replies
  3. whmcs_get_ticket_counts - Ticket statistics and counts
  4. whmcs_open_ticket - Create a new ticket
  5. whmcs_add_ticket_reply - Reply to a ticket
  6. whmcs_update_ticket - Update ticket properties

Support

  1. whmcs_get_support_departments - List departments
  2. whmcs_get_support_statuses - View statuses with counts

Clients

  1. whmcs_get_clients - List clients
  2. whmcs_get_clients_details - Full client details
  3. whmcs_get_clients_products - Client products/services with billing cycle, recurring amount, and next due date
  4. whmcs_get_clients_domains - Client domains
  5. whmcs_get_contacts - Client contacts
  6. whmcs_get_emails - Email history

Products, Orders, and Invoices

  1. whmcs_get_products - List products/services with pay type and per-cycle pricing
  2. whmcs_get_orders - List orders
  3. whmcs_get_invoices - List invoices

Billing Analysis

  1. whmcs_find_invoice_gaps - Find missing invoice months per client
  2. whmcs_list_clients_with_pending_invoices - List clients with unpaid/overdue invoices

System and Administration

  1. whmcs_get_activity_log - Activity log (116k+ entries)
  2. whmcs_get_stats - Full statistics (revenue, orders, tickets)
  3. whmcs_get_currencies - Configured currencies
  4. whmcs_get_payment_methods - Active payment methods
  5. whmcs_get_admin_users - Admin users

Combined Invoices

  1. whmcs_get_unpaid_invoices_detailed - Unpaid invoices with client and product details
  2. whmcs_get_all_unpaid_invoices_complete - All unpaid invoices with full details

Service Management

  1. whmcs_module_suspend - Suspend service
  2. whmcs_module_unsuspend - Unsuspend service
  3. whmcs_module_terminate - Terminate service permanently
  4. whmcs_module_create - Provision service

Order Management

  1. whmcs_accept_order - Accept and activate order
  2. whmcs_cancel_order - Cancel order
  3. whmcs_delete_order - Delete order permanently
  4. whmcs_pending_order - Set order as pending

Quick Install

Claude Code (one command)

claude mcp add whmcs \
  -e WHMCS_API_URL=https://your-whmcs.com/includes/api.php \
  -e WHMCS_IDENTIFIER=your_identifier \
  -e WHMCS_SECRET=your_secret \
  -- npx -y whmcs-mcp

Or with admin credentials instead of API keys:

claude mcp add whmcs \
  -e WHMCS_API_URL=https://your-whmcs.com/includes/api.php \
  -e WHMCS_USERNAME=your_admin_user \
  -e WHMCS_PASSWORD=your_admin_password \
  -- npx -y whmcs-mcp

That's it. Run claude mcp list to verify.

Claude Desktop

Add to your claude_desktop_config.json (location by OS):

{
  "mcpServers": {
    "whmcs": {
      "command": "npx",
      "args": ["-y", "whmcs-mcp"],
      "env": {
        "WHMCS_API_URL": "https://your-whmcs.com/includes/api.php",
        "WHMCS_IDENTIFIER": "your_identifier",
        "WHMCS_SECRET": "your_secret"
      }
    }
  }
}

Restart Claude Desktop and the 34 tools will be available.

Alternative: mcp.json file

If you prefer a config file instead of env vars, create mcp.json in the project root:

cp mcp.example.json mcp.json
# edit mcp.json with your credentials

When using admin credentials with username/password, the server automatically hashes the password with MD5 (WHMCS requirement). You can also provide an already MD5-hashed password.

Adding credentials later

If you already added the MCP server but didn't have the credentials yet:

Claude Code: run claude mcp add whmcs ... again with the -e flags -- it overwrites the previous entry.

Claude Desktop: open claude_desktop_config.json and add the env block to the existing whmcs entry:

"env": {
  "WHMCS_API_URL": "https://your-whmcs.com/includes/api.php",
  "WHMCS_IDENTIFIER": "your_identifier",
  "WHMCS_SECRET": "your_secret"
}

Then restart Claude Desktop.

Usage Examples

In Claude Code, you can ask questions like:

Tickets:

  • "List the last 10 open tickets"
  • "Show details for ticket #123456"
  • "How many tickets are awaiting response?"
  • "Which support departments are available?"

Clients:

  • "List the last 5 active clients"
  • "Show details for client ID 123"
  • "How many clients do we have total?"

Products:

  • "List all available products"
  • "Which products are in group 5?"
  • "How much does product 42 cost per month and per year?"
  • "Which services of client 123 renew monthly, and for how much?"

Responses are markdown tables by default, with every field also available in structuredContent. Ask for response_format: "json" when you need those fields inline, and include_full_details: true on whmcs_get_products when you need the description HTML, config options, and custom fields.

Orders and Invoices:

  • "List the last 10 orders"
  • "Show overdue invoices"

Technologies

  • TypeScript
  • MCP SDK (@modelcontextprotocol/sdk)
  • Axios (HTTP client)
  • WHMCS API v1

Project Structure

whmcs-mcp/
ā”œā”€ā”€ src/                # TypeScript source code
│   ā”œā”€ā”€ index.ts        # MCP server (34 tools)
│   ā”œā”€ā”€ config.ts       # Config loader (env vars → mcp.json)
│   ā”œā”€ā”€ whmcs-client.ts # API client (34 methods)
│   ā”œā”€ā”€ products.ts     # Product pricing formatting and payload slimming
│   ā”œā”€ā”€ xml.ts          # XML fallback parser for the WHMCS JSON encoder bug
│   └── types.ts        # TypeScript types
ā”œā”€ā”€ test/               # Unit tests
ā”œā”€ā”€ build/              # Compiled output
ā”œā”€ā”€ mcp.example.json    # Config file template (optional)
└── package.json

Development

# Watch mode (auto rebuild)
npm run dev

# Manual build
npm run build

# Run the MCP server with the default mcp.json
node build/index.js

# Run with a custom config path
node build/index.js --config /absolute/path/mcp.json

# Test client directly
node -e "import('./build/whmcs-client.js').then(async ({WHMCSClient}) => { ... })"

Requirements

  • Node.js >= 18
  • WHMCS account with API enabled
  • WHMCS API Identifier and Secret
  • IP authorized in the WHMCS API

Project Status

  • 34 MCP tools implemented and tested
  • Complete TypeScript client
  • Tested in production with real data
  • Full coverage of main WHMCS endpoints

Completed Implementations

Tickets and Support (8 tools)

  • GetTickets, GetTicket, GetTicketCounts
  • OpenTicket, AddTicketReply, UpdateTicket
  • GetSupportDepartments, GetSupportStatuses

Clients (6 tools)

  • GetClients, GetClientsDetails
  • GetClientsProducts, GetClientsDomains
  • GetContacts, GetEmails

Products and Sales (3 tools)

  • GetProducts, GetOrders, GetInvoices

System and Admin (5 tools)

  • GetActivityLog (116k+ entries tested)
  • GetStats (revenue, orders, tickets)
  • GetCurrencies, GetPaymentMethods
  • GetAdminUsers

Combined Invoices (2 tools)

  • GetUnpaidInvoicesDetailed, GetAllUnpaidInvoicesComplete

Billing Analysis (2 tools)

  • FindInvoiceGaps, ListClientsWithPendingInvoices

Service Management (4 tools)

  • ModuleSuspend, ModuleUnsuspend, ModuleTerminate, ModuleCreate

Order Management (4 tools)

  • AcceptOrder, CancelOrder, DeleteOrder, PendingOrder

License

MIT

Author

Built for WHMCS integration via Model Context Protocol.

Related Skills

View on GitHub
GitHub Stars10
CategoryAutomation
Updated4mo ago
Forks4

Languages

JavaScript

Trust signals

90/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

1 low2 info
whmcs-mcp — MCP Server: Install & Safety Check | SkillAgent