Skip to main content

X402 API

io.github.fernsugi/x402-api

v1.0.5Updated Sep 30, 2026stdio · npm

Eight paid DeFi tools: prices, gas, swaps, token security, holders, yields, funding and wallets

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add x402-api -- npx -y @x402-api/[email protected]

Configuration

5 settings.

  • X402_WALLET_PRIVATE_KEY
    Env var· optional· secret
    Base wallet private key for optional EIP-3009 auto-pay. Default mode inspects payment requirements without paying.
  • X402_API_BASE_URL
    Env var· optional
    x402 API base URL (default: https://x402-api.fly.dev)
  • X402_MAX_PER_CALL_USDC
    Env var· optional
    Maximum USDC allowed per automatic tool call (default: 0.01)
  • X402_REFERRAL_SOURCE
    Env var· optional
    Optional referral label: github, glama, nohumans, bazaar, mcp, eliza, demo or test. Default mcp.
  • X402_EXPECTED_PAY_TO
    Env var· optional
    Expected payment recipient; defaults to the official x402-api wallet. Change only when using a trusted alternative deployment.

Listed in the official MCP Registry since Sep 30, 2026. Mirrored daily; last checked Nov 26, 2026.