What You’re Building
An AI agent that can:- Discover merchants from the decentralized on-chain registry
- Read their service manifests and pricing
- Check their reputation and trust scores
- Pay for services with USDC on Solana
- Return the purchased data to you
Option A: MCP Client (Zero Code)
Connect Claude Desktop to the MCP server and let it handle everything.1
Clone & Build
2
Configure MCP Client
Add the server to your MCP client config:Restart Claude Desktop.
3
Create & Fund a Wallet
Open Claude and ask: “Create a new wallet for me”Claude will create an agent wallet and display the public key. Fund it with:
- Devnet SOL (for gas) — use faucet.solana.com or
solana airdrop 2 <PUBLIC_KEY> --url devnet - Devnet USDC — transfer from your existing wallet
4
Run the Autonomous Purchase
Paste this prompt into Claude:
Query the on-chain agent registry to discover available merchants. Pick a merchant, check their reputation, read their manifest, then buy the cheapest service they offer. Show me the result and the Solana explorer link.
What Claude Does Autonomously
No human touched steps 1–7. The agent discovered, evaluated, paid, and received data completely autonomously.
Option B: SDK Integration (Programmatic)
If you want to build a buyer agent programmatically:Available MCP Tools
Discovery (free, read-only)
Payment
Wallet
How the On-Chain Registry Works
The registry is fully decentralized — it lives on the Solana blockchain, not in any database.- Registration: Merchants send an SPL Memo transaction containing their manifest URL — cost: ~$0.001, permanent.
- Discovery: Buyers call
getSignaturesForAddresson the registry wallet, parse valid memos, and verify each manifest is live. - No gatekeeper: Anyone can register. No approval process. No single point of failure.
- Survivability: If every server goes offline, any buyer can reconstruct the full registry from a fresh RPC call.