Claude Code
Claude Desktop
Edit your config file:- macOS
- Windows
Test it
Try these prompts:- “Check if example.com has a Xenarch payment gate”
- “Pay for access to example.com and show me the content”
- “Show my Xenarch payment history”
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Claude Desktop MCP example — add Xenarch x402 payment tools to Claude with zero code. Auto-checks payment gates and pays in USDC on Base.
claude mcp add xenarch -- npx @xenarch/agent-mcp
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"xenarch": {
"command": "npx",
"args": ["@xenarch/agent-mcp"],
"env": {
"XENARCH_PRIVATE_KEY": "0xYOUR_PRIVATE_KEY"
}
}
}
}
{
"mcpServers": {
"xenarch": {
"command": "npx",
"args": ["@xenarch/agent-mcp"],
"env": {
"XENARCH_PRIVATE_KEY": "0xYOUR_PRIVATE_KEY",
"XENARCH_NETWORK": "base-sepolia",
"XENARCH_RPC_URL": "https://sepolia.base.org"
}
}
}
}
| Issue | Fix |
|---|---|
| Tools not appearing | Restart Claude Desktop. Run npx @xenarch/agent-mcp in terminal to check for errors. |
| ”No wallet configured” | Set XENARCH_PRIVATE_KEY in the env block or create ~/.xenarch/wallet.json. |
| ”Insufficient USDC” | Fund your wallet with USDC on Base. Need ~$0.01 ETH for gas too. |