L402 turns a paywall into something a machine can answer: the resource returns an offer, and this pays it. What that buys you is an agent that gets past a metered API or a paid page without stopping to ask you for a card.
An MCP server for Fewsats, a wallet that lets AI agents purchase things. It pays L402 offers — the payment-required response a paywalled resource hands back — using the payment methods on your Fewsats account.
- The current balance of your Fewsats wallet
- The payment methods available on the account
- An L402 offer paid by ID, taking the full offer object — amounts, currency, description, payment context token and request URL — and returning the payment status
- The details of any payment, read back by payment ID
A Fewsats account and an API key from fewsats.com, kept in the environment. Run it with `uvx fewsats-mcp`, or `pip install fewsats-mcp` and run it as a script. This is a spending capability: any client holding the key can pay offers, so fund the wallet with what you are prepared for it to spend and check the balance before widening access.
One command plus a key — uvx fewsats-mcp, then supply credentials
