x402ai-mcp

v0.1.3
io.github.ukenal/x402ai-mcp Checked 1 day ago Published 15 days ago

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

Values you need

VariableWhat it is
X402AI_BUYER_PRIVATE_KEYoptional 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_USDoptional Spending cap per server process in USD (default 0.25). Default: 0.25
X402AI_DRY_RUNoptional Set to 1 to quote prices without signing or paying.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add x402ai-mcp -- npx -y x402ai-mcp@0.1.3
Add to claude_desktop_config.json
{
  "mcpServers": {
    "x402ai-mcp": {
      "args": [
        "-y",
        "x402ai-mcp@0.1.3"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "x402ai-mcp": {
      "args": [
        "-y",
        "x402ai-mcp@0.1.3"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "x402ai-mcp": {
      "args": [
        "-y",
        "x402ai-mcp@0.1.3"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.x402ai-mcp]
command = "npx"
args = ["-y", "x402ai-mcp@0.1.3"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: embed, summarize, ask, policy_check, health, inspect.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json