# Cloudflare Máy chủ MCP chính thức - Công nhân, KV, R2 & D1 Edge SQL (`cloudflare-workers-mcp`)

> Máy chủ Cloudflare MCP chính thức để kiểm tra việc triển khai Công nhân, truy vấn cơ sở dữ liệu biên D1, kiểm tra vùng tên KV và kiểm tra nhóm đối tượng R2.

- **Canonical URL:** https://syndipath.com/vi/mcp/cloudflare-workers-mcp
- **Runtime:** `npm` | **Transport:** STDIO | **License:** Apache-2.0 | **Package:** `@cloudflare/mcp-server-cloudflare`
- **Upvotes:** 891 | **GitHub Stars:** 7860 | **Weekly Installs:** 62100
- **Security Note:** HTTP-200 đã được xác minh trên NPM Đăng ký (@cloudflare/mcp-server-cloudflare); chạy qua npx bên trong phiên STDIO trong phạm vi không gian làm việc.

## Quick CLI Setup
```bash
# Run directly via Node npx
npx -y @cloudflare/mcp-server-cloudflare

# Add to Claude Code CLI
claude mcp add -e CLOUDFLARE_API_TOKEN=${CLOUDFLARE_API_TOKEN} cloudflare-workers-mcp -- npx -y @cloudflare/mcp-server-cloudflare
```

## MCP Manifest (`mcp.json`)
```json
{
  "mcpServers": {
    "cloudflare-workers-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cloudflare/mcp-server-cloudflare"
      ],
      "env": {
        "CLOUDFLARE_API_TOKEN": "${CLOUDFLARE_API_TOKEN}"
      }
    }
  }
}
```

## Exposed MCP Tools
- `cloudflare_workers_mcp_inspect_resources(region_or_namespace?: string)`: Official Cloudflare MCP server to inspect Workers deployments, query D1 edge databases, inspect KV namespaces, and audit R2 object buck.
- `cloudflare_workers_mcp_diagnostics(resource_id: string)`: Fetches deployment status, configuration drift, and recent runtime events.
