HTTP 402,
automated.
Payments that
move at machine
speed.

402
Protocol
4 SDKs
Node · Python · Go · Rust
< 2ms
Overhead
PROTOCOL

Everything you need
to automate HTTP payments.

402 Interceptor

Drop the middleware into any HTTP stack. MPP intercepts 402 responses, negotiates the payment header, and retries the request — all transparently.

Real-time Monitoring

Trace every payment. Full execution history with on-chain tx hashes and per-request cost breakdown.

Payment Context

Persistent payment state across requests. MPP tracks nonces, receipts, and settlement status automatically.

Spend Limits & Guards

Define per-request and per-session spend caps. Fine-grained control over which endpoints can trigger payments.

CLIENT SDKs

Four languages.
One protocol.

Native SDKs for every major backend stack. Each one is a thin middleware layer — no lock-in, no new infrastructure required.

NODE.JS / TYPESCRIPT
NODE.JS / TYPESCRIPT

Express & Fastify middleware

Drop-in middleware that intercepts HTTP 402 responses and automates on-chain payment negotiation. Works with any Express-style framework in seconds.

< 2ms
overhead
100%
402 coverage
PYTHON
PYTHON

WSGI / ASGI payment layer

Native Python SDK for Django, FastAPI, and Flask. Intercepts 402 responses at the WSGI/ASGI layer and settles payments on-chain without blocking your handlers.

3 lines
to integrate
async
native
GO
GO

net/http middleware handler

Lightweight Go package that wraps any http.Handler. Detects 402 status codes, negotiates the MPP payment header, and retries the request after settlement.

zero
allocations
< 1ms
p99 latency
RUST / CLI
RUST / CLI

Tower layer & CLI relay

Axum-compatible Tower middleware layer plus a standalone CLI relay for scripting and CI pipelines. Zero-copy payment headers, full async/await support.

no_std
compatible
CLI
included
HOW IT WORKS

From 402 response
to paid request in four steps.

Intercept
01

Intercept

Middleware catches the HTTP 402 response before it reaches your application code.

Negotiate
02

Negotiate

MPP reads the payment header, resolves the price quote, and selects the on-chain settlement path.

Settle
03

Settle

The SDK broadcasts the payment transaction and waits for on-chain confirmation — all in the background.

Retry
04

Retry

The original request is replayed with the payment receipt attached. Your handler sees a normal 200.

INTEGRATIONS

Connect any chain.
Pay any API.

Native connectors for Base, Ethereum, Solana, and more. Build custom payment routes with the MPP SDK in minutes.

Agent orchestration architecture
SDK

Build custom payment routes

Define any payment handler as a route your middleware can call. Connect to Base, Ethereum, Solana, and more.

// payment route
mpp.route({
chain: 'base',
settle: async (tx) =>
wallet.send(tx)
})
LIVE API

Full REST + WebSocket API. Stream payment events and settlement confirmations directly into your product.

SECURITY

Auditable payments
from day one.

Every payment is logged on-chain, every negotiation is traceable. Built for teams that need compliance and cost visibility without compromise.

On-chain Receipts

Every payment settled with a verifiable tx hash

Full Audit Trail

Every 402 negotiation logged with full traceability

Real-time Observability

Monitor, debug, and replay any payment flow

EVM Compatible
Solana
Open Protocol
Self-hostable
Live Payment Trail
12:34:21402_intercepted
12:34:18payment_negotiated
12:34:15tx_broadcast
12:34:12chain_confirmed
12:34:09request_retried
Developer Experience

Built for developers.
Payments that just work.

terminal
# Install the MPP middleware SDK
$ npm install @mpp/middleware
# Initialize your project
$ npx mpp init
✓ Project initialized
✓ Config file created
✓ Ready to intercept 402s
HTTP 402 Intercept
On-chain Settlement
Payment Negotiation
Spend Limits
Tx Receipts
Chain Routing
Retry Logic
Payment Webhooks
Cost Tracking
Audit Logs
HTTP 402 Intercept
On-chain Settlement
Payment Negotiation
Spend Limits
Tx Receipts
Chain Routing
Retry Logic
Payment Webhooks
Cost Tracking
Audit Logs
HTTP 402 Intercept
On-chain Settlement
Payment Negotiation
Spend Limits
Tx Receipts
Chain Routing
Retry Logic
Payment Webhooks
Cost Tracking
Audit Logs
Base Mainnet
Ethereum L2
Solana Pay
USDC Routing
Payment Nonces
Middleware Hooks
SDK Plugins
Express Support
FastAPI Support
Axum Layer
Base Mainnet
Ethereum L2
Solana Pay
USDC Routing
Payment Nonces
Middleware Hooks
SDK Plugins
Express Support
FastAPI Support
Axum Layer
Base Mainnet
Ethereum L2
Solana Pay
USDC Routing
Payment Nonces
Middleware Hooks
SDK Plugins
Express Support
FastAPI Support
Axum Layer
LIVE RIGHT NOW

Payments settling
24 7, on-chain.

At any moment, thousands of HTTP 402 responses are being intercepted, negotiated, and settled on-chain — transparently, without human intervention.

3,847payments settled globally
AGENTTASKREGIONSTATUS
node-relay-7f2a
#A1B2C3
Intercepting HTTP 402 on /api/inference endpoint
us-east
running
python-sdk-3b1c
#D4E5F6
Negotiating on-chain payment — 0.004 USDC
eu-west
running
go-middleware-9d4e
#G7H8I9
Parsing MPP payment header from response
us-west
queued
rust-layer-2c8f
#J0K1L2
Broadcasting payment tx to Base mainnet
eu-central
running
cli-relay-5a3d
#M3N4O5
Confirming payment receipt — block 18,442,301
ap-south
running
fastify-hook-0c7f
#P6Q7R8
Monitoring 402 rate across 8 API endpoints
us-east
complete

Start automating
HTTP payments today.

Drop MPP middleware into your stack and let the protocol handle every 402 — negotiation, settlement, and retry included.