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.
连接
将此配置添加到 .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>"
}
}
}
}工具 (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"
}
}
}资源
此服务器未提供任何资源。
提示词
此服务器未提供任何提示词。
服务器信息
- 许可证
- Apache-2.0
- 版本
- 0.6.0
- 星标
- 3,778
- 最后更新
- 2026年5月25日