Home · Skills · Development · Agent

Cloudflare MCP Servers

Cloudflare's hosted servers for Workers, docs, observability, logs and browser rendering.

How to install

How to install

  1. This server is hosted — nothing to install on your machine.
  2. Claude Code: run the line below. Claude (web or desktop): Customize → Connectors → Add → Add custom connector → paste the URL. Cursor: add the JSON to ~/.cursor/mcp.json.
  3. Ask something that needs the tool. Sign in if the app asks you to.
Claude Code
claude mcp add --transport http cloudflare https://mcp.cloudflare.com/mcp
Claude Desktop — custom connector URL
https://mcp.cloudflare.com/mcp
Cursor (~/.cursor/mcp.json)
{
  "mcpServers": {
    "cloudflare": {
      "url": "https://mcp.cloudflare.com/mcp"
    }
  }
}

This is Cloudflare's recommended all-in-one server. The README lists separate ones for docs, Workers builds, observability and logs.

This one runs on your machine and can reach your files. Read the README below before you connect it.

Not working?
  • Check which app you pasted it into — the steps above name the right one.
  • Some skills need the paid tier of Claude or ChatGPT.
Step-by-step guide with screenshots · Ask in the forum

Paste into Claude, ChatGPT or Cursor.

Show the full text90 lines
cloudflare/README.md90 lines8.9 KBpushed 21d agoRawView on 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.

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:

Server Name Description Server URL
Code Mode 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
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
Observability server Debug and get insight into your application's logs and analytics https://observability.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
Logpush server Get quick summaries for Logpush job health https://logs.mcp.cloudflare.com/mcp
AI Gateway server Search your logs, get details about the prompts and responses https://ai-gateway.mcp.cloudflare.com/mcp
AutoRAG server Search and query account AutoRAG instances https://autorag.mcp.cloudflare.com/mcp
Audit Logs server Query audit logs and generate reports for review https://auditlogs.mcp.cloudflare.com/mcp
DNS Analytics server Optimize DNS performance and debug issues based on current setup https://dns-analytics.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
Radar server Explore Cloudflare Radar internet insights https://radar.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

Which Cloudflare MCP server should you use?

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:

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.

1# Cloudflare MCP Server
2 
3Model Context Protocol (MCP) is a [new, standardized protocol](https://modelcontextprotocol.io/introduction) 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.
4 
5These MCP servers allow your [MCP Client](https://modelcontextprotocol.io/clients) 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.
6 
7Every 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.
8 
9Cloudflare 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`](https://github.com/cloudflare/mcp):
10 
11| Server Name | Description | Server URL |
12| ----------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ---------------------------------------------- |
13| [**Code Mode server (recommended)**](https://github.com/cloudflare/mcp) | Best when you want broad access across Cloudflare's APIs through code execution | `https://mcp.cloudflare.com/mcp` |
14| [**Documentation server**](/apps/docs-ai-search) | Get up-to-date reference information on Cloudflare | `https://docs.mcp.cloudflare.com/mcp` |
15| [**Workers Bindings server**](/apps/workers-bindings) | Build Workers applications with storage, AI, and compute primitives | `https://bindings.mcp.cloudflare.com/mcp` |
16| [**Workers Builds server**](/apps/workers-builds) | Get insights and manage your Cloudflare Workers Builds | `https://builds.mcp.cloudflare.com/mcp` |
17| [**Observability server**](/apps/workers-observability) | Debug and get insight into your application's logs and analytics | `https://observability.mcp.cloudflare.com/mcp` |
18| [**Container server**](/apps/sandbox-container) | Spin up a sandbox development environment | `https://containers.mcp.cloudflare.com/mcp` |
19| [**Browser Run server**](/apps/browser-rendering) | Fetch web pages, convert them to markdown and take screenshots | `https://browser.mcp.cloudflare.com/mcp` |
20| [**Logpush server**](/apps/logpush) | Get quick summaries for Logpush job health | `https://logs.mcp.cloudflare.com/mcp` |
21| [**AI Gateway server**](/apps/ai-gateway) | Search your logs, get details about the prompts and responses | `https://ai-gateway.mcp.cloudflare.com/mcp` |
22| [**AutoRAG server**](/apps/autorag) | Search and query account AutoRAG instances | `https://autorag.mcp.cloudflare.com/mcp` |
23| [**Audit Logs server**](/apps/auditlogs) | Query audit logs and generate reports for review | `https://auditlogs.mcp.cloudflare.com/mcp` |
24| [**DNS Analytics server**](/apps/dns-analytics) | Optimize DNS performance and debug issues based on current setup | `https://dns-analytics.mcp.cloudflare.com/mcp` |
25| [**Digital Experience Monitoring server**](/apps/dex-analysis) | Get quick insight on critical applications for your organization | `https://dex.mcp.cloudflare.com/mcp` |
26| [**Cloudflare One CASB server**](/apps/cloudflare-one-casb) | Quickly identify any security misconfigurations for SaaS applications to safeguard users & data | `https://casb.mcp.cloudflare.com/mcp` |
27| [**Radar server**](/apps/radar) | Explore Cloudflare Radar internet insights | `https://radar.mcp.cloudflare.com/mcp` |
28| [**Cloudflare Blog server**](/apps/cloudflare-blog) | Search and read posts from the Cloudflare Blog | `https://blog.mcp.cloudflare.com/mcp` |
29| [**Demo Day server**](/apps/demo-day) | Demonstrate a minimal Cloudflare MCP server | `https://demo-day.mcp.cloudflare.com/mcp` |
30 
31## Which Cloudflare MCP server should you use?
32 
33Cloudflare provides two categories of MCP servers:
34 
35- **Code Mode server** (`mcp.cloudflare.com`) in [`cloudflare/mcp`](https://github.com/cloudflare/mcp):
36 best when you want broad access across Cloudflare's APIs through code execution.
37- **Domain-specific servers** (`*.mcp.cloudflare.com`) in this repository:
38 best when you want curated, typed tools for a specific Cloudflare product area.
39 
40### When should you use each?
41 
42Use the **Code Mode server** when:
43 
44- you need broad API coverage across many Cloudflare products
45- you prefer a smaller set of general-purpose tools
46- your workflow is better served by code execution
47 
48Use the **domain-specific servers** in this repository when:
49 
50- you want purpose-built tools for a specific product area
51- you want more guided, typed interactions
52- you are working primarily within one Cloudflare domain such as observability, bindings, Radar, or Browser Run
53 
54Learn more about the Code Mode server here: [`cloudflare/mcp`](https://github.com/cloudflare/mcp).
55 
56## Connect to an MCP server
57 
58Connect any MCP client with remote-server support directly to a URL in the table above. [Cloudflare AI Playground](https://playground.ai.cloudflare.com/) also accepts server URLs in its interface.
59 
60## Using Cloudflare's MCP servers from the OpenAI Responses API
61 
62To use one of Cloudflare's MCP servers with [OpenAI's responses API](https://openai.com/index/new-tools-and-features-in-the-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.
63 
64For example, to use the [Browser Run MCP server](https://github.com/cloudflare/mcp-server-cloudflare/tree/main/apps/browser-rendering) with OpenAI, create an API token in the Cloudflare dashboard [here](https://dash.cloudflare.com/profile/api-tokens), with the following permissions:
65 
66<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" />
67 
68## Need access to more Cloudflare tools?
69 
70We'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](https://github.com/cloudflare/mcp-server-cloudflare/issues/new/choose) on this repository
71 
72## Troubleshooting
73 
74"Claude's response was interrupted ... "
75 
76If 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.
77 
78To reduce the chance of running in to this issue:
79 
80- Try to be specific, keep your queries concise.
81- If a single request calls multiple tools, try to to break it into several smaller tool calls to keep the responses short.
82 
83## Paid Features
84 
85Some features may require a paid Cloudflare Workers plan. Ensure your Cloudflare account has the necessary subscription level for the features you intend to use.
86 
87## Contributing
88 
89Interested in contributing, and running this server locally? See [CONTRIBUTING.md](CONTRIBUTING.md) to get started.
90 

Discussion

Alternatives

Also in Agents & MCP