Cloudflare MCP Server
Cloudstdiov0.6.0
Official Cloudflare MCP server for managing Cloudflare services. Enables AI agents to interact with Workers, KV namespaces, R2 storage, D1 databases, and DNS records. Supports deploying Workers scripts, managing environment variables, querying analytics, and configuring security settings across Cloudflare's edge network.
Connect
Add this configuration to .claude/mcp.json
{
"mcpServers": {
"cloudflare": {
"command": "npx",
"args": [
"-y",
"@cloudflare/mcp-server-cloudflare"
],
"env": {
"CLOUDFLARE_API_TOKEN": "<YOUR_CLOUDFLARE_API_TOKEN>",
"CLOUDFLARE_ACCOUNT_ID": "<YOUR_CLOUDFLARE_ACCOUNT_ID>"
}
}
}
}Tools (5)
list_workers
List all Workers scripts in the Cloudflare account.
{
"type": "object",
"properties": {}
}deploy_worker
Deploy or update a Cloudflare Worker script.
{
"type": "object",
"required": [
"name",
"script"
],
"properties": {
"name": {
"type": "string",
"description": "Worker script name"
},
"script": {
"type": "string",
"description": "Worker script content (JavaScript/TypeScript)"
},
"bindings": {
"type": "object",
"description": "Environment variable and resource bindings"
}
}
}kv_get
Get a value from a KV namespace by key.
{
"type": "object",
"required": [
"namespace_id",
"key"
],
"properties": {
"key": {
"type": "string",
"description": "Key to retrieve"
},
"namespace_id": {
"type": "string",
"description": "KV namespace ID"
}
}
}d1_query
Execute a SQL query against a D1 database.
{
"type": "object",
"required": [
"database_id",
"query"
],
"properties": {
"query": {
"type": "string",
"description": "SQL query to execute"
},
"params": {
"type": "array",
"description": "Query parameters"
},
"database_id": {
"type": "string",
"description": "D1 database ID"
}
}
}manage_dns
Create, update, or delete DNS records for a zone.
{
"type": "object",
"required": [
"zone_id",
"action"
],
"properties": {
"action": {
"type": "string",
"description": "Action (create, update, delete, list)"
},
"record": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"content": {
"type": "string"
}
},
"description": "DNS record details"
},
"zone_id": {
"type": "string",
"description": "Cloudflare zone ID"
}
}
}Resources
This server does not expose any resources.
Prompts
This server does not expose any prompts.
Server Information
- Author
- Cloudflare (@cloudflare)
- License
- Apache-2.0
- Version
- 0.6.0
- Stars
- 3,778
- Last Updated
- May 25, 2026