Quickstart: connect an MCP client
Add Ayo to Claude, Cursor or any MCP client so it pays listed services from a private balance.
You need a Solana wallet in your browser with some SOL and USDC, Node 22, and an MCP client that supports stdio servers (such as Claude Desktop or Cursor).
Make a private wallet and deposit
Open /app, connect your wallet, press Make a private wallet and sign. Then press Deposit and move some USDC into your private balance.
Create the agent
Go to /app/agents, press New agent, name it, pick USDC and set an allowance. Sign the two transactions. Copy
AYO_AGENT_KEYfrom the done screen: it's shown once, beside the MCP config and the SDK snippet.Add Ayo to your MCP client
Add the
ayoserver to your client's MCP configuration file:mcp.json { "mcpServers": { "ayo": { "command": "npx", "args": ["-y", "--package=https://ayo.money/ayo-mcp-0.1.0.tgz", "ayo-mcp"], "env": { "AYO_AGENT_KEY": "<your-agent-key>", "AYO_RING": "spr", "AYO_RPC_URL": "<your-helius-mainnet-rpc-url>", "AYO_API_URL": "https://api.ayo.money" } } } }Restart the client so it starts
ayo-mcpand loads its two tools:ayo_balanceandayo_fetch.Check the balance and make a paid call
Ask the client to check its Ayo balance. It calls
ayo_balanceand returns the agent's shielded balance per mint along with its agent and Ring addresses.Then ask it to fetch any listed service endpoint from /app/services. It calls
ayo_fetch. On a402withAyo-Hello, the server opens a tab, repeats the request with a signed voucher, and returns the response. Free URLs pass through without opening a tab.Watch it
Open the agent's page in the app. Each paid call appears in the live owner feed with its amount. Switch to the chain view to see what anyone else sees: a tab opened between two addresses, with no amount. When the client closes (or after the tab sits idle),
ayo-mcpsettles open tabs with one confidential transfer.
Next
- MCP server reference: tool schemas, environment variables and lifecycle
- Quickstart: pay from an agent: call
agent(key).fetchdirectly from Node - Tabs and vouchers: what happens on each call