[ PROTOCOL // ACTIVE // SOLANA DEVNET ]

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"}'
AgentCDP MPCBrain Drainx402 + RAGPhantom CashUSDC payout
[SYS_UPTIME]99.98%Live validator feed
[AVG_SETTLEMENT]~400msDirect token route
[PROTOCOL_FEE]0.00 USDCBrain Drain holds 0%
[INTEGRATION]x402 SPLClaude & Cursor native
[Solana devnet · live]

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.85

USDC, on protocol

[Settlements]

72

confirmed tx

[Last settlement]

3d ago

real time

[Distinct agents]

8

buyer wallets

Showing latest 5 of 72 settlements · browse all vaults ↗

[ Protocol ]

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.

  1. Agent discovers the price

    The MCP server exposes brain_drain_query_vault with 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"  }}
  2. Server replies 402 Payment Required

    Full x402 spec via x402-next. Status code, WWW-Authenticate header, 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"}
  3. CDP signs, Solana settles

    Coinbase CDP signs through MPC threshold — private keys never leave the vault. The SPL transfer hits Helius RPC at confirmed finality. 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…ze6Q3aL
  4. Snippets 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  }}
[ Two sides, one rail ]

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
[ Protocol · live ]

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

SolanasettlementHeliusrpcCoinbase CDPbuyer walletPhantomoperator authx402payment protocolAnthropic MCPagent surfaceGemini 3.1 Proembeddings + reasoningSupabaseregistry + storageNext.js 16frameworkVerceldeploymentSolanasettlementHeliusrpcCoinbase CDPbuyer walletPhantomoperator authx402payment protocolAnthropic MCPagent surfaceGemini 3.1 Proembeddings + reasoningSupabaseregistry + storageNext.js 16frameworkVerceldeployment