Python SDK for the Machine Payments Protocol
pympp is a growing Python project in the AI payments / x402 ecosystem, focused on machine-payments, machine-payments-protocol, mpp, payments. It currently has 38 GitHub stars and 21 forks, and sits alongside related tools like mppx, mpp-rs, takjil-agents-mpp, awesome-mpp, mpp-swift, MPP-Inspector.
Python SDK for the Machine Payments Protocol
Full documentation, API reference, and guides are available at mpp.dev/sdk/python.
pip install pympp
from mpp import Credential, Receipt
from mpp.server import Mpp
from mpp.methods.tempo import tempo, ChargeIntent
server = Mpp.create(
method=tempo(
intents={"charge": ChargeIntent()},
recipient="0x742d35Cc6634c0532925a3b844bC9e7595F8fE00",
),
)
@app.get("/paid")
@server.pay(amount="0.50")
async def handler(request, credential: Credential, receipt: Receipt):
return {"data": "...", "payer": credential.source}
from mpp.client import Client
from mpp.methods.tempo import tempo, TempoAccount, ChargeIntent
account = TempoAccount.from_key("0x...")
async with Client(methods=[tempo(account=account, intents={"charge": ChargeIntent()})]) as client:
response = await client.get("https://mpp.dev/api/ping/paid")
| Example | Description |
|---|---|
| api-server | Payment-gated API server |
| fetch | CLI tool for fetching URLs with automatic payment handling |
| mcp-server | MCP server with payment-protected tools |
Built on the "Payment" HTTP Authentication Scheme. See mpp-specs for the full specification.
MIT OR Apache-2.0
TypeScript Interface for Machine Payments Protocol
Rust SDK for the Machine Payments Protocol
Tempo Agent Chalengger
The MPP registry — 100+ Machine Payments Protocol tools, SDKs, services, and payment methods across 15+ chains. The definitive directory for Stripe + Tempo agent payments.
Canonical Swift SDK for the Machine Payments Protocol (MPP) — pay for and charge for machine-to-machine API calls over HTTP 402.
A CLI tool and web dashboard for inspecting, testing, and debugging Machine Payments Protocol flows. Think "Postman for HTTP 402" — it visualizes the full challenge-response-receipt cycle, simulates payment failures, validates receipt signatures, benchmarks session channels, and generates test reports.
Alephant is an open-source AI Agent Gateway for routing, tracking, and controlling LLM usage across AI agents, members, and workflows, and for publishing agent capabilities as paid endpoints with x402 and MPP payment rails.
Specifications for the Machine Payments Protocol - powered by the "Payment" HTTP authentication scheme
Website for the Machine Payments Protocol
Building blocks for Agentic payments (x402, MPP, AP2) for TypeScript, Rust, Go, Python, Ruby, PHP, Lua, Kotlin and Swift.
Building blocks for Agentic payments (x402, MPP, AP2) for TypeScript, Rust, Go, Python, Ruby, PHP, Lua, Kotlin and Swift.
A universal framework designed to allow agents and other utilities to transparently make machine payments using web infrastructure.