Connects AI clients to Cloudflare services so they can read account configurations, inspect security and performance data, and suggest or apply changes.
Also known as cloudflare/mcp-server-cloudflare, mcp-server-cloudflare
- Stars
- 4,466
- Tools
- —
- Downloads, 30 days
- —
- Latest version
- 1.0.0
- Last commit
- Oct 22, 2026
- License
- Apache-2.0
What is Cloudflare MCP?
Cloudflare connects AI clients to Cloudflare services so they can read account configurations, inspect security and performance data, and suggest or apply changes.
Summary generated from the project's README
About Cloudflare MCP server
Managing Cloudflare configurations and security settings through natural language is possible by connecting AI clients like Claude or Cursor to these specialized servers. Developers can use these tools to read account settings, inspect performance data, and apply changes across various services including application development and security. The setup involves connecting an MCP client to a specific remote URL provided for each service.
Users can choose between the broad Cloudflare API MCP Server for wide API coverage via code execution or domain-specific servers for curated, typed tools focused on single product areas. For example, the Browser Run server handles web page fetching and screenshots, while the Container server manages sandbox environments. When using the OpenAI Responses API, you must provide an API token with the correct scopes for the specific server you are accessing. Some advanced features might require a paid Cloudflare Workers plan.
What you can do with it
- 1Provision development environmentsInstruct your AI client to spin up a new sandbox container for testing.
- 2Analyze application healthRequest quick insights regarding the performance of critical organizational applications.
- 3Identify security misconfigurationsUse the CASB server to find security gaps in SaaS applications to protect user data.
Written from the project's README. Every use case is checked against a quote from it.
How to install Cloudflare MCP
Formats verified 10 Nov 2026Add to CursorAdd to GooseInstall Cloudflare MCP in Claude Code
$ claude mcp add --transport http mcp-server-cloudflare https://docs.mcp.cloudflare.com/mcpInstall Cloudflare MCP in Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"mcp-server-cloudflare": {
"url": "https://docs.mcp.cloudflare.com/mcp"
}
}
}Install Cloudflare MCP in VS Code
.vscode/mcp.json
{
"servers": {
"mcp-server-cloudflare": {
"type": "http",
"url": "https://docs.mcp.cloudflare.com/mcp"
}
}
}Install Cloudflare MCP in VS Code CLI
$ code --add-mcp '{"name":"mcp-server-cloudflare","type":"http","url":"https://docs.mcp.cloudflare.com/mcp"}'Install Cloudflare MCP in Codex
$ codex mcp add mcp-server-cloudflare --url https://docs.mcp.cloudflare.com/mcpInstall Cloudflare MCP in Codex config.toml
~/.codex/config.toml
[mcp_servers.mcp-server-cloudflare] url = "https://docs.mcp.cloudflare.com/mcp"
Install Cloudflare MCP in Gemini CLI
$ gemini mcp add -s user --transport http mcp-server-cloudflare https://docs.mcp.cloudflare.com/mcpInstall Cloudflare MCP in Gemini settings.json
~/.gemini/settings.json
{
"mcpServers": {
"mcp-server-cloudflare": {
"url": "https://docs.mcp.cloudflare.com/mcp",
"type": "http"
}
}
}Automated checks
Ran Nov 12, 2026Full report →Passed our automated checks. That is not a security audit: read the code and give the server the narrowest access it needs. How checks work
- Source repository linked and reachablePass
- Open source license (OSI)Pass
- Commit or release in the last yearPass
- Package name not close to a popular packageNot checked
- Remote endpoint uses HTTPSPass
- Destructive tools are labelledNot checked
- No hidden instructions to the modelPass
- No critical advisory in the package or its dependenciesNot checked
README
View on GitHubCloudflare 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.
Every server in this repository exposes a stateless Streamable HTTP handler at /mcp through a fresh SDK v2 server factory. The retired /sse URL answers every request with a 410 Gone Problem Details response that names the /mcp URL; MCP clients show its message in their connection error. 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 Cloudflare API MCP Server is maintained in cloudflare/mcp:
| Server Name | Description | Server URL |
|---|---|---|
| Cloudflare API MCP Server (recommended) | Best when you want broad access across Cloudflare's APIs through code execution | https://mcp.cloudflare.com/mcp |
| Documentation server | Get up-to-date reference information on Cloudflare | https://docs.mcp.cloudflare.com/mcp |
| Container server | Spin up a sandbox development environment | https://containers.mcp.cloudflare.com/mcp |
| Browser Run server | Fetch web pages, convert them to markdown and take screenshots | https://browser.mcp.cloudflare.com/mcp |
| Digital Experience Monitoring server | Get quick insight on critical applications for your organization | https://dex.mcp.cloudflare.com/mcp |
| Cloudflare One CASB server | Quickly identify any security misconfigurations for SaaS applications to safeguard users & data | https://casb.mcp.cloudflare.com/mcp |
| Cloudflare Blog server | Search and read posts from the Cloudflare Blog | https://blog.mcp.cloudflare.com/mcp |
| Demo Day server | Demonstrate a minimal Cloudflare MCP server | https://demo-day.mcp.cloudflare.com/mcp |
Please migrate to the Cloudflare API MCP Server at your earliest convenience.
| Server Name | Description | Server URL |
|---|---|---|
| AI Gateway server | Search your logs, get details about the prompts and responses | https://ai-gateway.mcp.cloudflare.com/mcp |
| Audit Logs server | Query audit logs and generate reports for review | https://auditlogs.mcp.cloudflare.com/mcp |
| AutoRAG server | Search and query account AutoRAG instances | https://autorag.mcp.cloudflare.com/mcp |
| DNS Analytics server | Optimize DNS performance and debug issues based on current setup | https://dns-analytics.mcp.cloudflare.com/mcp |
| GraphQL server | Get analytics data using Cloudflare's GraphQL API | https://graphql.mcp.cloudflare.com/mcp |
| Logpush server | Get quick summaries for Logpush job health | https://logs.mcp.cloudflare.com/mcp |
| Observability server | Debug and get insight into your application's logs and analytics | https://observability.mcp.cloudflare.com/mcp |
| Radar server | Explore Cloudflare Radar internet insights | https://radar.mcp.cloudflare.com/mcp |
| Workers Bindings server | Build Workers applications with storage, AI, and compute primitives | https://bindings.mcp.cloudflare.com/mcp |
| Workers Builds server | Get insights and manage your Cloudflare Workers Builds | https://builds.mcp.cloudflare.com/mcp |
Which Cloudflare MCP server should you use?
Cloudflare provides two categories of MCP servers:
- Cloudflare API MCP Server (
mcp.cloudflare.com) incloudflare/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 Cloudflare API MCP 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 Browser Run or containers
Learn more about the Cloudflare API MCP 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:
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.
Cloudflare MCP questions
How do I add Cloudflare MCP to Claude Code?
Run claude mcp add --transport http mcp-server-cloudflare https://docs.mcp.cloudflare.com/mcp in your terminal. Add --scope user to make it available in every project.
How do I add Cloudflare MCP to Cursor?
Open ~/.cursor/mcp.json and add the server under mcpServers, using the Cursor config shown in the install section above.
How do I connect an MCP client to a Cloudflare MCP server?
Connect any MCP client that supports remote servers directly to one of the listed server URLs, such as the documentation or Browser Run server. Cloudflare AI Playground also accepts server URLs.
What is the difference between the Cloudflare API MCP Server and the domain-specific servers?
The API MCP Server gives broad access across Cloudflare APIs through code execution, while the domain-specific servers provide curated, typed tools for a specific product area.
What endpoint do the Cloudflare MCP servers expose?
Each server exposes a stateless Streamable HTTP handler at /mcp. The retired /sse URL returns a 410 Gone response pointing clients to /mcp.
How do I use a Cloudflare MCP server with the OpenAI Responses API?
Create a Cloudflare API token with the scopes required for that particular MCP server and provide it to the Responses API.
Are any Cloudflare MCP servers deprecated?
Yes, several servers such as AI Gateway, GraphQL, Radar, and Workers Bindings are deprecated and should be replaced with the Cloudflare API MCP Server.