Skip to main content
Install the Xenarch MCP server in Claude Desktop, Claude Code, Cursor, or any Model Context Protocol client. A single 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
Restart Claude Desktop after saving.

Other MCP clients

Any client that supports the MCP stdio transport can use the server:
The server communicates over stdin/stdout using the MCP protocol.

Wallet configuration

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. Verify npx @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).