@xenarch/agent-mcp) gives AI agents three tools to discover, pay for, and track x402-gated content. It handles wallet management, on-chain USDC payments, and access token retrieval.
What it does
| Tool | Description |
|---|---|
xenarch_check_gate | Check if a URL or domain has a payment gate. Returns price, contract details, and payment instructions. |
xenarch_pay | Execute a USDC micropayment on Base L2 and return a Bearer access token. |
xenarch_get_history | List past payments with tx hashes, amounts, and timestamps. |
Supported MCP clients
- Claude Desktop
- Claude Code
- Any MCP-compatible client (Cursor, Cline, etc.)
Quick setup
How agents use it
An agent with the Xenarch MCP server can:- Discover: “Check if example.com has a paywall” → calls
xenarch_check_gate - Pay: “Pay for access” → calls
xenarch_pay, sends USDC on Base - Access: Uses the returned Bearer token to fetch gated content
- Review: “Show my payment history” → calls
xenarch_get_history