paymongo-mcp
This server is a PayMongo MCP integration that lets an AI assistant accept and manage Philippine online payments (GCash, GrabPay, cards, etc.) through 24 tools.
Payments: create and retrieve payment intents, create and retrieve GCash/GrabPay sources, charge sources to create payments, and list payments with cursor pagination.
Refunds: create refunds (full or partial) and retrieve/list refunds.
Checkout & Links: create hosted checkout sessions, create/get Payment Links, and archive or unarchive links.
Webhooks: register, list, get, update webhooks, enable/disable them, and locally verify PayMongo webhook signatures with replay protection.
Payment Methods & Customers: create and retrieve payment methods (e.g. cards), and create, get, and list customers.
Safety & configuration: read-only tools always work; money-moving tools are blocked when using a live key unless
PAYMONGO_ALLOW_LIVE=trueis set, and amounts are specified in centavos.
Allows creating GCash/GrabPay sources, processing payments, refunds, and managing checkout sessions through the PayMongo payment gateway for the Philippines.
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., "@paymongo-mcp Create a payment intent for 100 PHP"
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.
PayMongo MCP — accept online payments in the Philippines from an AI assistant
If you were looking for a way to take GCash, GrabPay or card payments from Claude or another AI assistant, send a customer a payment link, refund an order or wire up webhooks without writing gateway code, this is it. 24 tools cover payment intents, sources, payments, refunds, checkout sessions, payment links, webhooks, payment methods and customers over the PayMongo API via Basic Auth.
Tools (24)
Payments
Tool | Description |
| Create a payment intent |
| Get a payment intent by ID |
| Create a GCash/GrabPay source |
| Get a source by ID |
| Charge a source to create a payment |
| List payments (cursor pagination) |
Refunds
Tool | Description |
| Refund a payment |
| Get a refund by ID |
| List refunds (cursor pagination) |
Checkout & Links
Tool | Description |
| Create a hosted checkout session |
| Get a checkout session by ID |
| Create a no-code Payment Link |
| Get a link by ID or reference number |
| Archive / unarchive a link |
Webhooks
Tool | Description |
| Register a webhook endpoint |
| List webhooks |
| Get a webhook by ID |
| Update URL/events, enable/disable |
| Verify the |
Payment Methods & Customers
Tool | Description |
| Create a payment method (e.g. a card) |
| Get a payment method by ID |
| Create a customer |
| Get a customer by ID |
| List customers (cursor pagination) |
Related MCP server: vnpay-mcp
Quick Start
{
"mcpServers": {
"paymongo": {
"command": "npx",
"args": ["-y", "@theyahia/paymongo-mcp"],
"env": {
"PAYMONGO_SECRET_KEY": "<YOUR_PAYMONGO_SECRET_KEY>"
}
}
}
}Environment Variables
Variable | Required | Description |
| Yes | Secret API key from the PayMongo dashboard ( |
| No | Must be |
The server reads the secret key lazily — it can start and list its tools without a key set, so a missing key surfaces as a tool-call error rather than a startup crash.
Amounts
All amounts are integers in centavos (the smallest currency unit):
10000 = ₱100.00. PayMongo's minimum is typically 2000 (₱20.00) and varies by
method.
Safety: test vs live keys
PayMongo keys are either test (sk_test_…) or live (sk_live_…). To
prevent an AI agent from accidentally moving real money, the money-moving tools
(create_payment, create_refund, create_payment_intent, create_source,
create_checkout, create_link, create_payment_method) are refused when a
live key is configured unless you opt in with:
PAYMONGO_ALLOW_LIVE=trueRead-only tools (get_*, list_*) always work. Tools are also tagged with MCP
annotations (readOnlyHint / destructiveHint) so clients can auto-approve
reads and warn on destructive actions.
Webhooks
Create a webhook to receive async payment events (e.g. source.chargeable,
payment.paid):
create_webhook { "url": "https://your.app/paymongo/hook", "events": ["payment.paid", "source.chargeable"] }The response includes a per-webhook signing secret (whsk_…). Store it. When
PayMongo POSTs an event, verify the Paymongo-Signature header before
trusting the body — pass the raw request body, the header value, and the signing
secret to verify_webhook_signature:
verify_webhook_signature {
"payload": "<raw request body, exactly as received>",
"signature_header": "t=...,te=...,li=...",
"webhook_signing_secret": "whsk_...",
"mode": "test"
}It computes HMAC-SHA256(timestamp + "." + body) and compares it (timing-safe)
against the te (test) or li (live) segment. This tool runs entirely locally
and needs no API key. Pass tolerance_seconds to also reject stale timestamps
(replay protection).
Demo Prompts
"Create a payment intent for 100 PHP"
"Create a GCash source for 50 PHP with success/fail redirect URLs"
"Create a payment link for 250 PHP for 'Consulting fee'"
"List recent payments"
"Refund 25 PHP from payment pay_123"
"Register a webhook at https://example.com/hook for payment.paid"
Development
npm ci
npm run typecheck # tsc --noEmit
npm run build # tsc -> dist/
npm test # vitest
npm run dev # run from source with tsxLicense
MIT
Available Tools
24 toolsarchive_linkArchive / Unarchive Payment LinkBIdempotent
Archive or unarchive a Payment Link.
Inputs: link_id (required), archived.
create_checkoutCreate Checkout SessionADestructive
Create a hosted checkout session (returns a checkout URL).
Inputs: amount (required), cancel_url (required), success_url (required), currency, +2 more.
create_customerCreate CustomerA
Create a customer record (stores PII for reuse across payments).
Inputs: email (required), phone (required), last_name (required), first_name (required), +1 more.
create_linkCreate Payment LinkADestructive
Create a PayMongo Payment Link (no-code shareable checkout). Returns a checkout_url and reference_number.
Inputs: amount (required), description (required), remarks, currency.
create_paymentCreate PaymentADestructive
Charge a chargeable source to create a payment (moves money).
Inputs: amount (required), source_id (required), currency, description.
create_payment_intentCreate Payment IntentADestructive
Create a PayMongo payment intent — the object that tracks a payment through its lifecycle.
Inputs: amount (required), currency, description, payment_method_allowed.
create_payment_methodCreate Payment MethodA
Create a payment method (e.g. a card) to attach to a payment intent. Handle card data with care.
Inputs: type, billing, details.
create_refundCreate RefundADestructive
Refund a payment, fully or partially (moves money back to the customer).
Inputs: amount (required), reason (required), payment_id (required).
create_sourceCreate SourceADestructive
Create a GCash/GrabPay payment source (returns a redirect checkout URL).
Inputs: type (required), amount (required), redirect_failed (required), redirect_success (required), +1 more.
create_webhookCreate WebhookA
Register a webhook endpoint for event delivery. The response includes the per-webhook signing secret (store it to verify signatures).
Inputs: url (required), events (required).
get_checkoutGet Checkout SessionBRead-onlyIdempotent
Retrieve a checkout session by its ID.
Inputs: checkout_session_id (required).
get_customerGet CustomerARead-onlyIdempotent
Retrieve a customer by its ID.
Inputs: customer_id (required).
get_linkGet Payment LinkARead-onlyIdempotent
Retrieve a Payment Link by link_id, or look it up by reference_number.
Inputs: link_id, reference_number.
get_payment_intentGet Payment IntentARead-onlyIdempotent
Retrieve a PayMongo payment intent by its ID.
Inputs: payment_intent_id (required).
get_payment_methodGet Payment MethodARead-onlyIdempotent
Retrieve a payment method by its ID.
Inputs: payment_method_id (required).
get_refundGet RefundARead-onlyIdempotent
Retrieve a refund by its ID.
Inputs: refund_id (required).
get_sourceGet SourceBRead-onlyIdempotent
Retrieve a payment source by its ID.
Inputs: source_id (required).
get_webhookGet WebhookARead-onlyIdempotent
Retrieve a webhook by its ID.
Inputs: webhook_id (required).
list_customersList CustomersARead-onlyIdempotent
List customers with cursor pagination (before/after by customer ID).
Inputs: after, limit, before.
list_paymentsList PaymentsARead-onlyIdempotent
List payments with cursor pagination (before/after by payment ID).
Inputs: after, limit, before.
list_refundsList RefundsARead-onlyIdempotent
List refunds with cursor pagination (before/after by refund ID).
Inputs: after, limit, before.
list_webhooksList WebhooksARead-onlyIdempotent
List all registered webhooks.
Inputs: no named parameters.
update_webhookUpdate WebhookA
Update a webhook's URL/events and/or enable/disable it. Provide any combination of url, events, enabled.
Inputs: webhook_id (required), url, events, enabled.
verify_webhook_signatureVerify Webhook SignatureARead-only
Locally verify a PayMongo webhook's 'Paymongo-Signature' header (HMAC-SHA256 over timestamp.body). No network call — uses the per-webhook signing secret you pass in.
Inputs: payload (required), signature_header (required), webhook_signing_secret (required), mode, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 24 tools
Tools are mostly distinct, each targeting a specific resource and action. However, create_checkout, create_link, and create_source all initiate payment collection and could be confused by an agent; their descriptions partially mitigate this.
All tool names follow a consistent verb_noun snake_case pattern (get_, create_, list_, update_, archive_, verify_). There are no mixed naming conventions or vague verbs.
24 tools is on the heavier side but appropriate for a payment API covering multiple resources (payments, refunds, checkouts, links, webhooks, customers). Each tool serves a clear purpose within its resource.
Core payment flows are covered, including payment intents, sources, payments, refunds, and webhooks. However, there are notable gaps: no get_payment, no update/delete for customers, and payment intents lack attach/confirm operations, requiring workarounds.
Maintenance
Related MCP Connectors
MCP server for Modern Treasury — payment orders, transactions, counterparties and ledgers.
MCP server for Lemon Squeezy — stores, products, orders, subscriptions, license keys.
Billing proxy for MCP servers. Adds Stripe and x402 crypto payments without writing billing code.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server for Xendit payment APIs. Invoices, disbursements, balance checks, and bank transfers across Southeast Asia.6106 npm4MIT
- AlicenseBqualityDmaintenanceMCP server for VNPay payment gateway (Vietnam). Supports payment URL generation, transaction queries, refunds, tokenized payments, and IPN verification with HMAC-SHA512 signing.810 npmMIT
- AlicenseAqualityDmaintenanceMCP server for MAIB e-commerce payments (Moldova). Supports payments, refunds, recurring billing, one-click payments, and transaction status via OAuth 2.0.813 npmMIT
- AlicenseBqualityFmaintenanceMCP server for Payme payment system (Uzbekistan). Supports transactions, statements, payment links, and balance queries via JSON-RPC 2.0.8MIT