Skip to content
MCP-BridgeMCP-Bridge
Cloud InfrastructureAPI KeyOfficial MCPScore: 66Verified by owner

Cloudflare API MCP Server

Manage Cloudflare DNS, CDN, Workers, and security settings through your AI agent.

Quick Answer

  1. 1. The Cloudflare API MCP server lets Claude, Cursor, and VS Code interact with the Cloudflare API API through natural language.
  2. 2. Setup: Add the config to claude_desktop_config.json, set your API Key variables, and restart.
  3. 3. 3 operations available including List zones, List DNS records, Create DNS record.
  4. 4. Quality score: 66/99fair source quality and documentation coverage.

Overview

Category: Cloud Infrastructure

Auth: API Key

Endpoints: 3

Transport: STDIO

Command: npx -y @cloudflare/mcp-server

Spec: v4.0

Setup time: ~2 min (auth required)

Environment Variables

CLOUDFLARE_API_TOKEN

Example: your_cloudflare_api_token

One-Click Install

Copy the snippet for your MCP client and paste it in — zero editing required.

Claude Desktop

Add to claude_desktop_config.json

{
  "mcpServers": {
    "cloudflare": {
      "command": "npx",
      "args": [
        "-y",
        "@cloudflare/mcp-server"
      ],
      "env": {
        "CLOUDFLARE_API_TOKEN": "your_cloudflare_api_token"
      }
    }
  }
}
Deep link

Cursor

Settings → MCP Servers → Add

{
  "mcpServers": {
    "cloudflare": {
      "url": "https://mcpbridge.org/config/cloudflare.json"
    }
  }
}

Saves as .cursor/mcp.json in the download. Move it to your project root.

Deep link install →

VS Code

Use with MCP extension

{
  "mcpServers": {
    "cloudflare": {
      "url": "https://mcpbridge.org/config/cloudflare.json"
    }
  }
}

MCP Server Configuration

Add this to your claude_desktop_config.json or Cursor MCP settings.

{
  "mcpServers": {
    "cloudflare": {
      "command": "npx",
      "args": ["-y","@cloudflare/mcp-server"],
      "env": {
      "CLOUDFLARE_API_TOKEN": "your_cloudflare_api_token"
}
    }
  }
}

What You Can Build

With the Cloudflare API MCP server, your AI assistant can:

  • Access 3 API operations through natural language
  • Read, create, and modify cloud infrastructure resources without writing HTTP requests
  • Chain multiple operations in a single conversation for complex workflows
  • Combine with other MCP servers for cross-tool automation

Endpoints

GET/zones

List zones

GET/zones/{zone_id}/dns_records

List DNS records

POST/zones/{zone_id}/dns_records

Create DNS record

Authentication

This API requires API Key authentication.

Set the required environment variables in your MCP client before using this server. Refer to the Cloudflare API API documentation to obtain credentials.

Required environment variables:

  • CLOUDFLARE_API_TOKEN

Spec Version

Version: 4.0

Spec version published with the OpenAPI document. Config auto-updates when the spec changes.

Page last updated: June 13, 2026

Quality Score

66/99Fair
  • +Official source (+30)
  • +Has documentation (+12)
  • +Auth type defined (+8)
  • +OpenAPI spec available (+8)
  • +3 endpoints (+8)

Build with Cloudflare API

Get everything you need in one bundle: MCP config, cursor rules, and framework integration for Cloudflare API.

View Cloudflare Edge Stack

Read the Guide

Step-by-step walkthrough for setting up and using the Cloudflare API MCP server.

Cloudflare APIMCP Setup Guide →

This listing is verified by the API owner.