# Controlflare

> Controlflare is an MCP server for cloud and infrastructure. Hard monthly budget cap for Cloudflare Workers: read spend, pause and resume Workers. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Platforms:** API, Web
- **Website:** https://controlflare.com/agents/
- **MCP Registry name:** com.controlflare/controlflare
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure)
- **Listing updated:** 2026-11-16

## About

Controlflare's MCP server hands an agent the same controls the dashboard offers for keeping a Cloudflare bill in check. It has twelve tools in three groups: five that only read, three that change a setting, and four that stop production traffic. The vendor tells readers to take the last group seriously before connecting.

Spend figures are estimates built from Cloudflare usage analytics and list prices, covering Workers, D1, R2, KV and Durable Object requests, with products it cannot measure shown as unavailable instead of zero. Setting a cap at or below current spend pauses every running Worker within about five minutes, so even a settings change can take a site down.

Pausing removes routes, detaches custom domains, disables the workers.dev URL and clears cron triggers, each stored first so a resume restores them. Sign-in uses OAuth with Cloudflare requesting only user details, and agent actions appear in the same activity log as dashboard actions.

## Features

- **Spend estimate:** Reads current-period USD with a per-product split for Workers, D1, R2, KV and Durable Objects.
- **Hard billing cap:** Sets or clears a monthly cap that pauses Workers when exceeded.
- **Pause and resume:** Stops or restores one Worker or every Worker on the account.
- **OAuth sign-in:** Signs in with Cloudflare, with no API keys to paste.
- **Shared activity log:** Agent actions are logged like dashboard actions.
- **Claude Code plugin:** A marketplace plugin wires up the hosted endpoint.

## Good for

- Ask an agent how much a Cloudflare account is estimated to have spent
- Set a monthly cap to avoid a surprise bill
- Pause a runaway Worker during an incident
- Resume Workers after a cap is lifted
- Review recent cap and pause events

## Install

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

```sh
claude mcp add --transport http controlflare https://app.controlflare.com/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": {
    "controlflare": {
      "type": "http",
      "url": "https://app.controlflare.com/mcp"
    }
  }
}
```

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

```text
https://app.controlflare.com/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": {
    "controlflare": {
      "url": "https://app.controlflare.com/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "controlflare": {
      "type": "http",
      "url": "https://app.controlflare.com/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://app.controlflare.com/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 controlflare --url https://app.controlflare.com/mcp
```

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

```toml
[mcp_servers.controlflare]
url = "https://app.controlflare.com/mcp"
```

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

```json
{
  "mcpServers": {
    "controlflare": {
      "httpUrl": "https://app.controlflare.com/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http controlflare https://app.controlflare.com/mcp

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

```json
{
  "mcpServers": {
    "controlflare": {
      "serverUrl": "https://app.controlflare.com/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "controlflare": {
      "url": "https://app.controlflare.com/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": {
    "controlflare": {
      "type": "streamableHttp",
      "url": "https://app.controlflare.com/mcp"
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "controlflare": {
      "url": "https://app.controlflare.com/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": {
    "controlflare": {
      "url": "https://app.controlflare.com/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "controlflare": {
      "url": "https://app.controlflare.com/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "controlflare": {
      "url": "https://app.controlflare.com/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://app.controlflare.com/mcp
```

Enter a Name (for example "Controlflare"), 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": {
    "controlflare": {
      "type": "http",
      "url": "https://app.controlflare.com/mcp"
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 2 of 12 tools change data; 5 names don't say. From the server's own tool labels and tool names; not verified by us.

- `list_cloudflare_accounts` (name suggests: reads): Connected accounts with cap, enforcement state and latest estimated spend
- `get_account` (name suggests: reads): One account in detail plus its workloads
- `get_estimated_spend` (name suggests: reads): Current-period estimated USD with per-product split
- `list_workloads` (name suggests: reads): Scripts with status and restore summary
- `list_events` (name suggests: reads): Recent activity, newest first
- `set_billing_cap` (name suggests: changes): Set or clear the hard monthly cap
- `set_enforcement` (name suggests: changes): Turn automatic pausing on or off
- `sync_account`: Refresh workloads and take a usage snapshot
- `pause_workload`: Pause one Worker and stop its production traffic
- `resume_workload`: Restore one Worker's routes, domains and schedules
- `pause_all_workloads`: Pause every running Worker on the account
- `resume_all_workloads`: Resume every paused Worker on the account

## FAQ

### Which tools can stop production traffic?

pause_workload, resume_workload, pause_all_workloads and resume_all_workloads are marked destructive.

### Is the spend figure an invoice?

No. It is an estimate from usage analytics and list prices and does not cover the whole Cloudflare bill.

### How does authentication work?

OAuth 2.1 with Cloudflare; the client registers itself and you approve on a consent page.

### Can a cap pause my Workers?

Yes. A cap at or below current spend pauses all running Workers within about five minutes.

### How do I add Controlflare to Claude Code?

Run this command in your terminal: claude mcp add --transport http controlflare https://app.controlflare.com/mcp

### What are the best alternatives to Controlflare?

The closest alternatives to Controlflare are workerfuse, Costory FinOps MCP, Costfluent, CloudCostAI and CloudQuell.

## Where this comes from

- Description: written from the project's website.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [workerfuse](https://ai-powered.com/mcp/workerfuse): workerfuse is an MCP server for cloud and infrastructure.
- [Costory FinOps MCP](https://ai-powered.com/mcp/costory-finops-mcp): Costory FinOps MCP is a paid MCP server for cloud and infrastructure.
- [Costfluent](https://ai-powered.com/mcp/costfluent): Costfluent is a paid MCP server for cloud and infrastructure.
- [CloudCostAI](https://ai-powered.com/mcp/cloudcostai): CloudCostAI is a freemium MCP server for cloud and infrastructure.
- [CloudQuell](https://ai-powered.com/mcp/cloudquell): CloudQuell is a freemium MCP server for cloud and infrastructure.
- [nable](https://ai-powered.com/mcp/nable-2): nable is an open-source MCP server for cloud and infrastructure.
- [Mat Web & Data Toolkit (x402, Cloudflare)](https://ai-powered.com/mcp/mat-web-and-data-toolkit-x402-cloudflare): Mat Web & Data Toolkit (x402, Cloudflare) is a paid MCP server for cloud and infrastructure.
- [Clara by nOps](https://ai-powered.com/mcp/clara-by-nops): Clara by nOps is an MCP server for cloud and infrastructure.

---
Source: https://ai-powered.com/mcp/controlflare
