x402-payagent-mcp

v4.1.0
io.github.stevemilton/x402-payagent-mcp Checked 1 day ago Published 3 months ago

Pay x402 APIs in USDC on Base, Solana, and BNB Chain with spend mandates, receipts, idempotency.

Values you need

VariableWhat it is
ARISPAY_API_KEYoptional secret ArisPay developer API key (ap_live_… / ap_test_…). Optional — the setup tool can self-provision one from just an email, or set PAYAGENT_PRIVATE_KEY to sign locally with no account.
PAYAGENT_PRIVATE_KEYoptional secret EVM private key for permissionless local signing (zero-signup mode): pay signs x402 payments with it directly — no ArisPay account needed. Generate one with `npx payagent wallet new`. Never sent to any server.

npm (npx) discovery passed

Requires Node.js 18+

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

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: setup, discover, inspect, pay, balance, history, check_payment_signal.
  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