adaptis-mcp-server
Click on "Install 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., "@adaptis-mcp-serverCreate a payment link for 150 MYR for invoice INV-2044"
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.
Adaptis MCP Server
A local Model Context Protocol (MCP) server for the Adaptis (MEG) payment gateway. It lets AI agents (Claude Desktop, Claude Code, Cursor, and any other MCP client) help you integrate with and operate against the Adaptis APIs using your own merchant credentials.
The server runs locally on your machine (stdio transport). Your Merchant Key never leaves your computer except inside signed requests sent directly to the Adaptis gateway — exactly like your own backend integration would.
Features
Gateway actions (call the Adaptis APIs directly):
Tool | Endpoint | Purpose |
|
| Create single-use or reusable payment links |
|
| Check the latest transaction status (max 7×/day per transaction, within 10 days) |
|
| Refund a transaction (disabled by default — see below) |
|
| Check payment option availability |
|
| Host-to-host actions: Capture (21), token charges, and more |
Integration helpers (no network — generate signed artifacts):
Tool | Purpose |
| Signed auto-submit HTML form for |
| Signed payload for |
| Compute/debug the HMAC-SHA512 signature for any flow |
| Verify backend (BackendURL) callback signatures |
Reference lookups (offline):
Tool | Purpose |
| Payment method IDs (cards, FPX banks, eWallets) |
| TransactionStatusId (1000–2100) and RefundStatusId (3100–3900) |
| 6-digit error code mapping + health check error codes |
| Sandbox test cards and approve/decline behaviours |
Related MCP server: btcpay-mcp
Prerequisites
Node.js 18+
Adaptis Merchant Code and Merchant Key (contact Adaptis support for sandbox credentials)
Installation
git clone https://github.com/fredericktvf/adaptis-mcp-server.git
cd adaptis-mcp-server
npm install
npm run buildConfiguration
Variable | Required | Default | Description |
| ✓ | – | Your merchant code |
| ✓ | – | Your merchant key (keep secret) |
| – |
|
|
| – |
| Set |
| – |
| Comma-separated tool whitelist (least privilege) |
| – |
| Gateway request timeout (ms) |
Claude Desktop / Claude Code
Add to claude_desktop_config.json (Settings → Developer → Edit Config), or .mcp.json for Claude Code:
{
"mcpServers": {
"adaptis": {
"command": "node",
"args": ["/path/to/adaptis-mcp-server/dist/index.js"],
"env": {
"ADAPTIS_MERCHANT_CODE": "MMXXXXXX",
"ADAPTIS_MERCHANT_KEY": "<<YOUR_MERCHANT_KEY>>",
"ADAPTIS_ENVIRONMENT": "sandbox",
"ADAPTIS_ENABLE_REFUNDS": "false",
"ADAPTIS_TOOLS": "all"
}
}
}
}Cursor
Settings → Tools & MCP → Add MCP Server, using the same JSON block.
Example production config (least privilege)
"env": {
"ADAPTIS_MERCHANT_CODE": "MMXXXXXX",
"ADAPTIS_MERCHANT_KEY": "<<LIVE_KEY>>",
"ADAPTIS_ENVIRONMENT": "production",
"ADAPTIS_TOOLS": "adaptis_requery_transaction,adaptis_check_gateway_health,adaptis_lookup_status_codes,adaptis_lookup_error_codes"
}Usage examples
Ask your AI client things like:
"Create a MYR 150 payment link for invoice INV-2044, expiring end of this month, and email it to the customer."
"Requery transaction ADP20260712093000 for 1.00 — did it go through?"
"Why am I getting error 100004 on my requery call? Here's my base string..."
"Generate the hosted checkout form for a RM 25 test payment."
"Which payment methods are down right now?"
"Verify this backend callback: TransId TR2529..., RefNo ..., Amount 1.00, Status 1, Signature ..."
Security notes
Sandbox by default. Production must be enabled explicitly.
Refunds are opt-in.
adaptis_refund_transactionmoves money and only exists whenADAPTIS_ENABLE_REFUNDS=true. Your AI client will additionally ask for confirmation (the tool is marked destructive).Tool whitelisting. Use
ADAPTIS_TOOLSto expose only what you need, following least privilege.Merchant key masking. Debug outputs (raw signature base strings) mask your merchant key.
Card data. Merchant Hosted and card-based Server Initiate flows carry PANs. Use sandbox test cards for integration; real card handling requires PCI DSS compliance.
Callbacks. Always verify callback signatures (
adaptis_verify_callback_signature), replyRECEIVEOK, and requery to independently confirm before fulfilling orders.
Signature formulas (reference)
Flow | Raw signature (then HMAC-SHA512 with MerchantKey) |
Adaptis Hosted | Key + Code + RefNo + Amount + Currency |
Merchant Hosted | Key + Code + RefNo + Amount + Currency + CardNumber + CardExpiryYear + CardExpiryMonth + CardCVV |
Server Initiate (21 Capture) | Key + Code + RefNo + TransId + Amount + Currency |
Server Initiate (others) | same as Merchant Hosted |
Payment Link | Key + Code + ReferenceNumber + Amount + Currency + ExpiryDate (digits, if provided) |
Requery | Key + Code + RefNo + Amount |
Refund | Key + Code + IpayId + RefNo + RefundAmount + RefundCurrency |
Gateway Health | Key + Code |
Backend Callback | Key + Code + TransId + RefNo + Amount + Currency + Status |
Amounts are stripped of dots/commas before signing (1.00 → 100).
Troubleshooting
"Unable to reach Adaptis gateway: fetch failed" — but the gateway works from your browser/PowerShell:
Node's fetch may be trying an IPv6 route your network can't complete, or a corporate proxy is intercepting TLS. Add these lines to the env block of your MCP config, then fully restart your MCP client:
"NODE_OPTIONS": "--dns-result-order=ipv4first",
"NODE_TLS_REJECT_UNAUTHORIZED": "0"NODE_OPTIONS: --dns-result-order=ipv4first— fixes IPv6-preference failures (most common on Windows).NODE_TLS_REJECT_UNAUTHORIZED: "0"— accepts the proxy's self-signed certificate when a corporate proxy/antivirus performs TLS inspection. ⚠️ This disables TLS certificate validation for the MCP server process, which weakens security. PreferNODE_EXTRA_CA_CERTSpointing at your proxy's CA certificate where possible, and only keepNODE_TLS_REJECT_UNAUTHORIZED=0on machines behind a trusted corporate proxy.
Try NODE_OPTIONS alone first; add NODE_TLS_REJECT_UNAUTHORIZED only if you still see certificate errors in the [cause: ...] detail. A firewall blocking node.exe produces ECONNREFUSED/timeouts instead.
"Invalid Request (BillingAddress... is required)" on Adaptis Hosted / Merchant Hosted — the live gateway requires BillingAddressLine1, BillingAddressState, BillingAddressCity, BillingAddressPostalCode, and BillingAddressCountry on payment requests. The checkout tools enforce these as required inputs.
"100002 Invalid Request (Invalid PaymentType)" on Payment Link — PaymentType accepts only Card, EWallet, OnlineBanking, Instalment (comma-separated). "PaymentType Unavailable" means that category is not enabled for your merchant profile.
Empty page after payment redirect — the ResponseURL/BackendURL sent in the request must be the merchant's real endpoints. Never use placeholder/demo URLs.
Config changes don't take effect — MCP servers launch once at client startup. Fully quit the app (on Windows: system tray → right-click → Quit), then relaunch. Closing the window is not enough.
Error 100004 Signature Failed — use adaptis_generate_signature to compare base strings. The most common mistakes: amount not stripped of separators (1.00 must sign as 100), or wrong field order.
Sandbox returns 503 — the sandbox gateway (pay.meglabox.com) is only available during business hours (MYT). Production is 24/7.
Development
npm run dev # run from source with tsx
npm run build # compile to dist/
npx @modelcontextprotocol/inspector node dist/index.js # interactive testingSupport
Refer to the Adaptis Developer Portal (/developer/simulator/meg/) for the interactive API console, test data, and the full API reference.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceMCP server for AgentPay — the payment gateway for autonomous AI agents. Fund a wallet once, give your agent the key, and it discovers, provisions, and pays for tool APIs on its own. One key, every tool.Last updated1121MIT
- AlicenseAqualityFmaintenanceAn MCP server that enables AI agents to manage merchant payment processing through the BTCPay Server Greenfield REST API. It supports tools for creating invoices, managing stores, tracking payments, and performing Lightning Network operations.Last updated21MIT

PayLink MCP Serverofficial
Flicense-qualityDmaintenanceOpen-source MCP server that streamlines payment integration for AI agents and financial apps in Africa, providing unified tools for providers like M-Pesa.Last updated1- Alicense-qualityBmaintenanceA remote MCP server that lets any AI agent accept payments in India via UPI, cards, netbanking, and wallets through Razorpay Payment Links. Bring your own credentials, stateless, no funds touched.Last updatedMIT
Related MCP Connectors
Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server exposing the Backtest360 engine API as tools for AI agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/fredericktvf/adaptis-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server