whmcs-mcp-server
MCP server to help manage a WHMCS installation.
README
WHMCS MCP Server
A Model Context Protocol (MCP) server for managing WHMCS (Web Host Manager Complete Solution) installations. This server provides comprehensive tools for managing clients, products, billing, support tickets, domains, and more through the WHMCS API.
<a href="https://glama.ai/mcp/servers/@scarecr0w12/whmcs-mcp-server"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@scarecr0w12/whmcs-mcp-server/badge" /> </a>
📚 Documentation
- Configuration Guide - Detailed setup and configuration instructions
- API Reference - Complete tool documentation with parameters
- Docker Guide - Container deployment instructions
- Changelog - Version history and release notes
- Contributing - Guidelines for contributors
✨ Features
🤖 AI-Powered Prompts
Pre-built prompt templates for common WHMCS workflows:
- Client Onboarding - Guided new client setup
- Ticket Response - Generate professional support responses
- Revenue Report - Comprehensive financial analysis
- Client Health Check - Account status assessment
- Bulk Invoice Reminder - Automated payment follow-up
- Domain Expiry Audit - Proactive domain management
- New Product Setup - Product configuration guidance
- Fraud Investigation - Security analysis workflow
📊 Live Resources
Real-time data endpoints for instant access:
- System statistics (
whmcs://stats) - Products catalog (
whmcs://products) - Support departments (
whmcs://support/departments) - Payment methods (
whmcs://payment-methods) - Currencies (
whmcs://currencies) - Servers (
whmcs://servers) - TLD pricing (
whmcs://tld-pricing) - Promotions (
whmcs://promotions) - Ticket statuses (
whmcs://support/statuses) - Admin to-do items (
whmcs://admin/todo)
Client Management
- List, search, and filter clients
- Get detailed client information
- Create, update, and delete clients
- View client products and services
- View client domains
Product Management
- List available products
- Get product groups
- View product pricing
Billing & Invoices
- List and filter invoices
- Create and update invoices
- Add payments to invoices
- Apply credits
- View transactions
Support Tickets
- List and filter tickets
- View ticket details and replies
- Create new tickets
- Reply to tickets
- Update ticket status
- Get support departments and statuses
Domain Management
- Register, transfer, and renew domains
- Manage nameservers
- Lock/unlock domains
- Get TLD pricing
- View WHOIS information
Order Management
- List and filter orders
- Accept, cancel, or delete orders
- Mark orders as fraudulent
- Set orders to pending
Server & Module Management
- List configured servers
- Create/provision services
- Suspend/unsuspend services
- Terminate services
- Change service passwords
System Tools
- Get system statistics
- View admin users
- Get payment methods and currencies
- Activity logging
- Email templates
- To-do items
Additional Features
- Affiliate management
- Promotion/coupon management
- Quote management
🔧 Installation
Option 1: Docker (Recommended)
docker run -it --rm \
-e WHMCS_API_URL="https://billing.example.com/" \
-e WHMCS_API_IDENTIFIER="your-identifier" \
-e WHMCS_API_SECRET="your-secret" \
ghcr.io/scarecr0w12/whmcs-mcp-tool:latest
See Docker Guide for detailed Docker deployment instructions.
Option 2: From Source
-
Clone this repository:
git clone https://github.com/scarecr0w12/whmcs-mcp-tool.git cd whmcs-mcp-tool -
Install dependencies:
npm install -
Build the project:
npm run build -
Configure your WHMCS credentials:
cp .env.example .env # Edit .env with your WHMCS API credentials
⚙️ Configuration
For detailed configuration instructions, see the Configuration Guide.
Quick Start
- Create API credentials in WHMCS: Setup → Staff Management → API Credentials
- Copy the environment template:
cp .env.example .env - Edit
.envwith your WHMCS credentials
Environment Variables
Set the following environment variables:
| Variable | Required | Description |
|---|---|---|
WHMCS_API_URL |
Yes | Your WHMCS installation URL (e.g., https://billing.example.com/) |
WHMCS_API_IDENTIFIER |
Yes | API credential identifier |
WHMCS_API_SECRET |
Yes | API credential secret |
WHMCS_ACCESS_KEY |
No | Optional API access key for additional security |
API Access Key (Optional)
For additional security, you can configure an API Access Key:
- In WHMCS admin, go to Setup > General Settings > Security
- Set the API Access Key field
- Add this key to your
WHMCS_ACCESS_KEYenvironment variable
🚀 Usage
With VS Code
The server can be used directly with VS Code's MCP support. The configuration is already set up in .vscode/mcp.json.
- Set your environment variables
- Build the project:
npm run build - The MCP server will be available in VS Code
Running Manually
# Development mode with auto-reload
npm run dev
# Production mode
npm run build
npm start
🛠️ Available Tools
For complete parameter documentation, see the API Reference.
Client Tools
whmcs_get_clients- Get list of clientswhmcs_get_client_details- Get detailed client informationwhmcs_add_client- Create a new clientwhmcs_update_client- Update an existing clientwhmcs_delete_client- Delete a clientwhmcs_get_client_products- Get client's products/serviceswhmcs_get_client_domains- Get client's domains
Product Tools
whmcs_get_products- Get available productswhmcs_get_product_groups- Get product groups
Invoice Tools
whmcs_get_invoices- Get invoiceswhmcs_get_invoice- Get invoice detailswhmcs_create_invoice- Create an invoicewhmcs_update_invoice- Update an invoicewhmcs_add_payment- Add payment to invoicewhmcs_apply_credit- Apply credit to invoicewhmcs_get_transactions- Get transactions
Ticket Tools
whmcs_get_tickets- Get support ticketswhmcs_get_ticket- Get ticket detailswhmcs_open_ticket- Create a new ticketwhmcs_add_ticket_reply- Reply to a ticketwhmcs_update_ticket- Update ticket propertieswhmcs_delete_ticket- Delete a ticketwhmcs_get_support_departments- Get support departmentswhmcs_get_support_statuses- Get ticket statuses
Domain Tools
whmcs_register_domain- Register a domainwhmcs_transfer_domain- Transfer a domainwhmcs_renew_domain- Renew a domainwhmcs_get_domain_whois- Get WHOIS informationwhmcs_get_domain_nameservers- Get nameserverswhmcs_update_domain_nameservers- Update nameserverswhmcs_get_domain_lock_status- Get lock statuswhmcs_update_domain_lock_status- Update lock statuswhmcs_get_tld_pricing- Get TLD pricing
Order Tools
whmcs_get_orders- Get orderswhmcs_accept_order- Accept an orderwhmcs_cancel_order- Cancel an orderwhmcs_delete_order- Delete an orderwhmcs_fraud_order- Mark as fraudulentwhmcs_pending_order- Set to pending
Server & Module Tools
whmcs_get_servers- Get configured serverswhmcs_module_create- Create/provision servicewhmcs_module_suspend- Suspend servicewhmcs_module_unsuspend- Unsuspend servicewhmcs_module_terminate- Terminate servicewhmcs_module_change_password- Change service password
System Tools
whmcs_get_stats- Get system statisticswhmcs_get_admin_users- Get admin userswhmcs_get_payment_methods- Get payment methodswhmcs_get_currencies- Get currencieswhmcs_get_activity_log- Get activity logwhmcs_log_activity- Log an activitywhmcs_get_email_templates- Get email templateswhmcs_send_email- Send an emailwhmcs_get_todo_items- Get to-do items
Affiliate Tools
whmcs_get_affiliates- Get affiliateswhmcs_activate_affiliate- Activate an affiliate
Promotion Tools
whmcs_get_promotions- Get promotions/coupons
Quote Tools
whmcs_get_quotes- Get quoteswhmcs_create_quote- Create a quotewhmcs_accept_quote- Accept a quotewhmcs_delete_quote- Delete a quote
🔒 Security Considerations
- Never commit your
.envfile - It contains sensitive API credentials - Use API Access Keys - For additional security layer
- IP Restrictions - Configure IP restrictions in WHMCS for API access
- Minimal Permissions - Only enable the API functions you need
- HTTPS Only - Always use HTTPS for your WHMCS installation
🧪 Testing
Run the test script to verify your WHMCS connection:
npx tsx src/test.ts
💻 Development
See CONTRIBUTING.md for development guidelines.
# Install dependencies
npm install
# Run in development mode
npm run dev
# Build for production
npm run build
# Watch mode for development
npm run watch
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🔗 Links
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。