mcp-server-cloudflare

MCP.Pizza Chef: cloudflare

The Cloudflare MCP Server is an MCP server implementation that connects MCP clients to Cloudflare's suite of cloud services. It enables large language models to interact with Cloudflare accounts through natural language commands, allowing users to read configurations, analyze data, and automate changes across Cloudflare's application development, security, and performance services. This server facilitates real-time, context-aware management of Cloudflare resources, enhancing productivity and operational efficiency by integrating Cloudflare's capabilities directly into AI-driven workflows.

Use This MCP server To

Manage Cloudflare configurations via natural language Automate security rule updates on Cloudflare Monitor and optimize Cloudflare performance settings Integrate Cloudflare data into AI-driven workflows Suggest and apply changes to Cloudflare services Access Cloudflare account information through MCP clients

README

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
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

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"]
		}
	}
}

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.

mcp-server-cloudflare FAQ

How do I authenticate the Cloudflare MCP Server with my account?
You authenticate by providing your Cloudflare API token or credentials securely to the MCP server, enabling it to access your account data and perform actions.
Can the Cloudflare MCP Server make changes to my Cloudflare settings?
Yes, it can suggest and apply changes based on natural language commands, but only with proper authentication and permissions.
Is the Cloudflare MCP Server compatible with multiple MCP clients?
Yes, it works with any MCP client that supports the protocol, such as Cursor and Claude, enabling flexible integration.
What Cloudflare services can the MCP Server interact with?
It supports a wide range of Cloudflare services including application development, security, and performance management.
How is data privacy handled when using the Cloudflare MCP Server?
The server follows secure, scoped access principles ensuring that only authorized data is accessed and actions are logged for auditability.
Can I customize the Cloudflare MCP Server for specific workflows?
Yes, the server is modular and can be extended or configured to fit custom use cases and integrations.
Does the Cloudflare MCP Server support real-time updates?
Yes, it provides real-time context and interaction capabilities to keep your Cloudflare environment synchronized with AI-driven commands.
What LLM providers are compatible with the Cloudflare MCP Server?
It is provider-agnostic and works with OpenAI, Anthropic Claude, Google Gemini, and other LLM providers supporting MCP.