Spend Brake

v0.4.0
io.github.KIvanow/spend-brake Checked 11 hours ago Published 22 days ago

Capped search, maps and other paid APIs over MCP, with hard dollar limits per key.

Values you need

VariableWhat it is
BRAKE_KEYrequired secret A Spend Brake virtual key (sb_live_…); its caps apply to every call
BRAKE_URLrequired The Spend Brake proxy, e.g. https://proxy.spendbrake.dev
BRAKE_API_URLrequired The Spend Brake admin API, for the budget tool and for --admin, e.g. https://app.spendbrake.dev

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add spend-brake -e 'BRAKE_API_URL=<BRAKE_API_URL>' -e 'BRAKE_KEY=<BRAKE_KEY>' -e 'BRAKE_URL=<BRAKE_URL>' -- npx -y --package=@spend-brake/mcp@0.4.0 spend-brake-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "spend-brake": {
      "args": [
        "-y",
        "--package=@spend-brake/mcp@0.4.0",
        "spend-brake-mcp"
      ],
      "command": "npx",
      "env": {
        "BRAKE_API_URL": "<BRAKE_API_URL>",
        "BRAKE_KEY": "<BRAKE_KEY>",
        "BRAKE_URL": "<BRAKE_URL>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "spend-brake": {
      "args": [
        "-y",
        "--package=@spend-brake/mcp@0.4.0",
        "spend-brake-mcp"
      ],
      "command": "npx",
      "env": {
        "BRAKE_API_URL": "<BRAKE_API_URL>",
        "BRAKE_KEY": "<BRAKE_KEY>",
        "BRAKE_URL": "<BRAKE_URL>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "BRAKE_API_URL",
      "id": "brake-api-url",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "BRAKE_KEY",
      "id": "brake-key",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "BRAKE_URL",
      "id": "brake-url",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "spend-brake": {
      "args": [
        "-y",
        "--package=@spend-brake/mcp@0.4.0",
        "spend-brake-mcp"
      ],
      "command": "npx",
      "env": {
        "BRAKE_API_URL": "${input:brake-api-url}",
        "BRAKE_KEY": "${input:brake-key}",
        "BRAKE_URL": "${input:brake-url}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.spend-brake]
command = "npx"
args = ["-y", "--package=@spend-brake/mcp@0.4.0", "spend-brake-mcp"]
env = { "BRAKE_API_URL" = "<BRAKE_API_URL>", "BRAKE_KEY" = "<BRAKE_KEY>", "BRAKE_URL" = "<BRAKE_URL>" }

For AI agents

  1. Ask the user for: BRAKE_KEY, BRAKE_URL, BRAKE_API_URL. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: tavily_search, exa_search, brave_search, serpapi_search, maps_search, maps_nearby, maps_details, maps_geocode, ….
  5. 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