ClawPay MCP — Non-Custodial x402 Payments for AI Agents

v1.2.0
io.github.up2itnow0822/clawpay-mcp Checked 21 hours ago Published 9 months ago

Non-custodial x402 payments for AI agents.

Values you need

VariableWhat it is
AGENT_PRIVATE_KEYrequired secret Private key for the agent wallet (hex, without 0x prefix)
BASE_RPC_URLoptional Base RPC URL (defaults to public Base mainnet)

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add clawpay-mcp -e 'AGENT_PRIVATE_KEY=<AGENT_PRIVATE_KEY>' -- npx -y clawpay-mcp@1.1.2
Add to claude_desktop_config.json
{
  "mcpServers": {
    "clawpay-mcp": {
      "args": [
        "-y",
        "clawpay-mcp@1.1.2"
      ],
      "command": "npx",
      "env": {
        "AGENT_PRIVATE_KEY": "<AGENT_PRIVATE_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "clawpay-mcp": {
      "args": [
        "-y",
        "clawpay-mcp@1.1.2"
      ],
      "command": "npx",
      "env": {
        "AGENT_PRIVATE_KEY": "<AGENT_PRIVATE_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "AGENT_PRIVATE_KEY",
      "id": "agent-private-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "clawpay-mcp": {
      "args": [
        "-y",
        "clawpay-mcp@1.1.2"
      ],
      "command": "npx",
      "env": {
        "AGENT_PRIVATE_KEY": "${input:agent-private-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.clawpay-mcp]
command = "npx"
args = ["-y", "clawpay-mcp@1.1.2"]
env = { "AGENT_PRIVATE_KEY" = "<AGENT_PRIVATE_KEY>" }

For AI agents

  1. Ask the user for: AGENT_PRIVATE_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: deploy_wallet, get_wallet_info, send_payment, check_spend_limit, queue_approval, x402_pay, get_transaction_history, x402_session_start, ….
  5. 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