Skip to content
Grok

x402 api for Grok

io.github.fernsugi/x402-api

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

client:Grok transport:stdio runtime:npm

Install x402 api in Grok

.mcp.json (in your project root)

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

{
  "mcpServers": {
    "x402-api": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@x402-api/mcp-server"
      ],
      "env": {
        "X402_API_BASE_URL": "<X402_API_BASE_URL>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

x402 api in other clients