bunny.net MCP by usefulapi
v1.42.1Inspect pull zones, storage, DNS and video libraries on bunny.net, and purge caches.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
bunny_list_pull_zones List pull zones
List the CDN pull zones on the account. By default returns a compact view per zone (id, name, origin URL, enabled/suspended, hostnames, linked storage zone, bandwidth and charges this month); set full=true for every setting. bunny.net: GET /pullzone.
| Parameter | Type | Description |
|---|---|---|
full | boolean | Return every pull zone setting instead of the compact view. |
page | integer | Page number, 1-based. Default 1. |
per_page | integer | Items per page, 5-1000. Default 1000. |
search | string | Filter results by this search term. |
bunny_get_pull_zone Get a pull zone
Fetch one pull zone with all its settings: origin, hostnames, caching, security, edge rules (with their GUIDs, needed by bunny_set_edge_rule_enabled), blocked IPs, limits and usage. Secrets (token-auth key, AWS signing secret, certificate private keys) are redacted. bunny.net: GET /pullzone/{id}.
| Parameter | Type | Description |
|---|---|---|
pull_zone_id * | integer | The Pull Zone ID. |
include_certificate | boolean | Include each hostname's public SSL certificate (private keys are always redacted). |
bunny_list_storage_zones List storage zones
List the edge storage zones on the account: region, replication regions, storage used, file count, tier and connected pull zones. Storage passwords are redacted. bunny.net: GET /storagezone.
| Parameter | Type | Description |
|---|---|---|
include_deleted | boolean | Also return deleted storage zones. |
page | integer | Page number, 1-based. Default 1. |
per_page | integer | Items per page, 5-1000. Default 1000. |
search | string | Filter results by this search term. |
bunny_get_storage_zone Get a storage zone
Fetch one edge storage zone: hostname, region, replication, storage used, files stored, 404 handling and connected pull zones. Storage passwords are redacted. bunny.net: GET /storagezone/{id}.
| Parameter | Type | Description |
|---|---|---|
storage_zone_id * | integer | The Storage Zone ID. |
bunny_get_storage_zone_statistics Get storage zone statistics
Daily charts of storage used and file count for one storage zone. bunny.net: GET /storagezone/{id}/statistics.
| Parameter | Type | Description |
|---|---|---|
storage_zone_id * | integer | The Storage Zone ID. |
date_from | string | Start of the range, YYYY-MM-DD or ISO 8601. Omit both dates for the last 30 days. |
date_to | string | End of the range, YYYY-MM-DD or ISO 8601. Omit both dates for the last 30 days. |
bunny_list_dns_zones List DNS zones
List the DNS zones hosted on bunny.net, with nameserver detection, DNSSEC and logging status. bunny.net: GET /dnszone.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, 1-based. Default 1. |
per_page | integer | Items per page, 5-1000. Default 1000. |
search | string | Filter results by this search term. |
bunny_get_dns_zone Get a DNS zone
Fetch one DNS zone with its settings and records. bunny.net: GET /dnszone/{id}.
| Parameter | Type | Description |
|---|---|---|
zone_id * | integer | The DNS Zone ID. |
bunny_list_dns_records List DNS records
List the records in one DNS zone, optionally filtered by type or search term. Record Type comes back as bunny.net's integer code (0=A, 1=AAAA, 2=CNAME, 3=TXT, 4=MX, 5=Redirect, 6=Flatten, 7=PullZone, 8=SRV, 9=CAA, 10=PTR, 11=Script, 12=NS, 13=SVCB, 14=HTTPS, 15=TLSA). bunny.net: GET /dnszone/{zoneId}/records.
| Parameter | Type | Description |
|---|---|---|
zone_id * | integer | The DNS Zone ID. |
page | integer | Page number, 1-based. Default 1. |
per_page | integer | Items per page, 5-1000. Default 1000. |
search | string | Filter results by this search term. |
type | string | Only records of this type. |
bunny_export_dns_zone Export a DNS zone
Export one DNS zone as a BIND zone file (plain text) — handy for review, diffing or backup before a change. bunny.net: GET /dnszone/{id}/export.
| Parameter | Type | Description |
|---|---|---|
zone_id * | integer | The DNS Zone ID. |
bunny_list_video_libraries List video libraries
List the Stream video libraries: video count, storage and traffic usage, linked pull/storage zones and player/encoding settings. Library API keys are redacted. bunny.net: GET /videolibrary.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, 1-based. Default 1. |
per_page | integer | Items per page, 5-1000. Default 1000. |
search | string | Filter results by this search term. |
bunny_get_video_library Get a video library
Fetch one Stream video library with its full configuration (resolutions, DRM, referrer rules, transcribing, watermark). Library API keys are redacted. bunny.net: GET /videolibrary/{id}.
| Parameter | Type | Description |
|---|---|---|
library_id * | integer | The Video Library ID. |
bunny_get_statistics Get CDN statistics
CDN traffic statistics for the account or one pull zone: total bandwidth, origin traffic, requests served, cache hit rate and average origin response time, plus optional charts (bandwidth, requests, origin traffic, response times, 3xx/4xx/5xx errors, geographic distribution). bunny.net: GET /statistics.
| Parameter | Type | Description |
|---|---|---|
date_from | string | Start of the range, YYYY-MM-DD or ISO 8601. Omit both dates for the last 30 days. |
date_to | string | End of the range, YYYY-MM-DD or ISO 8601. Omit both dates for the last 30 days. |
hourly | boolean | Hourly instead of daily grouping. |
load_bandwidth_used | boolean | Include the bandwidth charts. |
load_errors | boolean | Include the 3xx/4xx/5xx response charts. |
load_geographic_traffic_distribution | boolean | Include traffic by country. |
load_origin_response_times | boolean | Include the origin response time chart. |
load_origin_traffic | boolean | Include the origin traffic chart. |
load_requests_served | boolean | Include the requests-served chart. |
pull_zone_id | integer | Only this pull zone. Omit for the whole account. |
region_id | integer | Only this edge region (see bunny_list_regions). |
bunny_list_regions List edge regions
List bunny.net's edge regions with their IDs, codes, location and per-GB traffic price. A cheap way to confirm the API key works. bunny.net: GET /region.
bunny_get_billing Get billing details
The account balance, this month's charges broken down by product (traffic per continent, storage, DNS, Stream, scripting, Shield, ...) and recent billing records. Payment-method tokens are redacted. bunny.net: GET /billing.
bunny_get_audit_log Get the audit log
Who changed what on one day: the account audit log (timestamp, product, resource, action, actor and a diff). Paginate with continuation_token. bunny.net: GET /user/audit/{date}.
| Parameter | Type | Description |
|---|---|---|
date * | string | The day to read, YYYY-MM-DD. |
actor_id | array | Only changes by these actors. |
continuation_token | string | ContinuationToken from the previous page. |
limit | integer | Max entries, 1-10000. Default 100. |
order | string | Sort by time. |
product | array | Only these products. |
resource_id | array | Only these resource IDs. |
resource_type | array | Only these resource types. |
bunny_purge_pull_zone_cache Purge a pull zone's cache
WRITE. Purge the cached content of one pull zone — everything, or only files carrying a cache tag. Nothing is lost (the CDN refetches from the origin) but the origin takes the refill load. bunny.net: POST /pullzone/{id}/purgeCache.
| Parameter | Type | Description |
|---|---|---|
pull_zone_id * | integer | The Pull Zone ID. |
cache_tag | string | Only purge files with this cache tag. |
bunny_purge_url Purge a URL from cache
WRITE. Purge one URL from the CDN cache. A URL ending in '/' purges everything under it unless exact_path is true; a '*' wildcard is also accepted. The CDN refetches from the origin. bunny.net: POST /purge.
| Parameter | Type | Description |
|---|---|---|
url * | string | The CDN URL to purge, e.g. https://myzone.b-cdn.net/css/site.css. |
async | boolean | Return immediately instead of waiting for the purge to finish. |
exact_path | boolean | For a URL ending in '/', purge only that exact path. |
bunny_add_dns_record Add a DNS record
WRITE. Add a record to a DNS zone. Takes effect on live DNS. bunny.net: PUT /dnszone/{zoneId}/records.
| Parameter | Type | Description |
|---|---|---|
name * | string | Record name relative to the zone; empty string for the apex, e.g. 'www'. |
type * | string | Record type. |
value * | string | Record value, e.g. an IP for A, a hostname for CNAME, text for TXT. |
zone_id * | integer | The DNS Zone ID. |
accelerated | boolean | Route the record through the CDN (CDN acceleration). |
comment | string | Free-text note on the record. |
disabled | boolean | Keep the record but stop serving it. |
flags | integer | Flags (CAA). |
port | integer | Port (SRV). |
priority | integer | Priority (MX, SRV). |
pull_zone_id | integer | Pull Zone ID, for type PullZone. |
tag | string | Tag (CAA), e.g. 'issue'. |
ttl | integer | TTL in seconds. |
weight | integer | Weight (SRV, weighted records). |
bunny_update_dns_record Update a DNS record
WRITE. Update an existing DNS record. Takes effect on live DNS. Read the record first with bunny_list_dns_records and pass its type, name and value along with any other fields you want to keep or change. bunny.net: POST /dnszone/{zoneId}/records/{id}.
| Parameter | Type | Description |
|---|---|---|
name * | string | Record name relative to the zone; empty string for the apex, e.g. 'www'. |
record_id * | integer | The DNS record ID. |
type * | string | Record type. |
value * | string | Record value, e.g. an IP for A, a hostname for CNAME, text for TXT. |
zone_id * | integer | The DNS Zone ID. |
accelerated | boolean | Route the record through the CDN (CDN acceleration). |
comment | string | Free-text note on the record. |
disabled | boolean | Keep the record but stop serving it. |
flags | integer | Flags (CAA). |
port | integer | Port (SRV). |
priority | integer | Priority (MX, SRV). |
pull_zone_id | integer | Pull Zone ID, for type PullZone. |
tag | string | Tag (CAA), e.g. 'issue'. |
ttl | integer | TTL in seconds. |
weight | integer | Weight (SRV, weighted records). |
bunny_set_edge_rule_enabled Enable or disable an edge rule
WRITE. Turn one edge rule on a pull zone on or off (reversible — the rule is kept). Get the rule's GUID from bunny_get_pull_zone (EdgeRules[].Guid). bunny.net: POST /pullzone/{pullZoneId}/edgerules/{edgeRuleId}/setEdgeRuleEnabled.
| Parameter | Type | Description |
|---|---|---|
edge_rule_id * | string | The edge rule's GUID. |
enabled * | boolean | true to enable, false to disable. |
pull_zone_id * | integer | The Pull Zone ID. |
bunny_add_blocked_ip Block an IP on a pull zone
WRITE. Block an IP address from a pull zone (undo with bunny_remove_blocked_ip). bunny.net: POST /pullzone/{id}/addBlockedIp.
| Parameter | Type | Description |
|---|---|---|
ip * | string | The IP address, e.g. 203.0.113.7. |
pull_zone_id * | integer | The Pull Zone ID. |
bunny_remove_blocked_ip Unblock an IP on a pull zone
WRITE. Remove an IP address from a pull zone's block list. bunny.net: POST /pullzone/{id}/removeBlockedIp.
| Parameter | Type | Description |
|---|---|---|
ip * | string | The IP address, e.g. 203.0.113.7. |
pull_zone_id * | integer | The Pull Zone ID. |
bunny_create_pull_zone Create a pull zone
WRITE. Create a CDN pull zone that serves content from one origin URL. Ask the user before calling this. The zone gets the default hostname <name>.b-cdn.net. Custom hostnames are not added by this tool: add them in the bunny.net dashboard. bunny.net: POST /pullzone.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the new pull zone. It becomes <name>.b-cdn.net, so it must be a valid hostname label. |
origin_url * | string | The origin URL the CDN fetches from, e.g. https://www.example.com. |
bunny_create_stream_video Create a Stream video
WRITE. Create an empty video object in a Stream library, with a title and an optional collection. This tool does not upload the video file. Ask the user before calling this. bunny.net: POST /library/{libraryId}/videos.
| Parameter | Type | Description |
|---|---|---|
library_id * | integer | The Video Library ID. |
title * | string | The video title. |
collection_id | string | Put the video in this collection (its GUID). |
thumbnail_time_ms | integer | Video time in milliseconds for the main thumbnail frame. |
bunny_set_stream_thumbnail Set a Stream video thumbnail
WRITE. Replace the thumbnail of one Stream video with one of its auto-generated frames, or with an image from an https URL that bunny.net fetches. Ask the user before calling this. bunny.net: POST /library/{libraryId}/videos/{videoId}/thumbnail.
| Parameter | Type | Description |
|---|---|---|
library_id * | integer | The Video Library ID. |
thumbnail * | string | thumbnail_1.jpg to thumbnail_5.jpg, or an http(s) image URL. |
video_id * | string | The video GUID, as returned by bunny_create_stream_video. |
bunny_create_stream_collection Create a Stream collection
WRITE. Create a collection in a Stream library to group videos. Ask the user before calling this. bunny.net: POST /library/{libraryId}/collections.
| Parameter | Type | Description |
|---|---|---|
library_id * | integer | The Video Library ID. |
name * | string | Collection name, up to 255 characters. |