SylvainCostes/fastapi-mpp

FastAPI middleware for Machine Payments Protocol (MPP). Add 402 Payment Required challenges, secure sessions, and receipt validation to your APIs for AI agents.

40
/ 100
Emerging

Implements pluggable storage backends (in-memory, Redis with atomic `GETDEL` operations) and hardened replay protection through HMAC-signed session tokens bound to route scope and budget tracking. Supports session-metered charging with configurable max budgets and optional idempotency keys, alongside cryptographic receipt validation via Tempo or custom validators, with fail-closed security in production and HTTP Payment auth draft semantics.

Available on PyPI.

Maintenance 13 / 25
Adoption 9 / 25
Maturity 18 / 25
Community 0 / 25

How are scores calculated?

Stars

3

Forks

Language

Python

License

MIT

Last pushed

Mar 19, 2026

Monthly downloads

293

Commits (30d)

0

Dependencies

3

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/agents/SylvainCostes/fastapi-mpp"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.