What if you told an AI agent to "call this API and get me the data" — and it handled the payment on its own, without any human in the loop? That might sound like science fiction, but as of March 18, 2026, it's real.

Source: Stripe Official Blog | Stripe MPP announcement
Stripe, together with Tempo, has unveiled the Machine Payments Protocol (MPP) — a dedicated payment protocol designed for AI agents. Instead of a human entering a card number and clicking a button, an agent completes a payment with a single HTTP request.
This post breaks down how MPP works, how to integrate it with real code, and how it compares to competing protocols like Google AP2 and Coinbase x402.
TL;DR: MPP is an agent payment protocol built on HTTP 402 responses and OAuth-style sessions ("OAuth for money"). It runs on top of Stripe's existing infrastructure, supporting stablecoins, cards, and BNPL — and integrates in just a few lines of code.
Why Micropayments Have Failed for 30 Years — and Why This Time Is Different
Micropayments aren't a new idea. Since the 1990s, people have predicted a world where you pay $0.10 per article. It never happened. Subscription models won instead. Why? Because the cognitive cost of paying — clicking a button, confirming a card — was higher than the value of the transaction itself.

Source: Forrester | Micropayments tipping point analysis
Forrester analyst Meng Liu nailed it: "MPP is built for agents to pay — not humans." When the decision-maker is an AI agent rather than a person, the cognitive overhead drops to zero. An agent doesn't pause to wonder whether something is worth paying for. If the task requires it, it pays. (Forrester, March 2026)
MPP Core Concepts: HTTP 402 and "OAuth for Money"
The mechanics of MPP are elegantly simple.
Step 1: An agent sends a request to a paid API endpoint.
Step 2: The server responds with HTTP 402 (Payment Required).
Step 3: The agent authorizes payment and retries the request.
Step 4: The resource is delivered.
HTTP 402 is a status code that's been "reserved for future use" since the 1990s. After 30 years, it's finally found its purpose.
{
"type": "https://paymentauth.org/problems/payment-required",
"title": "Payment Required",
"status": 402,
"detail": "Payment is required to access this resource.",
"challengeId": "ch_abc123..."
}
The key concept here is the Session. Stripe describes it as "OAuth for money" — an apt analogy. Just as OAuth lets you say "grant this app access to my Google account," an MPP session lets you say "authorize this agent to spend up to $N." Once a session is established, the agent can stream micropayments within the configured limit without needing re-authorization each time.
Integration Code: Adding MPP to Your Service
Here's how to add MPP to an existing service, based on Stripe's official documentation (preview API as of 2026-03-04).
Accepting Stablecoin Payments (Tempo)
import { Mppx } from '@mppx/server';
import { tempo } from '@mppx/tempo';
const mppx = Mppx.create({
methods: [
tempo.charge({
currency: 'PATH_USD', // USD stablecoin on the Tempo network
recipient: recipientAddress,
testnet: true, // Always start on testnet!
}),
],
secretKey: process.env.MPP_SECRET_KEY,
});
// Apply as Express middleware
app.use('/api/premium', mppx.middleware());
Accepting Card / BNPL Payments (SPT)
Existing Stripe payment methods are also supported via SPT (Shared Payment Token):
import { stripe } from '@mppx/stripe';
const mppx = Mppx.create({
methods: [
stripe.charge({
paymentMethodTypes: ['card', 'link'],
secretKey: process.env.STRIPE_SECRET_KEY,
}),
],
secretKey: process.env.MPP_SECRET_KEY,
});
The code is remarkably compact. If you've used Stripe before, you can be up and running in under 10 minutes. One important note: this requires the 2026-03-04 preview API version — include the header Stripe-Version: 2026-03-04.preview in your requests.
For testing, the npx mppx CLI tool makes it easy. Moving to live mode requires creating a Stripe Profile (a profile_ ID).
Real-World Deployments
A few services are already running on MPP:
| Service | Use Case | Billing Model |
|---|---|---|
| Browserbase | Agent runs headless browser sessions | Per session |
| PostalForm | Agent prints and mails physical letters | Per piece |
| Prospect Butcher Co. | Agent orders sandwiches (NYC pickup/delivery) | Per order |
| Stripe Climate | Agent contributes to carbon removal | Custom amount |
The sandwich ordering example is both amusing and telling — it signals a future where AI agents handle routine errands end-to-end.
Photo by Towfiqu barbhuiya on Unsplash | The era of AI-initiated payments is here
Protocol Comparison: MPP vs AP2 vs x402
MPP isn't the only player in agent payments. The space already has at least three competing protocols:
| Protocol | Led By | Launched | Payment Method | Notes |
|---|---|---|---|---|
| MPP | Stripe + Tempo | 2026.03 | Stablecoin + Card/BNPL | HTTP 402 + session streaming |
| AP2 | Google + 60 partners | 2025.09 | Existing payment rails | PayPal, Mastercard integration |
| x402 | Coinbase (Base) | 2025 | On-chain stablecoin | 50M+ transactions processed |
| ACP | OpenAI + Stripe | 2025.09 | Stripe payments | Built for ChatGPT shopping |
My take: there won't be a single winner. Forrester's analysis agrees — the likely outcome is a multi-layer ecosystem where protocols, identity, and wallets each occupy a distinct layer. From a developer's perspective, MPP has the lowest barrier to entry right now: if you're already using Stripe, it's just a few extra lines.
Also worth noting: Stripe operates an MCP (Model Context Protocol) server. Combining MCP with MPP means an agent can both use tools and initiate payments — enabling fully autonomous workflows.
The Real Risk: Giving Your Agent a Credit Card
There's an honest concern worth addressing. If an agent has payment authority, you can get runaway spending — a loop that burns through your budget in minutes.
MPP supports spending caps on sessions, which helps. But that means you need to design your limits carefully upfront. "I'll just set a $100 cap" can still be dangerous if an agent enters a retry loop.
A startup called Skyfire is building a Know Your Agent (KYA) protocol specifically to address this — essentially KYC (Know Your Customer) for agents. It verifies which agent is acting, who owns it, and how much it can be trusted. The agent economy is going to need its own identity layer. (Forrester analysis, March 2026)
What to Do Right Now
MPP is still in preview, but the direction is clear. AI agents are evolving from "tools that answer questions" into "autonomous actors that take actions — including financial ones."
As a developer, here's where to start:
- Read the Stripe MPP docs and run through the testnet with
npx mppx - If you have a paid API, try adding the MPP middleware — agents are a new customer segment
- Check mpp.dev for the open spec — MPP can be implemented without Stripe
- Keep an eye on Google AP2 and Coinbase x402 — multi-protocol support is likely to be necessary
I'm planning to attach MPP to one of my side project APIs. Testnet costs nothing, and there's something exciting about the possibility that an AI agent could be my first paying customer.
References:
- Stripe Official Blog - Introducing the Machine Payments Protocol (2026.03.18)
- Stripe MPP Official Docs (March 2026)
- Forrester - Why Stripe's Machine Payments Protocol Signals a Turning Point For Micropayments (2026.03.22)
- Fortune - Stripe-backed crypto startup Tempo releases AI payments protocol (2026.03.18)
- PYMNTS - Stripe-Backed Protocol Lets AI Agents Transact Autonomously (2026.03)
- Google Cloud Blog - Announcing Agent Payments Protocol (AP2) (2025.09)
Related posts:
- MCP (Model Context Protocol): Connecting AI Agents in 2026 - The standard protocol for agent-to-tool connectivity