Two minutes: a real payment on LocalNet, spend limits, TestNet and MainNet.
What you can build
Sell an MCP tool
Put a price on each tool of a FastMCP server. Any MCP client with a wallet can call it.
Paywall an HTTP API
Charge per request on a FastAPI or Flask route, using the official x402 SDK.
Let your agent pay
Give an agent a wallet and a budget. It pays for tools on its own and refuses anything over its limits.
Why it works for both sides
For the seller, a price is one line of code:prices={"summarize": 5000}. Payments land directly in your Algorand account, in ALGO or USDC, with nothing in between taking a cut. The payment is checked before your tool runs.
For the buyer, you pay only when the call succeeds. The server checks the payment, runs the tool, and submits the payment to the chain only if the tool returned a result. If the tool fails, nothing is charged. The seller pays the network fee, so the buyer’s balance goes down by exactly the price shown.
For whoever owns the agent, spend limits are checked before anything is signed: a maximum per call, and which assets, networks and recipients may be paid. Both clients apply a limit even if you set none, refusing anything over 1 ALGO or 1 USDC per call until you raise it.
How it looks in code
What’s in the box
x402-avm is three open-source packages. Most projects need only one.
All three follow the open x402 standard and the official Algorand
exact scheme, so they work with any other x402 software on Algorand.
x402-avm is an independent open-source project. It is not affiliated with GoPlausible’s x402-avm packages, from which x402-algorand is derived (see NOTICE).