Skip to main content
Glama

bunnycdn-mcp

用于 BunnyCDN 的 MCP 服务器 —— 直接从你的 AI 助手中管理拉取区、DNS、存储、视频流、边缘脚本、安全和 Magic Containers。

功能

工具

描述

数据来源

bunny_get_account

获取账户详情和余额

bunny.net API

bunny_get_billing_summary

获取账单摘要及费用

bunny.net API

bunny_get_statistics

获取 CDN 统计数据(带宽、请求数、缓存命中率)

bunny.net API

bunny_global_search

搜索所有资源

bunny.net API

bunny_purge_url

从 CDN 缓存中清除指定 URL

bunny.net API

bunny_list_regions

列出 CDN 边缘区域

bunny.net API

bunny_list_countries

列出用于地理封锁的国家/地区

bunny.net API

bunny_list_pull_zones

列出拉取区(支持搜索和分页)

bunny.net API

bunny_get_pull_zone

获取拉取区详情

bunny.net API

bunny_create_pull_zone

创建拉取区

bunny.net API

bunny_update_pull_zone

更新拉取区设置

bunny.net API

bunny_delete_pull_zone

删除拉取区

bunny.net API

bunny_purge_pull_zone_cache

清除整个拉取区缓存

bunny.net API

bunny_manage_pull_zone_hostnames

添加或移除自定义主机名

bunny.net API

bunny_manage_edge_rules

添加、更新、删除或切换边缘规则

bunny.net API

bunny_list_dns_zones

列出 DNS 区域

bunny.net API

bunny_get_dns_zone

获取 DNS 区域及其所有记录

bunny.net API

bunny_create_dns_zone

创建 DNS 区域

bunny.net API

bunny_update_dns_zone

更新 DNS 区域设置

bunny.net API

bunny_delete_dns_zone

删除 DNS 区域

bunny.net API

bunny_manage_dns_record

添加、更新或删除 DNS 记录

bunny.net API

bunny_get_dns_statistics

获取 DNS 查询统计

bunny.net API

bunny_list_storage_zones

列出存储区

bunny.net API

bunny_get_storage_zone

获取存储区详情

bunny.net API

bunny_create_storage_zone

创建存储区

bunny.net API

bunny_get_storage_zone_statistics

获取存储区使用统计

bunny.net API

bunny_list_storage_files

列出文件和目录

存储 API

bunny_download_storage_file

下载文件内容

存储 API

bunny_delete_storage_file

删除文件或目录

存储 API

bunny_list_video_libraries

列出视频库

bunny.net API

bunny_get_video_library

获取视频库详情

bunny.net API

bunny_create_video_library

创建视频库

bunny.net API

bunny_update_video_library

更新视频库设置

bunny.net API

bunny_list_videos

列出视频(支持搜索和分页)

流媒体 API

bunny_get_video

获取视频详情

流媒体 API

bunny_create_video

创建视频对象,可选择从 URL 拉取

流媒体 API

bunny_update_video

更新视频元数据

流媒体 API

bunny_delete_video

删除视频

流媒体 API

bunny_get_video_statistics

获取观看统计

流媒体 API

bunny_get_video_heatmap

获取注意力热图数据

流媒体 API

bunny_reencode_video

重新编码视频

流媒体 API

bunny_list_collections

列出视频合集

流媒体 API

bunny_get_collection

获取合集详情

流媒体 API

bunny_manage_collection

创建、更新或删除合集

流媒体 API

bunny_list_edge_scripts

列出边缘脚本

bunny.net API

bunny_get_edge_script

获取脚本详情

bunny.net API

bunny_get_edge_script_code

获取脚本源代码

bunny.net API

bunny_set_edge_script_code

上传脚本代码(保存为草稿)

bunny.net API

bunny_manage_edge_script

创建、更新或删除脚本

bunny.net API

bunny_publish_edge_script

将版本发布到边缘服务器

bunny.net API

bunny_manage_edge_script_variables

管理环境变量和机密

bunny.net API

bunny_list_shield_zones

列出 Shield 安全区域

bunny.net API

bunny_get_shield_zone

通过 Shield 区域 ID 或拉取区 ID 获取区域

bunny.net API

bunny_get_waf_rules

获取 WAF 规则和配置文件

bunny.net API

bunny_manage_waf_custom_rule

创建、更新或删除自定义 WAF 规则

bunny.net API

bunny_list_rate_limit_rules

列出速率限制规则

bunny.net API

bunny_manage_rate_limit_rule

创建、更新或删除速率限制规则

bunny.net API

bunny_get_shield_metrics

获取安全指标概览

bunny.net API

bunny_get_bot_detection

获取或更新机器人检测设置

bunny.net API

bunny_list_mc_apps

列出 Magic Container 应用程序

bunny.net API

bunny_get_mc_app

获取应用程序详情

bunny.net API

bunny_get_mc_app_overview

获取应用概览及实时指标

bunny.net API

bunny_manage_mc_app

创建、更新或删除应用程序

bunny.net API

bunny_mc_app_lifecycle

部署、取消部署或重启应用程序

bunny.net API

bunny_list_mc_registries

列出容器注册表

bunny.net API

bunny_list_mc_regions

列出部署区域

bunny.net API

bunny_get_mc_app_statistics

获取应用程序统计

bunny.net API

bunny_get_origin_errors

获取拉取区的源站错误日志

bunny.net API

数据来源: 标记为 存储 API 的工具需要 BUNNY_STORAGE_KEY。标记为 流媒体 API 的工具需要 BUNNY_STREAM_KEY。所有其他工具使用 BUNNY_API_KEY

Related MCP server: Cloudflare Control

前提条件

  • Node.js >= 18

  • 一个带有 API 密钥的 bunny.net 账户

  • 可选:Stream 视频库 API 密钥(用于视频工具)

  • 可选:存储区密码(用于文件工具)

配置

无需安装——只需配置你的 MCP 客户端:

添加到 .vscode/mcp.json

{
  "servers": {
    "bunnycdn": {
      "command": "npx",
      "args": ["-y", "bunnycdn-mcp"],
      "env": {
        "BUNNY_API_KEY": "your-api-key"
      }
    }
  }
}

添加到 .cursor/mcp.json

{
  "mcpServers": {
    "bunnycdn": {
      "command": "npx",
      "args": ["-y", "bunnycdn-mcp"],
      "env": {
        "BUNNY_API_KEY": "your-api-key"
      }
    }
  }
}

添加到 ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "bunnycdn": {
      "command": "npx",
      "args": ["-y", "bunnycdn-mcp"],
      "env": {
        "BUNNY_API_KEY": "your-api-key"
      }
    }
  }
}

添加到 claude_desktop_config.json

{
  "mcpServers": {
    "bunnycdn": {
      "command": "npx",
      "args": ["-y", "bunnycdn-mcp"],
      "env": {
        "BUNNY_API_KEY": "your-api-key"
      }
    }
  }
}
claude mcp add --transport stdio bunnycdn -- npx -y bunnycdn-mcp

或者添加到 .mcp.json(与团队共享):

{
  "mcpServers": {
    "bunnycdn": {
      "command": "npx",
      "args": ["-y", "bunnycdn-mcp"],
      "env": {
        "BUNNY_API_KEY": "your-api-key"
      }
    }
  }
}

添加到 settings.json

{
  "context_servers": {
    "bunnycdn": {
      "command": "npx",
      "args": ["-y", "bunnycdn-mcp"],
      "env": {
        "BUNNY_API_KEY": "your-api-key"
      }
    }
  }
}

打开 设置 → 工具 → AI Assistant → MCP,点击 +,然后粘贴:

{
  "mcpServers": {
    "bunnycdn": {
      "command": "npx",
      "args": ["-y", "bunnycdn-mcp"],
      "env": {
        "BUNNY_API_KEY": "your-api-key"
      }
    }
  }
}
gemini mcp add bunnycdn -- npx -y bunnycdn-mcp

或者添加到 ~/.gemini/settings.json

{
  "mcpServers": {
    "bunnycdn": {
      "command": "npx",
      "args": ["-y", "bunnycdn-mcp"],
      "env": {
        "BUNNY_API_KEY": "your-api-key"
      }
    }
  }
}

任何支持 stdio 传输的 MCP 客户端都可以使用此服务器。命令如下:

npx -y bunnycdn-mcp

查看 MCP 客户端完整列表

可选环境变量

变量

描述

BUNNY_STREAM_KEY

视频库 API 密钥——启用 Stream 视频和合集工具

BUNNY_STORAGE_KEY

存储区密码——启用存储文件工具

BUNNY_STORAGE_REGION

存储区域代码(默认为空,表示 Falkenstein)

BUNNY_STORAGE_ZONE

默认存储区名称

将这些变量添加到上方 MCP 客户端配置的 env 块中。

本地开发

git clone https://github.com/anvme/bunnycdn-mcp.git
cd bunnycdn-mcp
npm install
npm test
node index.js

工作原理

此 MCP 服务器使用你的 API 密钥连接到 bunny.net API。根据所提供的 API 密钥,它最多注册 68 个工具:

  • 核心工具(55 个)——只要提供 BUNNY_API_KEY 即可使用

  • Stream 工具(11 个)——设置 BUNNY_STREAM_KEY 后注册

  • 存储文件工具(3 个)——设置 BUNNY_STORAGE_KEY 后注册

所有读取操作都会在内存中缓存并设置较短的 TTL,以提升性能。每个工具都包含 MCP 注解(readOnlyHintdestructiveHintidempotentHintopenWorldHint),以便客户端在审批工具时做出明智的决策。

许可证

MIT

A
license - permissive license
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    Enables AI assistants to manage Cloudflare resources through natural language, including DNS records, zone management, Workers KV storage, cache purging, and analytics. Supports comprehensive Cloudflare operations with secure API token authentication.
    13
    2
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to manage Cloudflare infrastructure including DNS records, cache purging, SSL settings, Workers, and analytics through the Cloudflare API. Eliminates dashboard context-switching by allowing natural language control of domain management and infrastructure operations.
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to manage Cloudways infrastructure, including servers, applications, monitoring, and security via the Cloudways API.

View all related MCP servers

Related MCP Connectors

  • Manage your Vidalytics videos and analytics from your AI assistant.

  • AI-powered design and management for Webflow Sites

  • Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Digitizers/bunny-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server