Cloudflare MCP servers for the Model Context Protocol (MCP). This repository provides MCP servers that connect to Cloudflare’s service from an MCP client (for example, Cursor or Claude), enabling natural-language task execution through your Cloudflare account.
🛠️ Key Features
“Cloudflare MCP Server” implementation for MCP clients
Supports connecting an MCP client to Cloudflare services using MCP
🚀 Use Cases
Connect from an MCP client (e.g., Cursor, Claude) to Cloudflare
Read configurations from your Cloudflare account
Process information and make suggestions based on account data
⚡ Developer Benefits
Uses the standardized MCP protocol to manage context between LLMs and external systems
Designed for MCP clients to interact with Cloudflare via natural language
⚠️ Limitations
Limited details available in the provided source excerpt; only basic server purpose and interactions are described
Captured live from the server via tools/list.
search_cloudflare_documentation
Search the Cloudflare documentation.
This tool should be used to answer any question about Cloudflare products or features, including:
- Workers, Pages, R2, Images, Stream, D1, Durable Objects, KV, Workflows, Hyperdrive, Queues
- AI Search, Workers AI, Vectorize, AI Gateway, Browser Rendering
- Zero Trust, Access, Tunnel, Gateway, Browser Isolation, WARP, DDOS, Magic Transit, Magic WAN
- CDN, Cache, DNS, Zaraz, Argo, Rulesets, Terraform, Account and Billing
Results are returned as semantically similar chunks to the query.
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.
Every server in this repository exposes the same stateless Streamable HTTP handler at /mcp and /sse through a fresh SDK v2 server factory. /sse remains as a URL compatibility alias; it does not use the deprecated HTTP+SSE transport. A legacy SSE GET /sse request receives a 410 Gone Problem Details response with two migration options: configure the existing URL to use Streamable HTTP, or switch to the recommended /mcp URL for future compatibility. Modern 2026 requests and stateless 2025 requests share the same request-scoped implementation without an MCP protocol session. OAuth, credentials, account selection, application caches, and product Durable Objects remain application/security state where required.
Cloudflare offers the following MCP servers. The domain-specific servers are included in this repository, while the recommended Code Mode server is maintained in cloudflare/mcp:
Cloudflare provides two categories of MCP servers:
Code Mode server (mcp.cloudflare.com) in cloudflare/mcp:
best when you want broad access across Cloudflare's APIs through code execution.
Domain-specific servers (*.mcp.cloudflare.com) in this repository:
best when you want curated, typed tools for a specific Cloudflare product area.
When should you use each?
Use the Code Mode server when:
you need broad API coverage across many Cloudflare products
you prefer a smaller set of general-purpose tools
your workflow is better served by code execution
Use the domain-specific servers in this repository when:
you want purpose-built tools for a specific product area
you want more guided, typed interactions
you are working primarily within one Cloudflare domain such as observability, bindings, Radar, or Browser Run
Learn more about the Code Mode server here: cloudflare/mcp.
Connect to an MCP server
Connect any MCP client with remote-server support directly to a URL in the table above. Cloudflare AI Playground also accepts server URLs in its interface.
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 Run MCP server with OpenAI, create an API token in the Cloudflare dashboard here, with the following permissions:
Screenshot 2025-05-21 at 10 38 02 AM
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.