Budgets, payee allowlists, price-spike checks and human approval for agents paying x402 paywalls
Maintain this server? Claim it
This server only runs locally, from a package. Install it with the instructions on this page to try it.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
claude mcp add spend-guard \ -- npx -y @vulinh1704/[email protected]
Environment
SPEND_GUARD_POLICY (optional, not in the config above): Policy JSON file: networks, budgets, approval amount, spike ratio, known services and their payees. Without one, every payment waits for your approval.SPEND_GUARD_RAILS (optional, not in the config above): How to pay: mock (pays nothing), near, arc, gateway, or a comma list. arc and gateway need ARC_PRIVATE_KEY, near needs NEAR_ACCOUNT_ID and NEAR_PRIVATE_KEY.SPEND_GUARD_LEDGER (optional, not in the config above): Decisions file, read back on start so a restart keeps today's spend; servers on one file share one budget. Default ~/.spend-guard/ledger.jsonl; off keeps it in memory.SPEND_GUARD_DASHBOARD_PORT (optional, not in the config above): Port of the approval dashboard on 127.0.0.1. 0 picks a free one; off means no dashboard, and payments that need approval are declined.SPEND_GUARD_APPROVAL_TIMEOUT (optional, not in the config above): Seconds a payment waits for your answer before it is declined. Raise it together with your client's tool timeout.SPEND_GUARD_MOCK_NETWORK (optional, not in the config above): Network the mock rail pretends to pay on.ARC_PRIVATE_KEY (optional, not in the config above): Agent key for the arc and gateway rails. Testnet keys only.NEAR_ACCOUNT_ID (optional, not in the config above): Agent account for the near rail (testnet).NEAR_PRIVATE_KEY (optional, not in the config above): Agent key for the near rail. Testnet keys only.We don't run packages, so we can't list this server's tools.