x402-payagent-mcp
v4.1.0Pay x402 APIs in USDC on Base, Solana, and BNB Chain with spend mandates, receipts, idempotency.
Values you need
| Variable | What it is | |
|---|---|---|
ARISPAY_API_KEY | optional 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_KEY | optional 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.0Add 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
- 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).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: setup, discover, inspect, pay, balance, history, check_payment_signal.
- 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