bunnycdn-mcp
bunnycdn-mcp
用于 BunnyCDN 的 MCP 服务器 —— 直接从你的 AI 助手中管理拉取区、DNS、存储、视频流、边缘脚本、安全和 Magic Containers。
功能
工具 | 描述 | 数据来源 |
| 获取账户详情和余额 | bunny.net API |
| 获取账单摘要及费用 | bunny.net API |
| 获取 CDN 统计数据(带宽、请求数、缓存命中率) | bunny.net API |
| 搜索所有资源 | bunny.net API |
| 从 CDN 缓存中清除指定 URL | bunny.net API |
| 列出 CDN 边缘区域 | bunny.net API |
| 列出用于地理封锁的国家/地区 | bunny.net API |
| 列出拉取区(支持搜索和分页) | bunny.net API |
| 获取拉取区详情 | bunny.net API |
| 创建拉取区 | bunny.net API |
| 更新拉取区设置 | bunny.net API |
| 删除拉取区 | bunny.net API |
| 清除整个拉取区缓存 | bunny.net API |
| 添加或移除自定义主机名 | bunny.net API |
| 添加、更新、删除或切换边缘规则 | bunny.net API |
| 列出 DNS 区域 | bunny.net API |
| 获取 DNS 区域及其所有记录 | bunny.net API |
| 创建 DNS 区域 | bunny.net API |
| 更新 DNS 区域设置 | bunny.net API |
| 删除 DNS 区域 | bunny.net API |
| 添加、更新或删除 DNS 记录 | bunny.net API |
| 获取 DNS 查询统计 | bunny.net API |
| 列出存储区 | bunny.net API |
| 获取存储区详情 | bunny.net API |
| 创建存储区 | bunny.net API |
| 获取存储区使用统计 | bunny.net API |
| 列出文件和目录 | 存储 API |
| 下载文件内容 | 存储 API |
| 删除文件或目录 | 存储 API |
| 列出视频库 | bunny.net API |
| 获取视频库详情 | bunny.net API |
| 创建视频库 | bunny.net API |
| 更新视频库设置 | bunny.net API |
| 列出视频(支持搜索和分页) | 流媒体 API |
| 获取视频详情 | 流媒体 API |
| 创建视频对象,可选择从 URL 拉取 | 流媒体 API |
| 更新视频元数据 | 流媒体 API |
| 删除视频 | 流媒体 API |
| 获取观看统计 | 流媒体 API |
| 获取注意力热图数据 | 流媒体 API |
| 重新编码视频 | 流媒体 API |
| 列出视频合集 | 流媒体 API |
| 获取合集详情 | 流媒体 API |
| 创建、更新或删除合集 | 流媒体 API |
| 列出边缘脚本 | bunny.net API |
| 获取脚本详情 | bunny.net API |
| 获取脚本源代码 | bunny.net API |
| 上传脚本代码(保存为草稿) | bunny.net API |
| 创建、更新或删除脚本 | bunny.net API |
| 将版本发布到边缘服务器 | bunny.net API |
| 管理环境变量和机密 | bunny.net API |
| 列出 Shield 安全区域 | bunny.net API |
| 通过 Shield 区域 ID 或拉取区 ID 获取区域 | bunny.net API |
| 获取 WAF 规则和配置文件 | bunny.net API |
| 创建、更新或删除自定义 WAF 规则 | bunny.net API |
| 列出速率限制规则 | bunny.net API |
| 创建、更新或删除速率限制规则 | bunny.net API |
| 获取安全指标概览 | bunny.net API |
| 获取或更新机器人检测设置 | bunny.net API |
| 列出 Magic Container 应用程序 | bunny.net API |
| 获取应用程序详情 | bunny.net API |
| 获取应用概览及实时指标 | bunny.net API |
| 创建、更新或删除应用程序 | bunny.net API |
| 部署、取消部署或重启应用程序 | bunny.net API |
| 列出容器注册表 | bunny.net API |
| 列出部署区域 | bunny.net API |
| 获取应用程序统计 | bunny.net API |
| 获取拉取区的源站错误日志 | 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 客户端完整列表。
可选环境变量
变量 | 描述 |
| 视频库 API 密钥——启用 Stream 视频和合集工具 |
| 存储区密码——启用存储文件工具 |
| 存储区域代码(默认为空,表示 Falkenstein) |
| 默认存储区名称 |
将这些变量添加到上方 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 注解(readOnlyHint、destructiveHint、idempotentHint、openWorldHint),以便客户端在审批工具时做出明智的决策。
许可证
MIT
Maintenance
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
- AlicenseAqualityCmaintenanceEnables 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.132MIT
- FlicenseNot gradedqualityDmaintenanceEnables 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.
- FlicenseBqualityDmaintenanceEnables interaction with Bunny.net APIs for Stream/Video, Storage, CDN Pull Zones, and DNS services. Provides 35 tools for managing video libraries, files, CDN configurations, and DNS records through Claude.37
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Cloudways infrastructure, including servers, applications, monitoring, and security via the Cloudways API.
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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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