# Retry Budget Guard

> Retry Budget Guard is a paid MCP server for developer tools. Pay-per-call retry budget calculator for AI agents that survives restarts. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Paid
- **Platforms:** API, Web
- **Website:** https://retry-budget-guard.fmf-x402.workers.dev/docs
- **MCP Registry name:** io.github.GeminiGeorge22/retry-budget-guard
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-27

## About

Retry Budget Guard keeps the spending limit for retries in its own service rather than inside the agent, so a crash, restart or replan cannot reset the count. You send a unit cost, a maximum number of attempts and a backoff interval, and it projects what the retry loop will cost and tracks the remaining budget.

Access is pay-per-call at $0.002 per request, paid in USDC through x402 or MPP on Tempo. There is no account or API key to create, and requests that fail validation or hit an upstream error return 402 and are not charged. An empty request returns a demo calculation for 20 unbounded retries.

It is aimed at developers and operators running agents or scheduled jobs that call paid or metered APIs, where an unlimited retry loop can quietly run up a cloud bill. It is exposed both as a plain HTTP route and as an MCP server over Streamable HTTP.

## Features

- **Projected retry cost:** Calculates the total expected spend from unit cost, maximum attempts and backoff settings.
- **Budget kept outside the agent:** Stores the budget server-side so restarts or replans cannot grant a fresh allowance.
- **MCP server access:** Exposes the calculator as a Streamable HTTP MCP endpoint for compatible AI clients.
- **No account required:** Pay per successful call without signing up or managing an API key.
- **Failed calls not charged:** Invalid input or upstream failures return 402 and are not billed.

## Good for

- Capping the total spend of an agent that retries failed API calls
- Estimating the worst-case cost of a retry policy before deploying it
- Enforcing a retry allowance that persists across agent restarts
- Adding a spend guard to MCP-connected coding or automation assistants

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http retry-budget-guard https://retry-budget-guard.fmf-x402.workers.dev/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "retry-budget-guard": {
      "type": "http",
      "url": "https://retry-budget-guard.fmf-x402.workers.dev/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://retry-budget-guard.fmf-x402.workers.dev/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "retry-budget-guard": {
      "url": "https://retry-budget-guard.fmf-x402.workers.dev/mcp"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "retry-budget-guard": {
      "type": "http",
      "url": "https://retry-budget-guard.fmf-x402.workers.dev/mcp"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://retry-budget-guard.fmf-x402.workers.dev/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add retry-budget-guard --url https://retry-budget-guard.fmf-x402.workers.dev/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.retry-budget-guard]
url = "https://retry-budget-guard.fmf-x402.workers.dev/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "retry-budget-guard": {
      "httpUrl": "https://retry-budget-guard.fmf-x402.workers.dev/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http retry-budget-guard https://retry-budget-guard.fmf-x402.workers.dev/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "retry-budget-guard": {
      "serverUrl": "https://retry-budget-guard.fmf-x402.workers.dev/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "retry-budget-guard": {
      "url": "https://retry-budget-guard.fmf-x402.workers.dev/mcp",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "retry-budget-guard": {
      "type": "streamableHttp",
      "url": "https://retry-budget-guard.fmf-x402.workers.dev/mcp"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "retry-budget-guard": {
      "url": "https://retry-budget-guard.fmf-x402.workers.dev/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "retry-budget-guard": {
      "url": "https://retry-budget-guard.fmf-x402.workers.dev/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "retry-budget-guard": {
      "url": "https://retry-budget-guard.fmf-x402.workers.dev/mcp"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "retry-budget-guard": {
      "url": "https://retry-budget-guard.fmf-x402.workers.dev/mcp"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://retry-budget-guard.fmf-x402.workers.dev/mcp
```

Enter a Name (for example "Retry Budget Guard"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "retry-budget-guard": {
      "type": "http",
      "url": "https://retry-budget-guard.fmf-x402.workers.dev/mcp"
    }
  }
}
```

## Tools

Going by the tool names, 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `retry-budget-guard`: The most expensive cloud bills often come from unbounded retries, and a retry limit that resets on restart is an unlimited spending plan. $0.002 per call, USDC via x402 or MPP. Calculates projected retry cost from unit cost, max attempts, and backoff, and keeps a budget in this service (not in the agent) so a restart or replan cannot mint a fresh budget. An empty call returns a calculator demo for

## FAQ

### Do I need an account or API key?

No. Each successful call is paid per request with MPP on Tempo or x402 in USDC, with no account or API key.

### How much does a call cost?

Each call to the retry budget route costs $0.002.

### Am I charged if my request is invalid?

No. Invalid input or an upstream failure returns 402 and is not charged.

### How do I connect Retry Budget Guard to an MCP client?

Add the Streamable HTTP endpoint https://retry-budget-guard.fmf-x402.workers.dev/mcp to your client configuration. Listing tools is free; paid calls need an MPP payment header.

### How do I add Retry Budget Guard to Claude Code?

Run this command in your terminal: claude mcp add --transport http retry-budget-guard https://retry-budget-guard.fmf-x402.workers.dev/mcp

### What are the best alternatives to Retry Budget Guard?

The closest alternatives to Retry Budget Guard are HTTP Failure Classifier, HTTP Failure Classifier, Agentguard47, AI API Cost Firewall & Rate Limiter and Idempotency Replay Checker.

## Where this comes from

- Description: written from the project's website and its MCP Registry entry.
- Status and tools: checked automatically by AIPoweredBot on 29 November 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [HTTP Failure Classifier](https://ai-powered.com/mcp/http-failure-classifier): HTTP Failure Classifier is a paid MCP server for developer tools.
- [HTTP Failure Classifier](https://ai-powered.com/mcp/http-failure-classifier-2): HTTP Failure Classifier is a paid MCP server for developer tools.
- [Agentguard47](https://ai-powered.com/mcp/agentguard47): Agentguard47 is an open-source MCP server for developer tools.
- [AI API Cost Firewall & Rate Limiter](https://ai-powered.com/mcp/ai-api-cost-firewall-and-rate-limiter): AI API Cost Firewall & Rate Limiter is an MCP server for ai models and llm tooling.
- [Idempotency Replay Checker](https://ai-powered.com/mcp/idempotency-replay-checker-2): Idempotency Replay Checker is a paid MCP server for developer tools.
- [Agent Billing Primitives (Dirtsmith)](https://ai-powered.com/mcp/agent-billing-primitives-dirtsmith): Agent Billing Primitives (Dirtsmith) is a freemium MCP server for finance and payments.
- [Budgethelm](https://ai-powered.com/mcp/budgethelm): Budgethelm is a freemium MCP server for developer tools.
- [MCP Cost Tracker Router](https://ai-powered.com/mcp/mcp-cost-tracker-router): MCP Cost Tracker Router is an MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/retry-budget-guard-2
