Overview
The MPP Server is a payment-gated IPFS gateway built on the Machine Payments Protocol (MPP). It uses the HTTP 402 challenge-response pattern:- Client makes a request to upload or download a file
- Server responds with
402 Payment Requiredand a payment challenge - Client pays USDC on the Tempo network
- Client retries the request with proof of payment
- Server verifies payment and fulfills the request
Endpoints
Upload
Send aPOST request with the fileSize query parameter (in bytes). After payment, the server returns a signed Pinata upload URL that you can use to upload your file directly.
Pricing: fileSize (GB) x $0.10 x 12 months, minimum $0.01 USDC
The signed URL is valid for 120 seconds after generation.
Download
Send aGET request with the file’s CID. After payment, the server proxies the file from Pinata’s IPFS gateway with the correct Content-Type and Content-Disposition headers.
Pricing: Flat $0.01 USDC per download
Network
Production URL
The Pinata-hosted MPP Server is available at:Next Steps
Quick Start
Upload your first file with MPP
Self-Hosting
Deploy your own MPP Server