Skip to content
Claude Code

x402 api for Claude Code

io.github.fernsugi/x402-api

DeFi data API for AI agents — pay-per-call via x402/USDC on Base

client:Claude Code transport:stdio runtime:npm

Install x402 api in Claude Code

run in your project directory

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

claude mcp add x402-api -e X402_API_BASE_URL=<X402_API_BASE_URL> -- npx -y @x402-api/mcp-server

Adds it for this project only. Append --scope user to make it available everywhere. Claude Code docs

x402 api in other clients