概覽
什麼是 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 保護、網絡應用防火牆 (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.
伺服器配置
{
"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"
}
}
}
}