What Is MCP? How AI Agents Use the Model Context Protocol to Buy Things
Key takeaways
- The Model Context Protocol (MCP) is an open standard that connects AI applications to external tools and data through a common interface.
- An MCP server exposes tools, each with a name, a description and an input schema. An agent reads that list and decides which tool to call and with which arguments.
- A tool call can place an order, but a real purchase also needs three things a tool call does not carry: who the user is, proof that the user approved this purchase, and a way to pay.
- Remote MCP servers use OAuth for sign-in, which answers identity for one server. Purchase approval and payment are separate layers that MCP does not define.
- Commerce protocols such as ACP, UCP and AP2, and card network programs such as Visa Intelligent Commerce and Mastercard Agent Pay, address approval and payment alongside MCP.
MCP, the Model Context Protocol, is an open standard that lets an AI agent discover and call tools on external servers through one common interface. An agent connects to an MCP server, reads the list of tools it offers, and calls the one that fits the task. To buy something, an agent calls a merchant's ordering tool, but a safe purchase also needs a verified user, an explicit approval, and a payment method, which MCP does not define on its own.
What is the Model Context Protocol?
The Model Context Protocol is an open specification, introduced by Anthropic in November 2024, that standardizes how AI applications connect to external tools and data. Before MCP, each AI application needed a custom integration for each external system. MCP replaces those one-off integrations with a single protocol, so any compliant client can talk to any compliant server. Many AI assistants, agent frameworks, and developer tools now support it. In December 2025, Anthropic donated MCP to the Agentic AI Foundation, a fund under the Linux Foundation.
- Host: The AI application the user interacts with, such as a chat assistant, an IDE, or a custom agent.
- Client: The component inside the host that communicates with exactly one MCP server and speaks the protocol.
- Server: A program that exposes capabilities to clients. A server can run locally on the user's machine over standard input and output, or remotely over HTTP.
- Tools: Functions the server lets the model call, such as search the catalog, check availability, or place an order.
- Resources and prompts: Read-only data the server can provide as context, and reusable prompt templates the server can offer to the user.
How does an agent discover and call MCP tools?
An agent discovers MCP tools by asking a connected server to list them, and calls a tool by sending its name and arguments in a JSON-RPC 2.0 message. The sequence is the same for every server, which is what makes the protocol useful at scale.
- 1
Connect: The client reaches the server over a transport. In the current specification, each request carries its protocol version and the client capabilities, so the server does not depend on an earlier handshake.
- 2
Authenticate: A remote server that needs to know the user asks the client to sign in with OAuth. The user signs in and consents, and the client receives an access token for that server.
- 3
List tools: The client asks the server for its tools. Each tool has a name, a plain-language description, and a JSON Schema that describes its inputs.
- 4
Choose a tool: The model reads the descriptions and schemas and decides which tool matches the user's request, and which arguments to send.
- 5
Call the tool: The client sends the call. The server runs it and returns a result that the model reads and uses for its next step.
Discovery across servers is a separate question. An agent can only call tools on servers it knows about, so registries and search indexes of MCP servers help an agent find a server for a task it has not seen before.
Can an AI agent buy something with MCP?
Yes, an AI agent can buy something with MCP when a merchant exposes an ordering tool on an MCP server. The agent calls the tool with the items, the quantities, and a delivery address, and the merchant creates the order. The difficulty is not the call. The difficulty is everything a checkout normally checks about the person on the other side.
| What a purchase needs | What MCP provides | What is still missing |
|---|---|---|
| Identity: who is the buyer? | OAuth sign-in for remote servers | A sign-in per server, and no shared account across merchants |
| Approval: did the user agree to this exact order? | Nothing specific to purchases | A record that a person approved these items at this total |
| Payment: how does the merchant get paid? | Nothing specific to payments | A credential the agent can use without seeing the card number |
| Limits: what stops the agent overspending? | Nothing specific to spend | Enforcement of the approved amount at execution time |
Each MCP server can build these pieces itself. In practice that means every merchant builds its own account system, its own approval screen, and its own payment flow, and every agent meets a different version of each one.
Why is a tool call not enough to authorize a payment?
A tool call is not enough to authorize a payment because it records only that a model chose to send some arguments, not that a human looked at the total and said yes. If a dispute arrives, the merchant, the agent builder, and the user all need evidence of what was approved, and a log line that says the model called a tool is weak evidence.
- Models can misread requests: A model that picks the wrong size or the wrong quantity sends a valid call. Only a human approval step catches that before the charge.
- Prices change between steps: A total can rise because of fees, taxes, or a price update. The approval has to bind to a specific amount so a higher charge does not go through silently.
- Card numbers must stay out of the model: Passing a card number as a tool argument puts it in the model's context and in logs. Card details belong in a PCI DSS compliant vault or a network token, not in a conversation.
- Bot defenses treat agents as unknown traffic: A merchant that cannot tell which agent is calling, or for whom, often blocks the request or declines the payment.
How are approval and payment added to MCP purchases?
Approval and payment are added to MCP purchases by separate layers that sit beside the protocol: commerce protocols, card network programs, and agent identity standards. Each layer answers one of the gaps in the table above.
- Commerce protocols: The Agentic Commerce Protocol (ACP), from OpenAI and Stripe, and the Universal Commerce Protocol (UCP), from Google and Shopify, define structured checkout operations that agents can call at merchants that adopt them.
- Authorization records: The Agent Payments Protocol (AP2), which Google created, describes signed mandates that record what a user authorized, so a merchant or a payment network can check a purchase against the approval.
- Card network programs: Visa Intelligent Commerce and Mastercard Agent Pay provide tokenized credentials for agent-initiated payments, so an agent can pay without handling the underlying card number.
- Agent identity: Web Bot Auth, an IETF draft based on HTTP Message Signatures, and Visa's Trusted Agent Protocol let an agent sign its requests, so a merchant can tell a known agent apart from unknown automation.
- In-protocol user input: Recent versions of the MCP specification include elicitation, which lets a server ask the user for information through the client. A server can use it for a confirmation step, but it does not by itself produce a payment credential.
What should an MCP server owner consider before selling to agents?
An MCP server owner who wants to sell to agents should decide how users sign in, how a purchase is approved, and how the server is paid, before the first order arrives.
- Sign-in: Follow the MCP authorization specification, which is based on OAuth, so any compliant client can connect without a custom flow.
- Approval evidence: Keep a record of the items and the total the user approved, and refuse an order whose total exceeds that approval.
- Payment credentials: Accept tokenized credentials rather than raw card numbers, which keeps card data out of tool arguments and reduces PCI DSS scope.
- Disputes: Purchases on a card follow the usual chargeback process, so the approval record is the evidence a merchant presents if a cardholder disputes a charge.
- Tool descriptions: Write clear tool names, descriptions, and input schemas. A model chooses tools from this text, so vague descriptions lead to wrong calls.
MCP solves how an agent finds and calls a tool. It deliberately leaves identity across merchants, purchase approval, and payment to other layers, and those layers are where most of the work in agentic commerce now happens.
Frequently asked questions
What is MCP in AI?
MCP, the Model Context Protocol, is an open standard that lets AI applications connect to external tools and data sources through one common interface. An MCP server exposes tools, and an MCP client inside an AI application lists and calls them.
Who created the Model Context Protocol?
Anthropic introduced the Model Context Protocol in November 2024 as an open specification. In December 2025, Anthropic donated it to the Agentic AI Foundation under the Linux Foundation. It is supported by many AI applications, agent frameworks, and developer tools.
What is the difference between an MCP server and an MCP client?
An MCP server exposes capabilities such as tools, resources, and prompts. An MCP client lives inside an AI application, connects to one server, and calls its tools on behalf of the model.
How do AI agents use MCP to buy things?
An AI agent buys with MCP by connecting to a merchant's MCP server, reading its tools, and calling an ordering tool with the items and delivery details. A safe purchase also needs user sign-in, an explicit approval of the items and the total, and a payment method that keeps the card number away from the agent.
Does MCP handle payments?
No, MCP does not handle payments. It defines how agents discover and call tools, and it uses OAuth for sign-in to remote servers. Purchase approval and payment come from other layers, such as commerce protocols like ACP and UCP and card network programs like Visa Intelligent Commerce and Mastercard Agent Pay.
Is it safe to give an AI agent my card number through MCP?
No, it is not safe to give an AI agent a card number through MCP. A card number sent as a tool argument enters the model's context and can appear in logs. Card details should be tokenized, and the agent should act on an approval for one purchase, not on the card number itself.
How do I let agents pay my MCP server?
To let agents pay an MCP server, the server owner needs OAuth sign-in that follows the MCP authorization specification, a record of what each user approved, and acceptance of tokenized payment credentials. The owner can build these parts or adopt an existing commerce protocol or payment provider for agents.
Related articles