100+ integrations are ready to connect to your AI.Connect your first MCP

Afterpay MCP server for your AI

Find any order, capture or refund it, start a checkout, answer a dispute with evidence, and total your sales for a period, all by asking, on live or sandbox.

PopMCPAfterpay

What can still be captured or refunded on order 12345678?

Supported Afterpay tools

Every operation in the Afterpay Online API is here: checkouts, payments, disputes, on file grants, Cash App Pay grants and configuration, along with the older billing agreements. The everyday tools load by default and the rest are one search away. A few do a whole job at once, such as refunding what is left on an order after checking it first.

37 tools in the full catalog: 16 read and 21 write. 33 load by default, and the rest are found with tool search.

afterpay_authorize_payment

Approve an order after the customer confirms, without taking the money yet (deferred capture).

afterpay_capture_full_payment

Finish a checkout and take the full amount now: this moves real money and starts the customer's payment plan.

afterpay_capture_payment

Capture part or all of an approved order: this moves real money.

afterpay_create_refund

Refund part or all of a captured order: this returns real money to the customer and cannot be undone.

afterpay_get_payment

Get one order by its numeric Afterpay order id: status, amounts, customer, items, events and refunds.

afterpay_get_payment_by_token

Get one order by its checkout token, when you have the token but not the order id.

afterpay_list_payments

List or search orders, newest first by default.

afterpay_reverse_payment_by_token

Cancel a just-made order by its checkout token, for when a capture or auth call timed out and you do not know if the order was made.

afterpay_update_payment_merchant_reference

Set your own order number on an Afterpay order.

afterpay_update_shipping_courier

Add shipping details to an order: when it shipped, the courier, tracking number and priority.

afterpay_void_payment

Cancel what has not been captured yet on an approved order and refund the customer that part: this cannot be undone.

afterpay_accept_dispute

Give up a dispute: it is closed as lost and the customer keeps the money.

afterpay_account_overview

Start here: which Afterpay system this connection is on (live or sandbox), the region and currency, the order amounts this merchant can take, the latest orders and the disputes waiting on you.

afterpay_capture_remaining_amount

Capture everything still open on an approved order: this moves real money.

afterpay_create_grant

Create the saved payment grant once the customer has approved, from the token of afterpay_create_grant_approval.

afterpay_create_grant_approval

Start asking a customer to save Afterpay for later purchases.

afterpay_get_dispute

Get one dispute: reason, status, amount, the customer's note and attachments, and the deadline.

afterpay_get_dispute_file

Get a temporary download link for a dispute file, such as a customer's attachment.

afterpay_get_grant

Get one saved Afterpay grant by id: its status and details.

afterpay_list_disputes

List disputes on your orders.

afterpay_open_disputes

Disputes waiting on you, soonest deadline first, each with its deadline, reason, amount and the customer's note, and the order for the first few.

afterpay_payment_overview

Everything about one order in one call, found by order_id, token or merchant_reference (give one): status, amounts, what can be captured or refunded now and until when, its events and refunds, and any dispute.

afterpay_refund_remaining_amount

Refund everything captured and not yet refunded on an order: this returns real money to the customer and cannot be undone.

afterpay_respond_to_dispute

Submit your evidence to challenge a dispute: there is only ONE chance, it goes in at once and cannot be changed.

afterpay_revoke_grant

Cancel a saved Afterpay grant, so it can no longer be charged.

afterpay_sales_summary

Add up orders in a period, per status and currency: order count, order value, refunds and what is still uncaptured.

afterpay_upload_dispute_file

Upload one evidence file for a dispute and get its id, to pass to afterpay_respond_to_dispute.

afterpay_create_checkout

Start a checkout and get a token and redirectCheckoutUrl to send the customer to.

afterpay_get_cash_app_pay_grant

Get a saved Cash App Pay grant, by the customer id and grant id.

afterpay_get_checkout

Read a checkout that has not been completed yet.

afterpay_get_configuration

Get the order amounts this merchant can take: minimumAmount and maximumAmount.

afterpay_revoke_cash_app_pay_grant

Cancel a saved Cash App Pay grant, so it can no longer be charged, by the customer id and grant id.

afterpay_create_order_from_grant

Start an order using a customer's saved Afterpay or Cash App Pay grant.

afterpay_create_grant_alias

Make a short lived alias of a grant token, used to load the payment schedule widget.

afterpay_start_grant_link

Start the link flow with no Afterpay page: sends an one-time code to the customer's email or phone, which contacts a real customer.

afterpay_get_configuration_mappings

Get this merchant's Cash App Pay brand id, needed to set up Cash App Pay on file.

afterpay_ping

Check Afterpay's API is up.

Connect Afterpay to Claude, ChatGPT and Claude Code

Credentials off one Afterpay screen, then an endpoint your client signs into. Nothing to deploy, and nothing to install.

Sign in to your Afterpay Business Hub as a Hub Admin and open Settings, where your Merchant ID and Secret Key are. Open Afterpay in PopMCP, paste both and connect. PopMCP works out whether they are live or sandbox, and reads your region from your account, so there is nothing else to fill in. UK merchants use the Clearpay Business Hub.

Merchant IDyour-afterpay-value
Secret Key••••••••••••3f7a
ConnectionVerified

Then just ask for the work

  • “What can still be captured or refunded on order 12345678?”

    • get_payment
  • “Refund 25.00 on this order and tell me what is left to refund”

    • get_payment
    • create_refund
  • “Find the order with my reference ORD-1042 and show its status and customer”

    • list_payments
    • get_payment
  • “Which disputes are waiting on me, and when are they due?”

    • list_disputes
    • get_dispute
  • “Answer this dispute with the attached proof of delivery”

    • get_dispute
    • upload_dispute_file
    • respond_to_dispute
  • “Make a checkout for 80.00 and give me the link to send my customer”

    • get_configuration
    • create_checkout

Use Afterpay from the assistant you already open

One hosted endpoint, registered once per client. The same tools and the same permissions, whichever window the request comes from.

Claude DesktopCustom connector

Add the PopMCP URL under Customize → Connectors and the tools appear in every chat.

Claude WebCustom connector

The same endpoint, registered in the browser. Nothing to install on the machine you are working from.

ChatGPTCustom connector

Register PopMCP as a custom connector, then let ChatGPT read and update the account.

CodexDesktop & CLI

Wire the endpoint into Codex or the Codex CLI when a task needs live business context, not a fixture.

OpenCodeCoding agent

Register the remote MCP server in OpenCode's config for terminal-first and scripted agent runs.

ZCodeDesktop app

Add PopMCP as an MCP server in Z.ai's desktop app and work the account from the same window.

Afterpay MCP server questions

What teams ask before putting Afterpay behind an AI client.

Do I need a developer app?

No. Your Merchant ID and Secret Key are in the Settings tab of the Afterpay Business Hub. Only a Hub Admin can see the Secret Key, so ask one if you cannot.

Do I need an Afterpay merchant account?

Yes. Afterpay reviews a business before opening a merchant account, and the credentials come from that account. Sandbox credentials come from your Afterpay account manager.

Is this live or a test?

The credentials decide. PopMCP tries them on Afterpay's live system and then on its sandbox, where no money moves, and the connection profile always says which one the AI is using.

Does it work with Clearpay in the UK?

Yes. Clearpay is Afterpay's name in the UK, and it uses the same API. Get your Merchant ID and Secret Key from the Clearpay Business Hub, in Settings. Australia, New Zealand, Canada and the United States work the same way, and each region has its own pair.

Can the AI move money?

Only if you allow it. New connections start read-only. Once writes are on, captures and refunds are real, so ask it to confirm first. Each one carries a request id, so a retry does not act twice.

Why does a checkout not show up as an order?

A checkout is only a link for the customer. The order exists once the customer confirms and the checkout is finished with a capture or an approval, which the AI can do.

Does this cover settlement reports?

No. Afterpay publishes no API for settlement files, so those stay in the Business Hub. The AI can total your orders for a period, which is not the same as what reached your bank.

Do I have to run or host the Afterpay MCP server myself?

No. PopMCP hosts it and gives you a Streamable HTTP MCP URL. There is nothing to deploy, no callback URL to register, and no infrastructure to keep running or patch.

Which AI clients can use this MCP server?

Any client that supports a remote Streamable HTTP MCP server: Claude Desktop, Claude Web, Claude Code, ChatGPT custom connectors, Codex and the Codex CLI, OpenCode and Z.ai's ZCode, as well as editors such as Cursor, Windsurf and Zed. Your client signs in to PopMCP with OAuth; the provider credential never leaves the server.

How do I connect Afterpay to Claude Code?

Connect Afterpay in PopMCP first, then run claude mcp add --transport http popmcp https://app.popmcp.com/mcp in a terminal. Inside Claude Code, run /mcp and sign in to PopMCP in the browser window it opens, ticking Afterpay on the consent screen. The Afterpay tools are then available in that session, and no Afterpay credential is stored on your machine.

Why do only 33 of the 37 tools load by default?

Loading 37 tool definitions into every conversation burns context before the work starts. PopMCP loads a curated 33-tool set covering the everyday workflows and keeps the rest searchable, so your AI pulls a specialist tool only when a task needs it. Every tool stays searchable, and on Scale the owner can load the full catalog for a teammate's connection.

What is the difference between a tool and a trigger?

A tool is something your AI calls, and there are 37 here. A trigger is something PopMCP watches for you: 3 Afterpay events that can start work on the PopMCP side. Triggers never enter your AI client's context, and none of them ask you to paste a callback URL into Afterpay.

Connect Afterpay to your AI in minutes

Launch a hosted MCP endpoint for Afterpay, keep tool access under control, and start testing real workflow prompts right away.

Connect your first MCP