概览
什么是 mcp-server-cloudflare?
mcp-server-cloudflare 是一个由 Cloudflare 维护的公共仓库,旨在增强 Minecraft 服务器的功能和性能。该项目集成了 Cloudflare 的服务,以提供更好的安全性、性能和可靠性,适用于 Minecraft 服务器托管。它利用 Cloudflare 的全球网络来优化延迟并防止 DDoS 攻击,确保玩家获得无缝的游戏体验。
mcp-server-cloudflare 的特点
- DDoS 保护:自动减轻 DDoS 攻击,保护您的服务器免受干扰。
- 全球 CDN:利用 Cloudflare 的内容分发网络,减少延迟并改善全球玩家的加载时间。
- 可定制规则:提供设置自定义防火墙规则的能力,以满足您服务器的需求。
- 分析仪表板:通过直观的仪表板提供有关流量模式、玩家活动和潜在威胁的洞察。
- 简单集成:简单的设置过程,使服务器管理员能够快速实施 Cloudflare 的功能,而无需广泛的技术知识。
如何使用 mcp-server-cloudflare
- 创建 Cloudflare 账户:如果您还没有,请注册一个免费的 Cloudflare 账户。
- 添加您的域名:将您的 Minecraft 服务器域名链接到您的 Cloudflare 账户。
- 配置 DNS 设置:在 Cloudflare 中更新您的 DNS 设置,以指向您的 Minecraft 服务器的 IP 地址。
- 设置防火墙规则:自定义您的防火墙设置,以保护免受不必要的流量和攻击。
- 监控性能:使用分析仪表板跟踪服务器性能和玩家参与度。
常见问题解答
问:mcp-server-cloudflare 是免费使用的吗?
答:是的,mcp-server-cloudflare 仓库是开源的,免费使用。然而,Cloudflare 的某些高级功能可能需要付费计划。
问:我可以将 mcp-server-cloudflare 与任何 Minecraft 服务器一起使用吗?
答:是的,mcp-server-cloudflare 兼容大多数 Minecraft 服务器类型,包括 Spigot、Paper 和 Vanilla 服务器。
问:Cloudflare 如何保护我的服务器?
答:Cloudflare 提供 DDoS 保护、Web 应用防火墙 (WAF) 和其他安全功能,帮助防止攻击和未经授权的访问您的服务器。
问:使用 CDN 对我的 Minecraft 服务器有什么好处?
答:使用像 Cloudflare 这样的 CDN 可以显著减少延迟、改善加载时间,并通过将内容缓存到离玩家地理位置更近的地方来增强整体游戏体验。
问:我如何为 mcp-server-cloudflare 项目做贡献?
答:欢迎贡献!您可以分叉该仓库,进行更改,并在 GitHub 上提交拉取请求。请确保遵循仓库中提供的贡献指南。
详情
Cloudflare MCP Server
Model Context Protocol (MCP) is a new, standardized protocol for managing context between large language models (LLMs) and external systems. In this repository, you can find several MCP servers allowing you to connect to Cloudflare's service from an MCP client (e.g. Cursor, Claude) and use natural language to accomplish tasks through your Cloudflare account.
These MCP servers allow your MCP Client to read configurations from your account, process information, make suggestions based on data, and even make those suggested changes for you. All of these actions can happen across Cloudflare's many services including application development, security and performance.
The following servers are included in this repository:
Server Name | Description | Server URL |
---|---|---|
Documentation server | Get up to date reference information on Cloudflare | https://docs.mcp.cloudflare.com/sse |
Workers Bindings server | Build Workers applications with storage, AI, and compute primitives | https://bindings.mcp.cloudflare.com/sse |
Workers Builds server | Get insights and manage your Cloudflare Workers Builds | https://builds.mcp.cloudflare.com/sse |
Observability server | Debug and get insight into your application's logs and analytics | https://observability.mcp.cloudflare.com/sse |
Radar server | Get global Internet traffic insights, trends, URL scans, and other utilities | https://radar.mcp.cloudflare.com/sse |
Container server | Spin up a sandbox development environment | https://containers.mcp.cloudflare.com/sse |
Browser rendering server | Fetch web pages, convert them to markdown and take screenshots | https://browser.mcp.cloudflare.com/sse |
Logpush server | Get quick summaries for Logpush job health | https://logs.mcp.cloudflare.com/sse |
AI Gateway server | Search your logs, get details about the prompts and responses | https://ai-gateway.mcp.cloudflare.com/sse |
AutoRAG server | List and search documents on your AutoRAGs | https://autorag.mcp.cloudflare.com/sse |
Audit Logs server | Query audit logs and generate reports for review | https://auditlogs.mcp.cloudflare.com/sse |
DNS Analytics server | Optimize DNS performance and debug issues based on current set up | https://dns-analytics.mcp.cloudflare.com/sse |
Digital Experience Monitoring server | Get quick insight on critical applications for your organization | https://dex.mcp.cloudflare.com/sse |
Cloudflare One CASB server | Quickly identify any security misconfigurations for SaaS applications to safeguard users & data | https://casb.mcp.cloudflare.com/sse |
GraphQL server | Get analytics data using Cloudflare’s GraphQL API | https://graphql.mcp.cloudflare.com/sse |
Access the remote MCP server from any MCP client
If your MCP client has first class support for remote MCP servers, the client will provide a way to accept the server URL directly within its interface (e.g. Cloudflare AI Playground)
If your client does not yet support remote MCP servers, you will need to set up its resepective configuration file using mcp-remote (https://www.npmjs.com/package/mcp-remote) to specify which servers your client can access.
{
"mcpServers": {
"cloudflare-observability": {
"command": "npx",
"args": ["mcp-remote", "https://observability.mcp.cloudflare.com/sse"]
},
"cloudflare-bindings": {
"command": "npx",
"args": ["mcp-remote", "https://bindings.mcp.cloudflare.com/sse"]
}
}
}
Using Cloudflare's MCP servers from the OpenAI Responses API
To use one of Cloudflare's MCP servers with OpenAI's responses API, you will need to provide the Responses API with an API token that has the scopes (permissions) required for that particular MCP server.
For example, to use the Browser Rendering MCP server with OpenAI, create an API token in the Cloudflare dashboard here, with the following permissions:
<img width="937" alt="Screenshot 2025-05-21 at 10 38 02 AM" src="https://github.com/user-attachments/assets/872e253f-23ce-43b3-983c-45f9d0f66100" />Need access to more Cloudflare tools?
We're continuing to add more functionality to this remote MCP server repo. If you'd like to leave feedback, file a bug or provide a feature request, please open an issue on this repository
Troubleshooting
"Claude's response was interrupted ... "
If you see this message, Claude likely hit its context-length limit and stopped mid-reply. This happens most often on servers that trigger many chained tool calls such as the observability server.
To reduce the chance of running in to this issue:
- Try to be specific, keep your queries concise.
- If a single request calls multiple tools, try to to break it into several smaller tool calls to keep the responses short.
Paid Features
Some features may require a paid Cloudflare Workers plan. Ensure your Cloudflare account has the necessary subscription level for the features you intend to use.
Contributing
Interested in contributing, and running this server locally? See CONTRIBUTING.md to get started.
Server配置
{
"mcpServers": {
"mcp-server-cloudflare": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/metorial/mcp-container--cloudflare--mcp-server-cloudflare--mcp-server-cloudflare"
],
"env": {
"API_KEY": "api-key"
}
}
}
}