What is MPP
The Method Payment Protocol is an IETF-flavoured spec for attaching prices to JSON-RPC methods and MCP tools. Where x402 paywalls HTTP endpoints, MPP paywalls methods. That makes it the natural fit for Model Context Protocol servers and structured RPC services. AlgoVoi is registered in the public MPP services catalogue atmpp.dev and can be discovered programmatically by MPP clients.
When to use MPP
Monetised MCP tools
Sell access to a
database.query or web.scrape tool inside an MCP server.JSON-RPC paywalls
Charge per
eth_call shadow on your archive node, per getBlock on your indexer.Method-level pricing
Different prices for
read versus write methods on the same service.Agent-discoverable services
AI agents browsing the MPP registry and paying to use any service that fits.
How MPP differs from x402
| x402 | MPP | |
|---|---|---|
| Granularity | Per HTTP endpoint | Per method (RPC or MCP tool) |
| Discovery | Walk endpoints | Public registry at mpp.dev |
| Auth header | Authorization: Payment … | Authorization: Payment … |
| Challenge format | payment_requirements JSON | Challenge object with method name |
| Best for | REST APIs and content paywalls | RPC services and MCP tools |
Authorization: Payment scheme on the wire. AlgoVoi accepts either on the same gateway.
Quickstart
1. Register your service
Define a service entry that points at your MPP-paywalled methods. AlgoVoi can register the entry onmpp.dev for you, or you can self-publish.
Service definitions live in schemas/services.ts upstream. AlgoVoi’s own entry is published there as the canonical reference. See PR #556.
2. Issue a challenge
Client calls a paid method without payment. Server returns a Challenge:3. Pay and present credential
Client pays on-chain, builds aCredential referencing the tx, and retries: