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

Ресурсы

Этот сервер не предоставляет ресурсы.

Промпты

Этот сервер не предоставляет промпты.

Сведения о сервере

Автор
Cloudflare (@cloudflare)
Репозиторий
https://github.com/cloudflare/mcp-server-cloudflare
Лицензия
Apache-2.0
Версия
0.6.0
Звёзды
3,778
Последнее обновление
25 мая 2026 г.