Skip to main content
MPP (Machine Payment Protocol) is a payment protocol designed for AI agents and automated systems. It is the superset of x402, supporting both Tempo stablecoin payments and Stripe card payments in a single unified flow.
Unlike x402 which only supports on-chain USDC, MPP adds Tempo network stablecoins and traditional card payments as additional options.

How It Works

Detailed Flow

  1. Agent calls GET /mpp/purchase?plan=<plan> without payment credentials
  2. MPP service returns 402 with a WWW-Authenticate: Payment challenge containing amount, currency, and recipient
  3. Agent signs the payment using Tempo Wallet or Stripe
  4. Agent retries the purchase request with Authorization: Payment credential
  5. MPP service verifies payment, creates a subscription, and returns an API Key

Supported Payment Methods

Tempo payments do not require native gas tokens — gas is paid in the stablecoin directly. This makes it ideal for AI agents that only hold stablecoins.

API Endpoints

Pricing Response

Purchase Response (Success)

CLI Usage

The ChainStream CLI supports MPP as a payment option during the auto-purchase flow:
For agents without a ChainStream wallet, the CLI prints the Tempo command:

Manual Integration (Tempo Wallet)

Setup

Install the Tempo Wallet CLI and log in (one-time passkey authentication via browser):
Tempo Wallet uses passkey (WebAuthn) authentication. The first setup requires a browser interaction. After that, the session persists and agent operations work without further browser interaction.

Purchase

The Tempo CLI handles the WWW-Authenticate: Payment challenge automatically, signs the transaction, and returns the API Key on success.

Compatible Wallets

Tempo is EVM-compatible (chain ID 4217). Any wallet holding USDC.e on Tempo works:
  • Tempo Wallet CLI (tempo request) — recommended, passkey auth, built-in MPP support
  • Any EVM wallet (MetaMask, Coinbase CDP, Privy) — add Tempo as custom network

MPP vs x402

Next Steps

x402 Payment Protocol

On-chain USDC payments via the x402 protocol

Billing & Units

Understand CU consumption and plan details