PerformanceBlog
Tempo MCP serverGive agents search and read tools for Tempo docs
Skip to content
LogoLogo

Make Agentic Payments

Make agentic payments using the Machine Payments Protocol (MPP). MPP adds inline payments to any HTTP endpoint — agents, apps, or humans pay as part of their request, and the server verifies payment before returning the response.

Try an agentic payment

See the full payment flow in action. The terminal creates an ephemeral wallet, funds it with testnet USDG, and makes a paid request to fetch a photo.

Press Enter or click to start

MPP payment flow

A client requests a paid resource, the server responds with 402 and a Challenge describing the price. The client pays, retries with a Credential transaction, and the server returns the resource with a Receipt.

  1. Request — Any HTTP method (GET, POST, etc.)
  2. Challenge402 with WWW-Authenticate: Payment header describing amount, currency, and recipient
  3. Pay — Client signs a transaction or fulfills payment off-chain
  4. Retry — Client re-sends with Authorization: Payment header containing the Credential
  5. Deliver — Server verifies, returns 200 with Payment-Receipt header

Why Tempo for agentic payments

Tempo's transaction model is designed for agentic payments using MPP:

  • ~500ms finality — Deterministic confirmation fast enough for synchronous request/response flows
  • Sub-cent fees — Low enough for micropayments and per-request billing
  • Lower repeated channel lifecycle costs — T7 adds payer-scoped storage credits for MPP payment channels. The credited reopen path, open_new_channel_with_storage_credit, is 60,225 gas in the channel-reserve gas snapshot.
  • Fee sponsorship — Servers can cover gas on behalf of clients so they only need stablecoins
  • 2D and expiring nonces — Parallel nonce lanes prevent payment transactions from blocking other account activity
  • High throughput — Supports the on-chain settlement volume that payment channels generate at scale

MPP payment intents on Tempo

Two intents are available on Tempo:

ChargeSession
PatternOne-time payment per requestContinuous pay-as-you-go
Latency~500ms (on-chain confirmation)Near-zero (off-chain vouchers)
Best forSingle API calls, content access, one-off purchasesLLM APIs, metered services, usage-based billing
On-chain costPer requestAmortized across many requests

Agentic payment use cases

  • Paid APIs — Charge per request without API keys, billing accounts, or signup flows.
  • MCP tools — Monetize tool calls served through the Model Context Protocol. Agents pay per call without OAuth or account setup.
  • Digital content — Charge per access for articles, data feeds, or media without subscription paywalls.

Get started with MPP on Tempo

MPP SDKs and tools

ToolPackageInstall
CLItempo requestcurl -fsSL https://tempo.xyz/install | bash
TypeScriptmppxnpm install mppx viem
Pythonpympppip install pympp
Rustmpp-rscargo add mpp

See the full SDK documentation for API reference and advanced usage.

Learn more about MPP