Skip to content
Grok

Spend Guard for Grok

io.github.vulinh1704/spend-guard

Budgets, payee allowlists, price-spike checks and human approval for agents paying x402 paywalls

client:Grok transport:stdio runtime:npm

Install Spend Guard in Grok

.mcp.json (in your project root)

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "spend-guard": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@vulinh1704/spend-guard"
      ],
      "env": {
        "SPEND_GUARD_POLICY": "<SPEND_GUARD_POLICY>",
        "SPEND_GUARD_RAILS": "<SPEND_GUARD_RAILS>",
        "SPEND_GUARD_LEDGER": "<SPEND_GUARD_LEDGER>",
        "SPEND_GUARD_DASHBOARD_PORT": "<SPEND_GUARD_DASHBOARD_PORT>",
        "SPEND_GUARD_APPROVAL_TIMEOUT": "<SPEND_GUARD_APPROVAL_TIMEOUT>",
        "SPEND_GUARD_MOCK_NETWORK": "<SPEND_GUARD_MOCK_NETWORK>",
        "ARC_PRIVATE_KEY": "<ARC_PRIVATE_KEY>",
        "NEAR_ACCOUNT_ID": "<NEAR_ACCOUNT_ID>",
        "NEAR_PRIVATE_KEY": "<NEAR_PRIVATE_KEY>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

Spend Guard in other clients