AI Cites You.
USDC Arrives.
Your Claude Desktop, Cursor, or custom MCP agent reads your knowledge base and pays your Solana wallet directly. ~400ms settlement, zero platform custody.
# Query a public knowledge vault
curl -X POST https://api.braindrain.xyz/v1/query \
-H "Authorization: Bearer x402_..." \
-d '{"query": "avalanche consensus"}'Protocol settlements,
in real time.
Every paid query is an on-chain SPL transfer from the buyer agent's wallet to a vault operator's payout address. The feed below merges settlements across every public vault on the protocol, polling /api/payouts every 10 seconds — no mocks, no proxies, just on-chain truth.
[Volume settled]
$21.85USDC, on protocol
[Settlements]
72confirmed tx
[Last settlement]
3d ago
real time
[Distinct agents]
8buyer wallets
- 3PwnwY…CRHY4W7aa2…gWZo+$0.253d ago
- 5hjzC2…NqHQJG7aa2…gWZo+$0.253d ago
- 3shmpA…x4qr4k7aa2…gWZo+$0.253d ago
- LLxGtD…b3WD577aa2…gWZo+$0.253d ago
- 7mwfr4…fvB51PFSjS…ZZB7+$0.253d ago
Showing latest 5 of 72 settlements · browse all vaults ↗
From question to USDC,
in four steps.
x402 fully implemented — no custom protocol deviations, no facilitator fees. Every input is Zod-bounded, every payment is on-chain, every snippet ships with its tx signature.
Agent discovers the price
The MCP server exposes
brain_drain_query_vaultwith price metadata in_meta. Agents confirm cost before they call — no surprise charges, no mid-flight 402s.[MCP tools/list response]json { "name": "brain_drain_query_vault", "title": "Query a Brain Drain vault (paid)", "_meta": { "priceVaries": true, "currency": "USDC", "network": "solana-devnet" }}Server replies 402 Payment Required
Full x402 spec via
x402-next. Status code,WWW-Authenticateheader, payment requirements — no custom protocol, no shortcuts. Audit-ready boundaries with Zod-validated inputs.[HTTP 402 response]http HTTP/1.1 402 Payment RequiredWWW-Authenticate: x402Content-Type: application/json { "amount": "0.05", "network": "solana-devnet", "recipient": "2SUm7fDR…PAYMPb3L"}CDP signs, Solana settles
Coinbase CDP signs through MPC threshold — private keys never leave the vault. The SPL transfer hits Helius RPC at
confirmedfinality. IPv4-first DNS hook keeps the round-trip tight.[Buyer terminal — settlement]log [buyer] target: /api/v/bekir-erdem/query[buyer] probe: 402 · price=0.05 USDC[buyer] signer: TransactionModifyingSigner (MPC)[buyer] X-Payment header attached✓ confirmed · 412ms · 48YttoTNkdBz…ze6Q3aLSnippets stream back
Cosine similarity over the vault's embedded chunks returns the top-K most relevant passages with citations. Payment proof returned alongside — fully auditable. Single round trip, ~3.4 s end-to-end.
[200 OK response (truncated)]json { "results": [ { "source": "x402-on-solana-primer", "score": 0.812 }, { "source": "anchor-free-solana-pattern", "score": 0.766 }, { "source": "helius-rpc-low-latency-patterns", "score": 0.704 } ], "payment": { "signature": "48Ytto…ze6Q3aL", "amountUsdc": 0.05 }}
Mount a vault. Or send your agent.
Both flows in one click.
[For operators]
Your decision log
is a paid API now.
Drop a folder of markdown — Obsidian export, Notion dump, decision log. Brain Drain chunks, embeds, and mints an x402-gated endpoint at /api/v/{your-slug}/query. You set the price, USDC settles direct to your wallet.
- $0.05–$5 per query, operator-set
- No platform custody · no waitlist
- ~30 seconds to mount 100 chunks
[For agent buyers]
Stop hallucinating.
Cite real experts.
Paste the MCP endpoint into your agent runtime. CDP MPC signs every USDC transfer — no SDK lock-in, no key handling. Pay only what you cite, get on-chain proof every round trip.
- Claude Desktop
- Cursor
- Cline
- Continue.dev
- OpenCode
- + any MCP client
Mount once.
Get paid forever.
The rail is on Solana devnet. 7 vaults indexed, 72 settlements on-chain, real USDC moving from agent wallets to operator wallets. Add yours, or send your agent — both flows take one click each.

Built on