MCP server
Drop xPay into any MCP host with no code and no keys — the agent gets its own fundable wallet.
Drop xPay into any MCP host — Claude Desktop, Cursor, Codex — with no code and no keys. On first run the agent is given its own wallet; the address is printed to the server log, so fund it with USDC and the agent can pay. The wallet persists, so the address stays stable across restarts.
{
"mcpServers": {
"xpay": {
"command": "npx",
"args": ["-y", "@xona-labs/xpay", "mcp"]
}
}
}Already have a wallet? Set XPAY_SOLANA_SECRET in the config's env, or point at an xpay init profile with XPAY_PROFILE + XPAY_PASSPHRASE — either takes precedence over the generated wallet.
The host then exposes seven tools: xpay_discover, xpay_use, xpay_do, xpay_transfer, xpay_balance, xpay_report, xpay_guardrail.
Smart network routing. When a service accepts more than one network, xPay pays from whichever wallet has the balance — a $0 Base wallet falls through to a funded Solana one. If none can cover the cost, the call fails fast with a clear per-network balance message instead of a raw error.