agentpay
v3.1.0Non-custodial x402 payment MCP server for AI agents.
Values you need
| Variable | What it is | |
|---|---|---|
AGENT_PRIVATE_KEY | required secret | Private key for the agent wallet (hex string) |
BASE_RPC_URL | optional | Base RPC URL for on-chain operations |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add agentpay -e 'AGENT_PRIVATE_KEY=<AGENT_PRIVATE_KEY>' -- npx -y agentpay-mcp@3.1.0Add to
claude_desktop_config.json{
"mcpServers": {
"agentpay": {
"args": [
"-y",
"agentpay-mcp@3.1.0"
],
"command": "npx",
"env": {
"AGENT_PRIVATE_KEY": "<AGENT_PRIVATE_KEY>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"agentpay": {
"args": [
"-y",
"agentpay-mcp@3.1.0"
],
"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": {
"agentpay": {
"args": [
"-y",
"agentpay-mcp@3.1.0"
],
"command": "npx",
"env": {
"AGENT_PRIVATE_KEY": "${input:agent-private-key}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.agentpay]
command = "npx"
args = ["-y", "agentpay-mcp@3.1.0"]
env = { "AGENT_PRIVATE_KEY" = "<AGENT_PRIVATE_KEY>" }For AI agents
- Ask the user for: AGENT_PRIVATE_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- 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: deploy_wallet, get_wallet_info, send_payment, check_spend_limit, queue_approval, x402_pay, get_transaction_history, x402_session_start, ….
- 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