pay-mcp
v0.19.0x402 pay tools for MCP clients, plus a `buy` command: read the offer, consent, pay.
Values you need
| Variable | What it is | |
|---|---|---|
STARKNET_RPC_URL | optional | Starknet RPC endpoint. Optional. The buy command contacts no node unless you name one (a Starknet mainnet node; the chain it serves must then be the offer's). The chain-reading tools default to a public node not operated by Vauban. |
PAY_MCP_SEPOLIA_ACCOUNT_ADDRESS | optional | Starknet Sepolia account address for make_payment signer mode. Optional; without it make_payment uses the sponsored mode, which calls the sponsor over the network and settles a real Sepolia transfer it funds. |
PAY_MCP_SEPOLIA_PRIVATE_KEY | optional secret | Private key for that account. Optional; never required to try the tools. |
PAY_MCP_STANDARD_X402_PAYEES | optional | Standard x402 path (Starknet): comma-separated payTo addresses pay_for_resource may pay. Empty pays nobody (fail closed). * pays any payee: avoid it. |
PAY_MCP_STANDARD_X402_MAX_WEI | optional | Standard x402 path: cap on one payment in atomic units (default 0.1 STRK). |
PAY_MCP_STANDARD_X402_ACCOUNT_ADDRESS | optional | Standard x402 path: a signer of its own (falls back to PAY_MCP_SEPOLIA_*). |
PAY_MCP_STANDARD_X402_PRIVATE_KEY | optional secret | Private key for that account. Optional. |
PAY_MCP_EVM_KEYSTORE_PATH | optional | EVM path: path to your Web3 Secret Storage v3 keystore. Never a key in the environment. |
PAY_MCP_EVM_PASSWORD_PATH | optional | EVM path: path to the file holding that keystore's password. |
PAY_MCP_EVM_NETWORKS | optional | EVM path: comma-separated CAIP-2 networks pay_for_resource may pay on, e.g. eip155:84532. Empty pays nothing (fail closed). |
PAY_MCP_EVM_PAYEES | optional | EVM path: comma-separated payTo addresses pay_for_resource may pay. Empty pays nobody (fail closed). * pays any payee, up to the session cap: avoid it. |
PAY_MCP_EVM_MAX_PER_PAYMENT | optional | EVM path: cap on one payment, in atomic units of the asset (1000000 = 1 USDC). No default: unset refuses. |
PAY_MCP_EVM_MAX_PER_SESSION | optional | EVM path: cap on the total value of the signed authorizations this process hands over, per network and asset, never credited back. No default: unset refuses. |
PAY_MCP_EVM_I_ACCEPT_MAINNET_SPEND | optional | EVM path: comma-separated CAIP-2 value networks you consent to spend real money on, each named (e.g. eip155:8453). Required for any network other than Base Sepolia and Ethereum Sepolia. |
PAY_MCP_EVM_ASSETS | optional | EVM path: comma-separated <CAIP-2>/<token address> entries payable. Default: the network's known USDC only. |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add pay-mcp -- npx -y --package=@vauban-pay/mcp@0.19.0 vauban-pay-mcpAdd to
claude_desktop_config.json{
"mcpServers": {
"pay-mcp": {
"args": [
"-y",
"--package=@vauban-pay/mcp@0.19.0",
"vauban-pay-mcp"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"pay-mcp": {
"args": [
"-y",
"--package=@vauban-pay/mcp@0.19.0",
"vauban-pay-mcp"
],
"command": "npx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"pay-mcp": {
"args": [
"-y",
"--package=@vauban-pay/mcp@0.19.0",
"vauban-pay-mcp"
],
"command": "npx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.pay-mcp]
command = "npx"
args = ["-y", "--package=@vauban-pay/mcp@0.19.0", "vauban-pay-mcp"]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: jcs_hash, make_payment, verify_receipt, request_delegation_grant, check_merchant, pay_for_resource, pay_shielded.
- 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