# bunny.net CDN and Shield

> bunny.net CDN and Shield is an open-source MCP server for cloud and infrastructure. Debug bunny.net pull zones and manage Shield WAF rules, with read-only mode. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI
- **Repository:** https://github.com/fullfatthings/bunny-mcp
- **MCP Registry name:** io.github.fullfatthings/bunny-mcp
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure), [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-11-23

## About

Unlike broad API wrappers, this server concentrates on two jobs: working out why a CDN site misbehaves and tuning bunny Shield, the bunny.net web application firewall. It does not cover DNS, storage, Stream or edge scripts, and the README points to two other projects for those. It is unofficial and not endorsed by bunny.net.

The notes on get_shield_zone warn when settings undermine each other, for example Block rules that only log because the zone is in Log mode. Event logs cover the last 72 hours grouped by rule, IP or JA4 fingerprint. Update tools return a before-and-after diff, summaries keep responses small unless detail is requested, and tokens, signing keys, certificates and sensitive edge rule values show as hidden.

It needs Node 20+ and a bunny.net account API key, which has full account access. Setting BUNNY_READONLY=1 leaves out the write tools entirely. The README suggests testing a new WAF rule with action Log, checking the logs, then switching to Block.

## Features

- **Pull zone debugging:** Lists zones and shows hostnames, edge rules, caching, origin and security settings.
- **CDN statistics and origin errors:** Reports bandwidth, requests, cache hit rate and failed origin requests for a day.
- **Shield WAF management:** Edits WAF settings, custom rules, rate limits and bot detection.
- **Event log analysis:** Shows what the WAF blocked, challenged or logged in 72 hours.
- **Change diffs:** Update tools return a before-and-after diff.
- **Read-only switch:** BUNNY_READONLY=1 removes write tools from the tool list.

## Good for

- Find why a pull zone returns origin errors
- Test a WAF rule in Log mode before blocking
- Purge cache for one URL or a whole zone
- Audit which WAF rules fire most often

## Install

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

```sh
claude mcp add bunny-mcp --env BUNNY_API_KEY='<BUNNY_API_KEY>' -- npx -y @fullfatthings/bunny-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": {
    "bunny-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@fullfatthings/bunny-mcp"
      ],
      "env": {
        "BUNNY_API_KEY": "<BUNNY_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "bunny-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@fullfatthings/bunny-mcp"
      ],
      "env": {
        "BUNNY_API_KEY": "<BUNNY_API_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "bunny-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@fullfatthings/bunny-mcp"
      ],
      "env": {
        "BUNNY_API_KEY": "<BUNNY_API_KEY>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "bunny-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@fullfatthings/bunny-mcp"
      ],
      "env": {
        "BUNNY_API_KEY": "<BUNNY_API_KEY>"
      }
    }
  }
}
```

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

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

```sh
codex mcp add bunny-mcp --env BUNNY_API_KEY='<BUNNY_API_KEY>' -- npx -y @fullfatthings/bunny-mcp
```

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

```toml
[mcp_servers.bunny-mcp]
command = "npx"
args = ["-y", "@fullfatthings/bunny-mcp"]
env = { BUNNY_API_KEY = "<BUNNY_API_KEY>" }
```

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

```json
{
  "mcpServers": {
    "bunny-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@fullfatthings/bunny-mcp"
      ],
      "env": {
        "BUNNY_API_KEY": "<BUNNY_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e BUNNY_API_KEY='<BUNNY_API_KEY>' bunny-mcp npx -- -y @fullfatthings/bunny-mcp

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

```json
{
  "mcpServers": {
    "bunny-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@fullfatthings/bunny-mcp"
      ],
      "env": {
        "BUNNY_API_KEY": "<BUNNY_API_KEY>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "bunny-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@fullfatthings/bunny-mcp"
      ],
      "env": {
        "BUNNY_API_KEY": "<BUNNY_API_KEY>"
      }
    }
  }
}
```

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": {
    "bunny-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@fullfatthings/bunny-mcp"
      ],
      "env": {
        "BUNNY_API_KEY": "<BUNNY_API_KEY>"
      }
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "bunny-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@fullfatthings/bunny-mcp"
      ],
      "env": {
        "BUNNY_API_KEY": "<BUNNY_API_KEY>"
      }
    }
  }
}
```

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": {
    "bunny-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@fullfatthings/bunny-mcp"
      ],
      "env": {
        "BUNNY_API_KEY": "<BUNNY_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

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

```json
{
  "mcpServers": {
    "bunny-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@fullfatthings/bunny-mcp"
      ],
      "env": {
        "BUNNY_API_KEY": "<BUNNY_API_KEY>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "bunny-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@fullfatthings/bunny-mcp"
      ],
      "env": {
        "BUNNY_API_KEY": "<BUNNY_API_KEY>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "bunny-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@fullfatthings/bunny-mcp"
      ],
      "env": {
        "BUNNY_API_KEY": "<BUNNY_API_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 3 of 16 tools delete data and 4 change data; 6 names don't say. From the server's own tool labels and tool names; not verified by us.

- `list_pull_zones` (name suggests: reads): List pull zones with IDs, origins and hostnames.
- `get_pull_zone` (name suggests: reads): Show one pull zone's hostnames, edge rules and settings.
- `cdn_statistics`: Bandwidth, requests, cache hit rate and error responses.
- `origin_errors`: Failed requests to your origin on one day, counted by error.
- `get_shield_zone` (name suggests: reads): WAF settings, custom rules, rate limits and bot detection, with notes.
- `shield_event_logs`: Requests the WAF blocked, challenged or logged in the last 72 hours.
- `update_pull_zone` (name suggests: changes): Change pull zone settings.
- `purge_cache` (name suggests: deletes): Purge one URL or a whole pull zone.
- `save_edge_rule`: Create or update an edge rule.
- `set_edge_rule_enabled` (name suggests: changes): Switch an edge rule on or off.
- `delete_edge_rule` (name suggests: deletes): Delete an edge rule.
- `update_shield_zone` (name suggests: changes): Change WAF settings.
- `update_bot_detection` (name suggests: changes): Change bot detection mode and sensitivity.
- `save_waf_rule`: Create or update a custom WAF rule.
- `save_rate_limit`: Create or update a rate limit.
- `delete_shield_rule` (name suggests: deletes): Delete a custom WAF rule or rate limit.

## FAQ

### Is bunny.net CDN and Shield official?

No. The README says it is unofficial and not affiliated with bunny.net.

### What does bunny.net CDN and Shield not cover?

DNS, storage, Stream and edge scripts.

### How do I make bunny.net CDN and Shield safe?

Set BUNNY_READONLY=1 so write tools are not registered.

### What key does bunny.net CDN and Shield need?

A bunny.net account API key, which gives full access to the account.

### Is bunny.net CDN and Shield free?

Yes. bunny.net CDN and Shield is open source, so you can use and self-host it for free.

### How do I add bunny.net CDN and Shield to Claude Code?

Run this command in your terminal: claude mcp add bunny-mcp --env BUNNY_API_KEY='<BUNNY_API_KEY>' -- npx -y @fullfatthings/bunny-mcp

### What are the best alternatives to bunny.net CDN and Shield?

The closest alternatives to bunny.net CDN and Shield are REA, awslabs, AiSOC, kubeshark and Azure MCP Server.

## Where this comes from

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

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [awslabs](https://ai-powered.com/mcp/awslabs): awslabs is an open-source MCP server for cloud and infrastructure.
- [AiSOC](https://ai-powered.com/mcp/aisoc): AiSOC is an open-source MCP server for ai models and llm tooling.
- [kubeshark](https://ai-powered.com/mcp/kubeshark): kubeshark is an open-source MCP server for cloud and infrastructure.
- [Azure MCP Server](https://ai-powered.com/mcp/azure-mcp-server): Azure MCP Server is an open-source MCP server for cloud and infrastructure.
- [x64dbg-mcp-server](https://ai-powered.com/mcp/x64dbg-mcp-server): x64dbg-mcp-server is an open-source MCP server for ai models and llm tooling.
- [redamon](https://ai-powered.com/mcp/redamon): redamon is an open-source MCP server for ai models and llm tooling.
- [Treasure Map](https://ai-powered.com/mcp/treasure-map): Treasure Map is an open-source MCP server for security.

---
Source: https://ai-powered.com/mcp/bunny-net-cdn-and-shield
