Paymenter MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Paymenter MCP ServerShow me all unpaid invoices"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Paymenter MCP Server π
πLanguage Selection / Chα»n NgΓ΄n Ngα»― TΓ i Liα»u:
πΊπΈ English (README.md) β’ π»π³ TiαΊΏng Viα»t (README_VI.md)
Enterprise Model Context Protocol (MCP) Server and Agent Skill for Paymenter (v1.2.0+).
Empowers AI Agents (Google Antigravity, Claude Desktop, Cursor, Cline) to autonomously govern cloud hosting infrastructure, provision VPS/servers, orchestrate client billing, automate support helpdesks, and manage wallet credits.
π Table of Contents
Related MCP server: Plesk MCP Server
π Translations / Δa NgΓ΄n Ngα»―
This documentation is available in multiple languages:
Language | Document Link | Description |
πΊπΈ English | Official documentation (Default) | |
π»π³ TiαΊΏng Viα»t | BαΊ£n dα»ch tΓ i liα»u ΔαΊ§y Δα»§ & chi tiαΊΏt 100% |
ποΈ Architecture Overview
ββββββββββββββ
βAgentRequestβ
ββ¬ββββββββββββ
ββ½βββββββββββββββββββββ
βMCP Router (35 Tools)β
ββ¬βββββββββββββββββββββ
ββ½ββββββββββββββββββββββββββββββββ
βLazy Schema Validator (draft-07)β
ββ¬ββββββββββββββββββββββββββββββββ
ββ½βββββββββββββββββββββ
βPaymenter HTTP Clientβ
ββ¬βββββββββββββββββββββ
ββ½ββββββββββββββββββββββββββ
βJSON:API Sideload Hydratorβ
ββ¬ββββββββββββββββββββββββββ
ββ½βββββββββββββ
βAgentResponseβ
βββββββββββββββ π‘ Why Paymenter MCP?
Capability | Manual API Integration | Paymenter MCP Server |
Agent Discovery | Requires feeding 180KB OpenAPI JSON into context (~45k tokens) | Lazy-Loaded Tool Schemas: Zero token bloat at startup (~85% savings) |
Relational Data | Raw JSON:API with scattered | Automatic Hydration: Seamlessly maps nested entities into single coherent objects |
Runtime Portability | Complex dependencies or Docker wrappers | Zero Dependencies: Pure Node.js built-ins ( |
Error Handling | Unformatted 422 HTTP validation crashes | Standard MCP |
Verification | Blind runtime calls | Built-in offline test ratchet suite ( |
β¨ Key Features
β‘ Zero External Dependencies: 100% native Node.js (
http,https,readline). Works out-of-the-box on Node.js 18+ without runningnpm install.π― 35 Specialized Tools: Comprehensive management across 7 business domains (Users, Orders, Services, Invoices, Credits, Tickets, Catalog).
π¦ JSON:API Compound Document Hydration: Automatically resolves references between
data.relationshipsand theincludedarray so LLMs receive rich, context-complete payloads.π§ Modern Antigravity Lazy-Loading: Includes 35 standalone JSON Schema Draft-07 files (
schemas/*.json) and an operationalinstructions.md, preventing context window saturation.π‘οΈ Self-Test Ratchet Suite: Run
node server.js --testanytime to execute 9 offline test suites with guaranteed Exit Code 0.
π§° 35 Tools Catalog
Category | Tool Name | Description |
System & Health |
| Verify API connectivity, latency, auth token validity, and Paymenter server version. |
| Global cross-entity search across Users, Orders, Services, Tickets, and Invoices. | |
| Executive metrics (active services count, unpaid invoices, pending tickets, users). | |
User Management |
| List & filter users ( |
| Fetch single user profile by ID (sideload | |
| Create new client account ( | |
| Update client details, email verification status, or role. | |
| Permanently remove client account from database. | |
| 360Β° client snapshot in 1 call (Profile + Credits + Services + Invoices + Tickets). | |
Orders & Services |
| List client orders ( |
| Retrieve order details and constituent service instances. | |
| Generate new order ( | |
| Cancel and delete order. | |
| List hosting/VPS instances ( | |
| Detailed service configuration, package specs, and expiry date. | |
| Provision new service instance ( | |
| Modify service attributes, expiration, or billing cycle. | |
Lifecycle Actions |
| Lock/suspend active service instance with reason. |
| Re-activate suspended service instance. | |
| Extend expiration date ( | |
| Terminate and mark service as cancelled. | |
Billing & Credits |
| List invoices ( |
| Fetch invoice breakdown and line items ( | |
| Generate new billing invoice ( | |
| Update invoice status or due date. | |
| Delete invoice from billing system. | |
| Add line item to invoice ( | |
| Add or debit client prepaid wallet credit ( | |
Support Desk |
| List tickets ( |
| View ticket discussion thread ( | |
| Open new support ticket ( | |
| Post message reply and optionally update status ( | |
Catalog & Affiliates |
| Browse hosting packages, server specifications, and pricing. |
| Browse product service categories. | |
| Manage referral affiliate codes ( |
π Quickstart & Verification
1. Prerequisites
Node.js: v18.0.0 or higher.
Paymenter Instance: v1.2.0 or higher with an API Bearer token.
2. Environment Variables
export PAYMENTER_URL="https://billing.yourdomain.com/api"
export PAYMENTER_API_TOKEN="your_paymenter_api_bearer_token_here"3. Run Built-in Verification Suite
node server.js --testOutput Evidence:
=== Paymenter MCP Server Self-Test Suite ===
1. Testing method "initialize"... PASSED
2. Testing method "ping"... PASSED
3. Testing notification "notifications/initialized"... PASSED
4. Testing method "tools/list"... PASSED (Exactly 35 tools registered)
5. Verifying schema structure of all 35 tools... PASSED
6. Testing "tools/call" for "paymenter_health_check"... PASSED
7. Testing "tools/call" error handling for non-existent tool... PASSED
8. Testing "tools/call" error handling for missing arguments... PASSED
9. Testing JSON:API compound document hydration... PASSED
>>> All 9 MCP Self-Tests Passed Successfully! Exit Code 0. <<<π Client Configurations
Google Antigravity CLI / IDE
Add to your ~/.gemini/antigravity-cli/settings.json (or project .agents/settings.json):
{
"mcpServers": {
"paymenter": {
"command": "node",
"args": ["/path/to/paymenter-mcp/server.js"],
"env": {
"PAYMENTER_URL": "https://billing.yourdomain.com/api",
"PAYMENTER_API_TOKEN": "your_api_token"
}
}
}
}Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"paymenter": {
"command": "node",
"args": ["/path/to/paymenter-mcp/server.js"],
"env": {
"PAYMENTER_URL": "https://billing.yourdomain.com/api",
"PAYMENTER_API_TOKEN": "your_api_token"
}
}
}
}Cursor IDE
Add to .cursor/mcp.json:
{
"mcpServers": {
"paymenter": {
"command": "node",
"args": ["/path/to/paymenter-mcp/server.js"],
"env": {
"PAYMENTER_URL": "https://billing.yourdomain.com/api",
"PAYMENTER_API_TOKEN": "your_api_token"
}
}
}
}π¦ JSON:API Sideload Hydration
Paymenter utilizes the JSON:API v1.0 standard where related objects reside in an included array. Paymenter MCP Server intercepts and hydrates these relationships client-side:
// Example: Querying service with user and order relations
// Raw JSON:API separates data.relationships and included array.
// Paymenter MCP Server returns unified, hydrated data:
{
"id": "104",
"type": "services",
"attributes": {
"status": "active",
"expires_at": "2027-01-01T00:00:00Z"
},
"hydrated_relationships": {
"user": {
"id": "42",
"email": "customer@example.com",
"first_name": "Jane"
},
"order": {
"id": "89",
"currency_code": "USD"
}
}
}β Frequently Asked Questions (FAQ)
Q1: What version of Paymenter is supported?
A: Paymenter MCP Server officially supports Paymenter v1.2.0 and higher, which features the modern Laravel JSON:API administrative backend.
Q2: Does this work if Paymenter is running in Docker?
A: Yes! As long as your Paymenter container exposes its web port (e.g. http://localhost:8000/api or https://billing.domain.com/api), the MCP server will interact seamlessly via standard HTTP.
Q3: What API token permissions are required?
A: The Bearer token should be generated with Administrator privileges inside the Paymenter admin control panel to access administrative routes (/v1/admin/*).
Q4: Why is this written in Zero-Dependency Node.js?
A: To maximize portability, reliability, and speed. AI coding assistants (Antigravity CLI, Claude Desktop, Cursor) can launch server.js instantly without risking broken dependencies or needing an active internet connection to run npm install.
Q5: Can I use this alongside the Antigravity Agent Skill?
A: Yes! The included skill/ directory contains SKILL.md and reference guides designed specifically for Antigravity, providing deep domain knowledge while the MCP server executes the API operations.
Q6: How are rate limits handled?
A: Paymenter MCP Server gracefully handles HTTP 429 Too Many Requests responses, returning formatted error diagnostics with retry suggestions directly to the calling LLM.
π Repository Structure
paymenter-mcp/
βββ package.json # Node.js project manifest (zero dependencies)
βββ server.js # Standalone MCP server (JSON-RPC 2.0 stdio, 35 tools)
βββ schemas/ # Modern Antigravity Lazy-Loaded JSON schemas
β βββ instructions.md # Operational guidelines & relationship rules
β βββ paymenter_health_check.json
β βββ paymenter_list_users.json
β βββ ... (all 35 draft-07 schemas)
βββ skill/ # Antigravity agent skill module
β βββ SKILL.md # Comprehensive agent skill guide
β βββ references/
β β βββ api-endpoints.md # 22 endpoints technical reference
β β βββ jsonapi-conventions.md # JSON:API v1.0 specifications
β βββ scripts/
β βββ paymenter_client.py # Standalone Python client SDK
βββ .github/ # GitHub templates
β βββ ISSUE_TEMPLATE/
β βββ bug_report.md
β βββ feature_request.md
βββ CONTRIBUTING.md # Contribution guidelines
βββ .gitignore
βββ LICENSE # MIT License
βββ README.md # Documentation & user guideπ€ Contributing & Community
Contributions are welcomed! Please read our Contributing Guidelines and check out our Bug Report and Feature Request templates.
If you find this project useful, please give it a Star β on GitHub to support open-source AI infrastructure!
π License
This repository is licensed under the MIT License.
Copyright (c) 2026 Do Ngoc Anh (dongocanh0501).
This server cannot be deployed
Maintenance
Related MCP Connectors
Backend for AI agents: one batched tool over ~668 actions (hosting, storage, auth, payments).
- mcp-serverOAuthcom.make
Give your AI agents the tools to build, manage, and run automation workflows.
Backend platform for AI agents: one agentstack.execute tool runs batched steps over +700 actions (hosting, storage, auth, payments, CRM, app builder).
The agent-native cloud: database, functions, AI, storage, computers. 50 tools, one API key.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Coolify infrastructure including servers, applications, databases, deployments, and 80+ one-click services through 98 comprehensive tools for both cloud and self-hosted instances.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to manage Plesk hosting environments through a set of standardized tools for security, health monitoring, DNS, email, backups, and service management.MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Cloudways infrastructure, including servers, applications, monitoring, and security via the Cloudways API.-
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to administrate WHMCS installations through the External API, providing ~50 tools for clients, billing, orders, services, domains, support, and aggregators with safety features and governance.45 npm3ISC