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
| Variable | Default | Description |
|---|---|---|
XENARCH_PRIVATE_KEY | — | Wallet private key |
XENARCH_NETWORK | base | base or base-sepolia |
XENARCH_RPC_URL | https://mainnet.base.org | Base RPC endpoint |
XENARCH_API_BASE | https://api.xenarch.dev | Platform API |
XENARCH_AUTO_APPROVE_MAX | — | Auto-approve payments up to this USD amount |
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).