Deploy, configure & interrogate resources on the Cloudflare developer platform (Workers, KV, R2, D1).
Visit ProjectThe Cloudflare MCP Server is a repository of Model Context Protocol (MCP) servers that enable interaction with Cloudflare's developer platform (Workers, KV, R2, D1) through natural language. It allows developers to deploy, configure, and query resources using MCP clients like Cursor or Claude.
To use Cloudflare's MCP servers:
mcp-remote
to configure server access by editing the client's config file. Example:{
"mcpServers": {
"cloudflare-observability": {
"command": "npx",
"args": ["mcp-remote", "https://observability.mcp.cloudflare.com/sse"]
}
}
}```
- **OpenAI Responses API**: When using OpenAI's API, ensure your Cloudflare API token has the required scopes (e.g., for Browser Rendering or other services).
## Key Features
- **Diverse Cloudflare Services**: Interact with tools like Workers Bindings, Radar, Observability, AI Gateway, and more.
- **Natural Language Control**: Use MCP clients to read configurations, process data, and make changes across Cloudflare's ecosystem (e.g., Workers, DNS, security).
- **Embedded Documentation**: Access up-to-date Cloudflare API docs via the Documentation server.
- **Dev Environments**: Spin up sandbox containers or test browser rendering.
- **Security & Analytics**: Tools like Audit Logs, Digital Experience Monitoring (DEX), and CASB for SaaS misconfigurations.
## Use Cases
1. **Workers Development**: Deploy and debug Workers apps with storage (KV/R2) and AI integrations.
2. **Observability & Logging**: Analyze application logs, metrics, and health (e.g., Logpush summaries).
3. **AI & GraphQL**: Query AI Gateway logs or fetch analytics via GraphQL.
4. **Security**: Scan for SaaS misconfigurations or audit permissions.
5. **Content Generation**: Convert web pages to markdown or take screenshots.
## FAQ
- **Q: How do I resolve "Claude's response was interrupted" errors?**
> A: Break complex queries into smaller tool calls to avoid OpenAI's context limit. Be specific and concise.
- **Q: Are there paid features?**
> A: Some features may require a paid Cloudflare Workers plan. Ensure your account has the necessary subscription.
- **Q: How can I contribute?**
> A: Follow the [CONTRIBUTING.md](https://github.com/cloudflare/mcp-server-cloudflare/blob/main/CONTRIBUTING.md) guide to run the server locally or submit feedback via GitHub issues.
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 |
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"]
}
}
}
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:
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
"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:
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.
Interested in contributing, and running this server locally? See CONTRIBUTING.md to get started.