Overview
Cloudflare MCP Server is an implementation of the Model Context Protocol (MCP), designed to facilitate interaction between large language models (LLMs) and Cloudflare's API, allowing users to manage their Cloudflare resources using natural language commands.
To use the Cloudflare MCP Server, you need to install it via the command line and then interact with it through Claude Desktop or any compatible MCP Client. You can issue commands to manage your Cloudflare account resources.
- Natural language commands for managing Cloudflare resources. - Support for KV Store, R2 Storage, D1 Database, and Workers management. - Analytics retrieval for monitoring account performance.
- Deploying new Cloudflare Workers with simple commands.
- Managing KV namespaces and R2 buckets efficiently.
- Executing SQL queries on D1 databases directly from a natural language interface.
Add to your AI client
Use these steps to connect Cloudflare MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"cloudflare-mcp-server-cloudflare-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-cloudflare-mcp-server-cloudflare-mcp-mirror"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"cloudflare-mcp-server-cloudflare-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-cloudflare-mcp-server-cloudflare-mcp-mirror"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"cloudflare-mcp-server-cloudflare-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-cloudflare-mcp-server-cloudflare-mcp-mirror"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"cloudflare-mcp-server-cloudflare-mcp-mirror": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-cloudflare-mcp-server-cloudflare-mcp-mirror"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"cloudflare-mcp-server-cloudflare-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-cloudflare-mcp-server-cloudflare-mcp-mirror"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"cloudflare-mcp-server-cloudflare-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-cloudflare-mcp-server-cloudflare-mcp-mirror"
]
}
}
}FAQ
Can I use Cloudflare MCP Server with any LLM?
Yes! As long as the LLM supports the MCP, you can integrate it with Cloudflare MCP Server.
Is there a cost associated with using Cloudflare MCP Server?
The server itself is free to use, but standard Cloudflare API usage fees may apply based on your account's usage.
What programming languages are supported for commands?
The commands can be issued in JavaScript, as shown in the provided examples.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":672,"uuid":"89bf06a0-e1a1-4a84-ab48-2afee3ebf023","name":"cloudflare_mcp-server-cloudflare","title":"Cloudflare MCP Server","description":"Mirror of","avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","created_at":"$D2024-12-30T03:25:59.066Z","updated_at":"$D2025-02-23T07:15:14.202Z","status":"created","author_name":"MCP-Mirror","author_avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","tags":"cloudflare,mcp-server,api-integration","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/MCP-Mirror/cloudflare_mcp-server-cloudflare","target":"_self","content":"$29","summary":"$2a","img_url":"https://camo.githubusercontent.com/46f192674dcb2d07269af9a38d5b138bfb1b28d56c79373a5f726f085d82edaa/68747470733a2f2f696d672e796f75747562652e636f6d2f76692f7647616a5a706c5f3979412f6d617872657364656661756c742e6a7067","type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]