What is MCP for payments? How AI agents call payment APIs
AI agents are starting to do real work inside payment systems. They look up transactions, draft refunds, explain declines and, increasingly, take part in checkout. The piece of plumbing that makes much of this possible is the Model Context Protocol, or MCP. If you build or buy payment APIs, MCP is now something you need a view on.
I lead AI work for API experience at a global payments company, including MCP servers, so I spend a lot of time on this question. This article is my practical take on what MCP means for merchants, payment service providers (PSPs) and developers, where it fits in agentic commerce, and how I would design an MCP server for payments. It complements my earlier piece on agentic commerce and merchant APIs, which covers agent identity, approved intent and dispute evidence. Here the focus is the protocol layer underneath.
What MCP is, in plain terms
MCP is an open protocol that lets AI applications connect to external tools and data in a standard way. Anthropic introduced and open sourced MCP in November 2024, and it is now developed in the open at modelcontextprotocol.io.
The MCP specification describes three roles:
- Hosts: the AI applications a person uses, such as a chat assistant or a coding tool.
- Clients: the connectors inside a host that talk to servers.
- Servers: services that expose capabilities to the AI model.
A server can offer three kinds of capability: tools (functions the model can call), resources (data the model or user can read) and prompts (templated workflows). Messages use JSON-RPC 2.0.
For payments, the useful mental model is simple. Your payment API stays the system of record. An MCP server is a thin, well described layer on top of it that tells an agent what it can do, what inputs each action needs, and what came back. Instead of every AI product writing its own custom integration to your API, any MCP compatible client can discover and call the same set of tools.
Why payments teams should care now
For developers
The first value of MCP is not checkout. It is the integration work around it. A developer can ask an assistant to look up a test payment, explain why a webhook failed or generate a sample refund request, and the assistant can call real tools in a sandbox rather than guessing from documentation. It also raises the bar on documentation, because the tool descriptions an agent reads are, in effect, a new form of API reference.
For merchants
Merchants spend a lot of time on questions that live in payment data: why was this order declined, has this refund settled, which payouts include these fees. An MCP server gives an operations or finance assistant structured, permissioned access to those answers.
For PSPs and acquirers
For a PSP, an MCP server is becoming part of the developer experience, in the same way that SDKs and sandboxes are. If a merchant’s AI tools cannot reach your platform in a standard way, they will reach someone else’s. It also forces you to decide, explicitly, which operations are safe to hand to software.
Where MCP fits in agentic commerce
It helps to separate three layers that are often blurred together.
- The payment API. Authorisation, capture, refunds, webhooks and reconciliation. This does not go away, and its quality matters more when the caller is an agent. My article on what merchants need from a unified payments API covers the contract I think that layer needs.
- The tool layer. MCP sits here. It is how an agent discovers and calls capabilities, whether those are payment operations, order lookups or catalogue searches.
- The trust and mandate layer. Protocols such as the Agent Payments Protocol (AP2) focus on proving that a user authorised a specific purchase, using signed mandates. AP2 describes itself as an open extension that works with agent protocols including MCP.
MCP does not, on its own, tell a merchant that a shopper approved a purchase. It moves requests and results between an agent and a service. The proof of intent, the agent’s identity and the evidence for a dispute need to travel with the payment, which is why I treat MCP and mandate protocols as complements rather than competitors.
This is also where my interest in “zero click” commerce comes from, which I discussed on the Leaders in Payments podcast (see my speaking page). The less a shopper has to do at checkout, the more the system has to prove on their behalf.
Designing an MCP server for payments
If I were starting a payments MCP server today, these are the principles I would hold to.
Start with read only tools
Begin with tools that cannot move money: retrieve a payment, list recent transactions, explain a decline code, check a refund’s status, fetch a settlement summary. A mistake costs a confusing answer, not a lost payment.
Make write tools narrow and explicit
When you add tools that move money, make each one do one thing. “Create refund” with a required payment identifier, amount and reason is far safer than a general “manage payment” tool with a mode parameter. Narrow tools are easier for a model to choose correctly and easier for a person to approve. Every write tool should accept an idempotency key, so that an agent retrying after a timeout does not refund twice.
Treat authorisation as the product
The MCP specification defines an authorization approach based on OAuth 2.1 for remote servers, and the project publishes security best practices that every payments team should read. Three points stand out for payments:
- Minimise scopes. The guidance warns against wildcard or omnibus scopes. A reporting assistant should not hold a token that can issue refunds.
- No token passthrough. The server should only accept tokens issued for it, not forward whatever a client sends to downstream APIs.
- Consent per client. Proxy style servers can create confused deputy risks if consent is not tied to the specific client asking for access.
The specification is also clear that hosts must get explicit user consent before invoking tools. For anything that moves money, I would design for a human confirmation step by default and relax it only where a mandate or merchant rule justifies it. My agent autonomy demo shows how that decision changes with the action and the level of trust.
Return errors an agent can act on
A vague “payment failed” is bad for a developer and worse for an agent, which may simply retry. Tool results should say whether the problem is an issuer decline, an invalid input, a missing permission or a temporary fault, and what the safe next step is. Clear, typed errors are the difference between an agent that recovers and one that loops.
Keep the API as the source of truth
Do not let the MCP server become a second payments platform with its own business rules. It should translate, validate and describe, then call the same API that every other integration uses. That keeps behaviour and audit trails consistent.
Risks to manage before going live
MCP widens who and what can call your platform, so the threat model changes.
- Untrusted tool descriptions and content. The specification says tool annotations should be treated as untrusted unless they come from a trusted server. Agents can also be manipulated by content they read, such as a crafted product description or support ticket. Payment tools need server side checks that do not rely on the model behaving.
- Over permissioned agents. The biggest practical risk is a broad token in the wrong context. Scope by role and by merchant, and expire tokens.
- Silent automation. Log every tool call with the client, the user and the result, and make that log available to the merchant. If you cannot explain what an agent did, you cannot defend it in a dispute.
You can see some of these patterns working in my live talk demos, which include an AI agent paying over MCP in a sandbox.
A practical starting checklist
- Publish read only tools first, against sandbox data, and watch how they are used.
- Write tool descriptions as carefully as public API docs, with inputs, outputs and limits.
- Use OAuth with minimal scopes, and separate read and write permissions.
- Require idempotency keys on every tool that creates or changes a payment.
- Default to human confirmation for money movement.
- Return structured errors with a safe next action.
- Log every call, and link it to the payment record.
MCP will not replace payment APIs. It makes them reachable by a new kind of caller, and that caller deserves the same care we give developers and merchants.
Frequently asked questions
What is an MCP server in payments?
An MCP server in payments is a service that exposes payment capabilities, such as looking up a transaction or creating a refund, as tools an AI agent can discover and call through the Model Context Protocol. It usually sits on top of an existing payment API rather than replacing it.
Can an AI agent make a payment through MCP?
Technically yes, if a server exposes a tool that creates a payment and the agent has permission to call it. In practice, payment providers should require strong authorisation, minimal scopes, idempotency and, by default, explicit human approval before money moves.
What is the difference between MCP and AP2?
MCP is a general protocol for connecting AI applications to tools and data. AP2, the Agent Payments Protocol, focuses on proving that a user authorised a specific purchase, using signed mandates. AP2 describes itself as an extension that works with agent protocols including MCP, so the two are complementary.
Is MCP secure enough for payments?
MCP defines an OAuth based authorisation approach and publishes security best practices, but security depends on implementation. For payments, that means narrow tools, minimal scopes, no token passthrough, server side validation and full audit logs.
Should merchants build their own MCP server?
Most merchants should start by using the MCP servers their payment providers offer, for reporting and operations. Larger merchants may expose catalogue and order tools of their own.
Alex Dewison is Head of API Experience at Global Payments. Read more about my background on my resume. Views are my own and do not describe any employer’s products or plans.