NestDaddy

X402Ai Mcp

io.github.ukenal/x402ai-mcp · v0.1.1

Pay-per-call AI tools (embed, summarize, ask) from x402ai, paid in USDC on Base via x402.

Connect Runs on your machine

Terminal
claude mcp add x402ai-mcp -e X402AI_BUYER_PRIVATE_KEY=<X402AI_BUYER_PRIVATE_KEY> -e X402AI_MAX_SESSION_USD=<X402AI_MAX_SESSION_USD> -e X402AI_DRY_RUN=<X402AI_DRY_RUN> -- npx -y [email protected]
claude_desktop_config.json
{
  "mcpServers": {
    "x402ai-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "X402AI_BUYER_PRIVATE_KEY": "<X402AI_BUYER_PRIVATE_KEY>",
        "X402AI_MAX_SESSION_USD": "<X402AI_MAX_SESSION_USD>",
        "X402AI_DRY_RUN": "<X402AI_DRY_RUN>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "mcpServers": {
    "x402ai-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "X402AI_BUYER_PRIVATE_KEY": "<X402AI_BUYER_PRIVATE_KEY>",
        "X402AI_MAX_SESSION_USD": "<X402AI_MAX_SESSION_USD>",
        "X402AI_DRY_RUN": "<X402AI_DRY_RUN>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "x402ai-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "X402AI_BUYER_PRIVATE_KEY": "<X402AI_BUYER_PRIVATE_KEY>",
        "X402AI_MAX_SESSION_USD": "<X402AI_MAX_SESSION_USD>",
        "X402AI_DRY_RUN": "<X402AI_DRY_RUN>"
      }
    }
  }
}

Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.

Tools

This server runs locally, so its tools are listed by your MCP client once it starts.

Environment variables

NameDescription
X402AI_BUYER_PRIVATE_KEY
Optional, secret
Buyer wallet private key (hex), used only to sign payments locally. Needed only for the paid tools. Use a wallet holding only what you are willing to lose.
X402AI_MAX_SESSION_USD
Optional
Spending cap per server process in USD (default 0.25).
X402AI_DRY_RUN
Optional
Set to 1 to quote prices without signing or paying.

Details

Package[email protected] (NPM, stdio)
First published26 Oct 2026
Last updated26 Oct 2026
Registry nameio.github.ukenal/x402ai-mcp

More other servers See all

Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.