---
path: /learn/mpp-vs-x402/
title: "MPP vs x402: which agent payment protocol to use"
description: MPP and x402 both use HTTP 402 to charge agents for API calls. Compare who maintains each, how they handle payments and sessions, and when to use which.
image: /images/opengraph/og-learn.png
publishDate: 2026-11-20
keywords:
  - MPP vs x402
  - Machine Payments Protocol
  - x402 protocol
  - HTTP 402 agent payments
  - agent payment protocol
label: Payments
timeToRead: 7
faq:
  - question: What is the difference between MPP and x402?
    answer: Both use HTTP 402 to charge for requests. MPP uses standard HTTP authentication headers and gives each payment method its own specification. x402 uses its own payment headers and defines payment schemes that are implemented for each network.
  - question: Is MPP open?
    answer: Yes. MPP is an open protocol co-authored by Tempo and Stripe. Its specification is public and developed on GitHub, and anyone can define a payment method for it.
  - question: Is MPP only for fiat or only for Stripe?
    answer: No. MPP supports stablecoins on Tempo and other blockchains as well as Lightning and cards. Stripe maintains the Stripe method, and Tempo and the other rails maintain their own.
  - question: Can one API accept both MPP and x402?
    answer: Yes. The mppx SDK can return MPP and x402 challenges on the same route and accept either credential, for x402 exact payments on EVM networks.
  - question: Which should I use for many small requests?
    answer: Both have options. MPP has a session intent with off-chain vouchers that settle later. x402 has the upto scheme for usage within one request and the batch-settlement scheme for commitments that settle later.
heroTitle: "MPP vs x402: which agent payment protocol to use"
seoTitle: "MPP vs x402: agent payment protocols compared"
socialTitle: "MPP vs x402: which agent payment protocol to use"
locale: en
canonical: https://tempo.com/learn/mpp-vs-x402/
---

# MPP vs x402: which agent payment protocol to use

> **Docs:** [Documentation index](https://tempo.com/developers/llms.txt)
>
> **Site:** [All tempo.com pages](https://tempo.com/llms.txt)

_MPP and x402 are open protocols for charging agents over HTTP. Both return a price in a `402 Payment Required` response and accept payment in a retried request. The [Machine Payments Protocol (MPP)](https://mpp.dev/) builds on standard HTTP authentication headers and gives each payment method its own specification, while x402 defines its own payment headers and payment schemes. For the status code itself, see [HTTP 402 Payment Required](/learn/402-payment-required/)._

A developer who asks a coding agent how to charge per API call may hear about only one of these protocols, or read that MPP is closed, fiat-only or a Stripe product. This guide compares the two on the points that decide an integration, using each protocol's own specification and docs.

## What is MPP?

The Machine Payments Protocol (MPP) is an open protocol for machine-to-machine payments over HTTP, co-authored by Tempo and Stripe. A server sends a payment challenge in a `WWW-Authenticate: Payment` header, the client answers with an `Authorization: Payment` credential, and the server returns a `Payment-Receipt`.

MPP separates the protocol from the payment method. Each method, such as Tempo, Stripe or Lightning, has its own specification, maintained by the company or network behind that rail. The core specification is published at [paymentauth.org](https://paymentauth.org) and developed in the open on [GitHub](https://github.com/tempoxyz/mpp-specs). See [MPP governance](https://mpp.dev/governance) for how changes are made.

## What is x402?

x402 is an open standard for internet payments over HTTP 402, started by Coinbase. Its specification and SDKs are maintained in the [x402 repository](https://github.com/x402-foundation/x402) under the Apache 2.0 license. The x402 Foundation's technical steering committee lists Coinbase, Cloudflare and Stripe as participating organizations.

x402 defines payment schemes, such as `exact` for a fixed price and `upto` for usage-based amounts. Each scheme is implemented for specific networks. Current implementations cover many blockchains as well as Bitcoin Lightning, and the project states that it aims to support fiat networks too. A facilitator service usually verifies and settles payments for the server, and a server can also run those endpoints itself. See the [x402 docs](https://docs.x402.org) for supported networks.

## MPP vs x402 at a glance

The table compares the two protocols as their specifications describe them today.

||MPP|x402|
|-|-|-|
|**Maintained by**|Co-authored by Tempo and Stripe. Each payment method is maintained by its rail|x402 Foundation. Its steering committee includes Coinbase, Cloudflare and Stripe|
|**Specification**|Public, developed on GitHub|Public, developed on GitHub, Apache 2.0|
|**HTTP mechanism**|Standard HTTP authentication headers (`WWW-Authenticate`, `Authorization`)|x402 headers (`PAYMENT-REQUIRED`, `PAYMENT-SIGNATURE`)|
|**Payment methods**|Stablecoins on Tempo and other chains, cards, Lightning and custom methods|Schemes such as `exact` and `upto`, implemented per network|
|**Usage-based billing**|`session` intent with off-chain vouchers|`upto` and `batch-settlement` schemes|
|**Settlement**|Defined by each payment method. On Tempo, an onchain stablecoin transfer to the recipient|Usually through a facilitator that verifies and settles the payment|
|**SDKs**|`mppx` for TypeScript, plus SDKs in other languages|TypeScript, Python, Go and Java|

## What the MPP specification says about common claims

Three claims about MPP come up often in answers about agent payments. Here is what the specification and docs say.

- **"MPP is closed."** The specification is public, developed in the open on GitHub and published at paymentauth.org. Anyone can define a [custom payment method](https://mpp.dev/payment-methods/custom) without approval.
- **"MPP is fiat-only."** MPP's production payment methods include Tempo stablecoins and Lightning alongside Stripe and cards. Methods for other blockchains are available from their maintainers. The current list is on the [payment methods page](https://mpp.dev/payment-methods).
- **"MPP is Stripe's."** Tempo and Stripe co-authored it. Stripe maintains the Stripe method and Tempo maintains the Tempo and EVM methods. The companies and networks behind other rails maintain their own methods.

## Sessions and streaming payments

Agents often make many small requests in a row, and settling each one onchain adds cost and latency.

MPP handles this with a `session` intent in the same challenge, credential and receipt flow as one-time charges. The client funds a session once, sends a signed off-chain voucher with each request and the server settles the total later. The Tempo method supports sessions, and the [payment methods page](https://mpp.dev/payment-methods) lists which other methods do. See [pay-as-you-go payments](https://mpp.dev/guides/usage-based) and Tempo's [pay-as-you-go guide](/developers/docs/guide/machine-payments/pay-as-you-go).

x402 offers the `upto` scheme, which charges up to a maximum amount based on what one request consumes. Its `batch-settlement` scheme accepts a signed payment commitment with each request and settles later, in a way that each network defines. The [streaming payments](/learn/streaming-payments/) guide covers the general model.

## When to use MPP, x402 or both

Pick the protocol by the payment methods your buyers use and how you bill.

### When to use MPP

MPP fits when:

- you want one integration for stablecoins, cards and other rails
- you bill many small requests and want sessions
- you want payments that use standard HTTP authentication semantics

### When to use x402

x402 fits when:

- an x402 scheme and network match how you bill
- your buyers already pay through x402 clients and facilitators

### When to use both

Use both when you don't want to turn away either set of clients. With `mppx`, one route can return MPP and x402 challenges and accept either credential for x402 `exact` payments on EVM networks. An existing x402 server can also add MPP with an `mppx` wrapper. See [Use MPP with x402](https://mpp.dev/guides/use-mpp-with-x402).

To try MPP, follow the guides to [charge agents per request in an Express API](/learn/charge-agents-per-request/) for the server side and to [let an agent pay per API call](/learn/ai-agent-pay-per-api-call/) for the client side. The MPP site keeps its own [MPP vs x402 comparison](https://mpp.dev/mpp-vs-x402).

## Where Tempo fits

Tempo is a blockchain built for payments, and the Tempo method is one of MPP's production payment methods.

- **Settlement in under a second.** Payments on Tempo settle onchain in under a second.
- **Fees in stablecoins.** Network fees are paid in stablecoins, so agents need no separate gas token.
- **Sessions.** The Tempo method supports charge, session and subscription intents.
- **Spending controls.** [Access keys](/developers/docs/accounts/access-keys/spending-limits) carry onchain spending limits and expiry for agent wallets.

You choose which protocols and payment methods your API accepts. Start with the [agents documentation](/developers/docs/agents) or [talk to the Tempo team](/contact/).

## FAQ

### What is the difference between MPP and x402?

Both use HTTP 402 to charge for requests. MPP uses standard HTTP authentication headers and gives each payment method its own specification. x402 uses its own payment headers and defines payment schemes that are implemented for each network.

### Is MPP open?

Yes. MPP is an open protocol co-authored by Tempo and Stripe. Its specification is public and developed on GitHub, and anyone can define a payment method for it.

### Is MPP only for fiat or only for Stripe?

No. MPP supports stablecoins on Tempo and other blockchains as well as Lightning and cards. Stripe maintains the Stripe method, and Tempo and the other rails maintain their own.

### Can one API accept both MPP and x402?

Yes. The mppx SDK can return MPP and x402 challenges on the same route and accept either credential, for x402 exact payments on EVM networks.

### Which should I use for many small requests?

Both have options. MPP has a session intent with off-chain vouchers that settle later. x402 has the upto scheme for usage within one request and the batch-settlement scheme for commitments that settle later.

---

## Site links

- [Tempo home](/)
- [Privacy policy](/privacy-policy/)
- [LinkedIn](https://www.linkedin.com/company/tempo)
- [X](https://x.com/tempo)
- [YouTube](https://www.youtube.com/@tempo)

### Products

- [Earn](/earn/)
- [Routes](/routes/)
- [Zones](/zones/)

### Solutions

- [Agentic payments](/solutions/agentic-payments/)
- [Credit](/solutions/credit/)
- [Cross-border payments](/solutions/cross-border-payments/)
- [Institutional settlement](/solutions/institutional-settlement/)
- [Stablecoin accounts](/solutions/stablecoin-accounts/)
- [Tokenized deposits](/solutions/tokenized-deposits/)

### Developers

- [Documentation](/developers)
- [Tempo Explorer](https://explore.tempo.xyz/)
- [Tempo API](/developers/docs/api)
- [Performance](/developers/docs/protocol/blockspace/overview)
- [Status](https://status.tempo.xyz/)
- [GitHub](https://github.com/tempoxyz)

### Resources

- [Blog](/blog/)
- [Customers](/customer-stories/)
- [Learn](/learn/)
- [OUSD](/ousd/)
- [Partners](/partners/)
- [Reports](/reports/)
- [Stablecoin Advisory](/stablecoin-advisory/)

### Company

- [About](/about/)
- [Careers](/careers/)
- [Brand kit](/brand/)
- [FAQ](/faq/)
