bunny.net MCP by usefulapi

v1.42.1
io.usefulapi/bunny-net Checked 3 days ago Published 2 days ago

Inspect 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.

ParameterTypeDescription
fullbooleanReturn every pull zone setting instead of the compact view.
pageintegerPage number, 1-based. Default 1.
per_pageintegerItems per page, 5-1000. Default 1000.
searchstringFilter 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}.

ParameterTypeDescription
pull_zone_id *integerThe Pull Zone ID.
include_certificatebooleanInclude 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.

ParameterTypeDescription
include_deletedbooleanAlso return deleted storage zones.
pageintegerPage number, 1-based. Default 1.
per_pageintegerItems per page, 5-1000. Default 1000.
searchstringFilter 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}.

ParameterTypeDescription
storage_zone_id *integerThe 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.

ParameterTypeDescription
storage_zone_id *integerThe Storage Zone ID.
date_fromstringStart of the range, YYYY-MM-DD or ISO 8601. Omit both dates for the last 30 days.
date_tostringEnd 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.

ParameterTypeDescription
pageintegerPage number, 1-based. Default 1.
per_pageintegerItems per page, 5-1000. Default 1000.
searchstringFilter 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}.

ParameterTypeDescription
zone_id *integerThe 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.

ParameterTypeDescription
zone_id *integerThe DNS Zone ID.
pageintegerPage number, 1-based. Default 1.
per_pageintegerItems per page, 5-1000. Default 1000.
searchstringFilter results by this search term.
typestringOnly 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.

ParameterTypeDescription
zone_id *integerThe 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.

ParameterTypeDescription
pageintegerPage number, 1-based. Default 1.
per_pageintegerItems per page, 5-1000. Default 1000.
searchstringFilter 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}.

ParameterTypeDescription
library_id *integerThe 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.

ParameterTypeDescription
date_fromstringStart of the range, YYYY-MM-DD or ISO 8601. Omit both dates for the last 30 days.
date_tostringEnd of the range, YYYY-MM-DD or ISO 8601. Omit both dates for the last 30 days.
hourlybooleanHourly instead of daily grouping.
load_bandwidth_usedbooleanInclude the bandwidth charts.
load_errorsbooleanInclude the 3xx/4xx/5xx response charts.
load_geographic_traffic_distributionbooleanInclude traffic by country.
load_origin_response_timesbooleanInclude the origin response time chart.
load_origin_trafficbooleanInclude the origin traffic chart.
load_requests_servedbooleanInclude the requests-served chart.
pull_zone_idintegerOnly this pull zone. Omit for the whole account.
region_idintegerOnly 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}.

ParameterTypeDescription
date *stringThe day to read, YYYY-MM-DD.
actor_idarrayOnly changes by these actors.
continuation_tokenstringContinuationToken from the previous page.
limitintegerMax entries, 1-10000. Default 100.
orderstringSort by time.
productarrayOnly these products.
resource_idarrayOnly these resource IDs.
resource_typearrayOnly 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.

ParameterTypeDescription
pull_zone_id *integerThe Pull Zone ID.
cache_tagstringOnly 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.

ParameterTypeDescription
url *stringThe CDN URL to purge, e.g. https://myzone.b-cdn.net/css/site.css.
asyncbooleanReturn immediately instead of waiting for the purge to finish.
exact_pathbooleanFor 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.

ParameterTypeDescription
name *stringRecord name relative to the zone; empty string for the apex, e.g. 'www'.
type *stringRecord type.
value *stringRecord value, e.g. an IP for A, a hostname for CNAME, text for TXT.
zone_id *integerThe DNS Zone ID.
acceleratedbooleanRoute the record through the CDN (CDN acceleration).
commentstringFree-text note on the record.
disabledbooleanKeep the record but stop serving it.
flagsintegerFlags (CAA).
portintegerPort (SRV).
priorityintegerPriority (MX, SRV).
pull_zone_idintegerPull Zone ID, for type PullZone.
tagstringTag (CAA), e.g. 'issue'.
ttlintegerTTL in seconds.
weightintegerWeight (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}.

ParameterTypeDescription
name *stringRecord name relative to the zone; empty string for the apex, e.g. 'www'.
record_id *integerThe DNS record ID.
type *stringRecord type.
value *stringRecord value, e.g. an IP for A, a hostname for CNAME, text for TXT.
zone_id *integerThe DNS Zone ID.
acceleratedbooleanRoute the record through the CDN (CDN acceleration).
commentstringFree-text note on the record.
disabledbooleanKeep the record but stop serving it.
flagsintegerFlags (CAA).
portintegerPort (SRV).
priorityintegerPriority (MX, SRV).
pull_zone_idintegerPull Zone ID, for type PullZone.
tagstringTag (CAA), e.g. 'issue'.
ttlintegerTTL in seconds.
weightintegerWeight (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.

ParameterTypeDescription
edge_rule_id *stringThe edge rule's GUID.
enabled *booleantrue to enable, false to disable.
pull_zone_id *integerThe 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.

ParameterTypeDescription
ip *stringThe IP address, e.g. 203.0.113.7.
pull_zone_id *integerThe 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.

ParameterTypeDescription
ip *stringThe IP address, e.g. 203.0.113.7.
pull_zone_id *integerThe 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.

ParameterTypeDescription
name *stringName of the new pull zone. It becomes <name>.b-cdn.net, so it must be a valid hostname label.
origin_url *stringThe 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.

ParameterTypeDescription
library_id *integerThe Video Library ID.
title *stringThe video title.
collection_idstringPut the video in this collection (its GUID).
thumbnail_time_msintegerVideo 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.

ParameterTypeDescription
library_id *integerThe Video Library ID.
thumbnail *stringthumbnail_1.jpg to thumbnail_5.jpg, or an http(s) image URL.
video_id *stringThe 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.

ParameterTypeDescription
library_id *integerThe Video Library ID.
name *stringCollection name, up to 255 characters.