Agent Donations (MPP)
Let an AI agent — or any program — donate to OSE with one HTTP request. It pays over MPP, the Machine Payments Protocol by Stripe.
Endpoint
POST https://mpp.endowment.dev/donate
Answers 402 with a payment challenge. Pay it, send the same request
again, get 200. Spec: /openapi.json,
/llms.txt.
Donate
Link CLI
npx @stripe/link-cli auth login npx @stripe/link-cli mpp pay https://mpp.endowment.dev/donate \
-X POST \
-d '{"amount":"25","donor":{"name":"Jane Doe","email":"jane@example.com"}}' \
--context "Donate 25 USD to the Open Source Endowment" Claude Code
claude mcp add link -- npx -y @stripe/link-cli --mcp Donate $25 to the Open Source Endowment at https://mpp.endowment.dev/donate
using Link. My name is Jane Doe, my email is jane@example.com. Your Own Code
import { Mppx, stripe } from 'mppx/client'
const mppx = Mppx.create({
methods: [stripe.charge({ createToken /* returns a Stripe SPT */ })],
})
// Pays the 402 challenge, then retries the same request.
const res = await mppx.fetch('https://mpp.endowment.dev/donate', {
method: 'POST',
headers: { 'content-type': 'application/json' },
body: JSON.stringify({
amount: '25',
donor: { name: 'Jane Doe', email: 'jane@example.com' },
}),
}) Request Body
{
"amount": "25",
"donor": {
"name": "Jane Doe",
"email": "jane@example.com",
"anonymous": false,
"business": "Acme Inc."
},
"note": "Keep open source alive",
"agent": "Claude for Jane Doe"
} amountUSD, "1" to "10000". Default "1".
optional
donor.emailReceipt goes here.
required
donor.nameFull name.
required unless anonymous
donor.anonymousHide the name publicly.
optional
donor.businessWhen giving for an organization.
optional
donor.addressPostal address.
optional
noteMessage or dedication.
optional
agentWho acted, e.g. "Claude for Jane".
optional
Response
{
"status": "received",
"amount": "25.00",
"currency": "usd",
"donor": { "name": "Jane Doe", "business": null, "receipt_email": "jane@example.com" },
"message": "Thank you for supporting open source. Stripe sends the tax receipt to the donor email."
} Limits
- $1 to $10,000 per gift, one-time, card via Stripe Link.
- No MPP wallet? Use the Stripe card page.
- People donate at every.org.