xpay
MCP server by xona-labs Community
Xona Wallet gives AI agents a multi-network USDC wallet for x402 payments, AgenC marketplace hires and service discovery. It runs as an MCP server, a CLI and an SDK.
Install xpay
Built from the published package, never by AI.
claude mcp add xpay -- npx -y @xona-labs/xpayRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"xpay": {
"args": [
"-y",
"@xona-labs/xpay"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"xpay": {
"args": [
"-y",
"@xona-labs/xpay"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"xpay": {
"args": [
"-y",
"@xona-labs/xpay"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add xpay -- npx -y @xona-labs/xpay{
"mcpServers": {
"xpay": {
"args": [
"-y",
"@xona-labs/xpay"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add xpay npx -y @xona-labs/xpayGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the xpay block.
About
Xona Wallet is a wallet and payment layer for agentic commerce. It holds multi-network USDC, pays x402 endpoints, and searches a catalog of more than 21,000 x402 services alongside AgenC marketplace agent listings. It can also hire on-chain agents with SOL escrow. It ships as the npm package @xona-labs/xpay, with a CLI, an SDK and an MCP server.
In a host such as Claude Desktop, Cursor or Codex, the MCP server needs no keys and no xpay init. On first boot the agent gets its own wallet, and its Solana address is printed to stderr so the user can fund it with USDC. Spending caps and allowed hosts are set through a guardrail. It is aimed at agent builders who want to find and pay for services without writing payment code.
Written from the project's README and checked against it.
Tools it gives your assistant
xpay_discoverSearches x402 services across chains and AgenC marketplace agent listings.xpay_useUses a service by URL.xpay_doRuns a task described in plain language through the wallet.xpay_transferSends a direct stablecoin transfer, subject to the guardrail.xpay_balanceShows token balances per network for the active profile.xpay_reportReturns a USDC activity report for the wallet.xpay_guardrailReads or edits spending caps and allowed hosts.xpay_token_findFinds a Solana token by ticker, name or mint address.xpay_swapSwaps tokens in the wallet via Jupiter on Solana.xpay_tradeTrades tokens on Robinhood Chain via Uniswap V3 and NOXA Fun.
What you need
- Node.js with npm (the server starts with npx)
- USDC funds on Solana mainnet or Base for payments
- An MCP host such as Claude Desktop, Cursor or Codex
| Setting | Needed | What it is |
|---|---|---|
XPAY_Environment variable | Optional | Wallet profile to load or create (default: active profile, else "default") |
XPAY_Environment variable, secret | Optional | Encrypts the auto-generated wallet at rest; also unlocks an existing encrypted profile |
XPAY_Environment variable | Optional | Override the ~/.xpay/ data directory |
XPAY_Environment variable | Optional | Set to error instead of auto-generating a wallet when none is configured |
XPAY_Environment variable, secret | Optional | Use an existing Solana secret key (base58) instead of the generated wallet |
XPAY_Environment variable, secret | Optional | Use an existing EVM private key instead of the generated wallet |
XPAY_Environment variable | Optional | EVM network for XPAY_EVM_KEY (e.g. base, stable, base-sepolia) |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Find a cheap weather API on x402 and call it for me
- Check my Xona wallet balance across all networks
- Send 5 USDC to this address and keep it under my guardrail limit
Good to know
- Biometric unlock with Touch ID is available on macOS only.
- Payments are limited by the spending caps set in the guardrail.
- Some tools, such as trading and swaps, depend on the network and token availability described in the source.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to xpay
All alternatives →Connects AI assistants to Stripe through the hosted Stripe MCP server at mcp.stripe.com. It is for developers building AI-powered products and businesses on Stripe.
Gives AI assistants market data, technical analysis, backtests, options activity and news sentiment for stocks, crypto, FX and metals. Built for traders and developers using Claude, ChatGPT, Cursor or other MCP clients. Its outputs are informational, not financial advice.
CCXT is an official MCP server for market data and trading across more than 100 exchanges and prediction markets. It is aimed at developers, traders and AI agents.
Calculates over 1400 transparent financial methods from raw statements and exposes them to AI assistants through an MCP server. Suited to analysts and developers who want to see how each metric is computed.
Lets an AI assistant search x402 APIs and pay for them in USDC from a local, non-custodial wallet. Built for people and agents that need to pay APIs per call under spend caps.
Lets AI assistants explore a free database of over 300,000 symbols, including equities, ETFs, funds, indices, currencies and cryptocurrencies, categorised by sector, industry and country. It suits private investors who want to discover products rather than look up fundamentals or stock data.
Compare with mcp, TradingMCP or CCXT
xpay: common questions
Do I need an API key to use Xona Wallet with an MCP host?
No. The source says the MCP server needs no code, no keys and no xpay init, because it creates a wallet on first boot.
How do I keep the agent from spending too much?
Spending caps and allowed hosts are set with the guardrail. The source lists xpay_guardrail and the guardrail commands for this.
Which networks does the wallet support?
The source mentions Solana, Base, BNB Chain, other EVM networks, Robinhood Chain and the Stable chain.
How do I install xpay?
In Claude Code run claude mcp add xpay -- npx -y @xona-labs/xpay. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is xpay the official server?
xpay is a community project by xona-labs, not verified by a company domain.
Is xpay free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is xpay safe to use?
It scores 83 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to xpay?
Similar MCP servers: mcp, TradingMCP, CCXT, Finance Toolkit.
Does xpay work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
