MPP
Pay-per-use AgentMail with Stripe’s Machine Payments Protocol
Getting started
MPP (Machine Payments Protocol) is Stripe’s open protocol that enables machine-to-machine payments. By integrating MPP with AgentMail, your agents can pay for API usage directly without managing API keys or subscriptions.
Prerequisites
- A crypto wallet with funds (EVM-compatible wallet)
- Node.js installed
Install dependencies
Quickstart
How it works
When you pass an mppx client to AgentMailClient, the SDK automatically handles payment negotiation for each API request. The MPP client signs payments using your wallet, enabling your agent to pay per request seamlessly.
This means your agent can use the full AgentMail API (inboxes, messages, threads, attachments) without needing a traditional API key. Payment happens per-request via Stripe’s Machine Payments Protocol.
