npx command wires up three tools for x402 payments — xenarch_check_gate, xenarch_pay, and xenarch_get_history — no cloning, no build step, no API key.
Prerequisites
- Node.js 18+
- A wallet with USDC on Base (+ small ETH for gas)
Claude Code
Claude Desktop
Edit your config file:- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Other MCP clients
Any client that supports the MCP stdio transport can use the server:Wallet configuration
- Environment variable
- Config file
- Auto-generate
Set
XENARCH_PRIVATE_KEY in the MCP server’s env block:Configuration variables
Testnet
For testing without real funds:Troubleshooting
Tools not appearing: Restart your MCP client. Verifynpx @xenarch/agent-mcp runs without errors in your terminal.
“No wallet configured”: Set XENARCH_PRIVATE_KEY or create ~/.xenarch/wallet.json.
“Insufficient USDC”: Fund your wallet with USDC on Base. You also need a small amount of ETH for gas (~$0.01).