Skip to main content
Glama

MCP Cloudflare DNS Server

by gilberth

MCP Cloudflare DNS Server

A Model Context Protocol server implementation for Cloudflare DNS that enables AI agents to manage DNS records for your domains.

Features

  • 🔍 List DNS records - View all or filtered DNS records
  • 📝 Create DNS records - Add new A, AAAA, CNAME, MX, TXT, and other record types
  • ✏️ Update DNS records - Modify existing records
  • 🗑️ Delete DNS records - Remove unwanted records
  • 🔧 Full Cloudflare API support - Supports proxying, TTL, priority settings

Setup

1. Get Cloudflare API Token

  1. Go to Cloudflare API Tokens
  2. Click "Create Token"
  3. Use "Zone" template or create custom token with:
    • Zone
    • Zone
  4. Copy your API token

2. Get Zone ID

  1. Go to your domain in Cloudflare Dashboard
  2. Copy the Zone ID from the right sidebar

Usage

With Smithery (Cloud)

Deploy directly to Smithery for hosted access.

With npx (Local)

npx -y @thelord/mcp-cloudflare

Environment Variables

Create a .env file:

CLOUDFLARE_API_TOKEN=your-api-token-here CLOUDFLARE_ZONE_ID=your-zone-id-here CLOUDFLARE_EMAIL=your-email@example.com # Optional

Claude Desktop Configuration

{ "mcpServers": { "cloudflare": { "command": "npx", "args": ["-y", "@thelord/mcp-cloudflare"], "env": { "CLOUDFLARE_API_TOKEN": "your-api-token", "CLOUDFLARE_ZONE_ID": "your-zone-id" } } } }

Available Tools

list_dns_records

List all DNS records or filter by name/type.

get_dns_record

Get detailed information about a specific DNS record.

create_dns_record

Create a new DNS record with specified type, name, and content.

update_dns_record

Update an existing DNS record by ID.

delete_dns_record

Delete a DNS record by ID.

Supported DNS Record Types

  • A (IPv4 address)
  • AAAA (IPv6 address)
  • CNAME (Canonical name)
  • MX (Mail exchange)
  • TXT (Text)
  • NS (Name server)
  • SRV (Service)
  • CAA (Certificate Authority Authorization)
  • PTR (Pointer)

Security

  • API tokens are never logged or exposed
  • Uses official Cloudflare API with secure authentication
  • Supports scoped API tokens for minimal permissions

License

MIT# mcp-cloudflare

-
security - not tested
F
license - not found
-
quality - not tested

A Model Context Protocol server implementation that allows AI agents to manage DNS records for domains hosted on Cloudflare by providing tools to list, create, update, and delete various types of DNS records.

Related MCP Servers

  • -
    security
    A
    license
    -
    quality
    A lightweight MCP server for managing DNS records, purging cache, and interacting with the Cloudflare API through natural language commands.
    Last updated -
    13
    TypeScript
    MIT License
  • A
    security
    A
    license
    A
    quality
    A Model Context Protocol server that allows AI agents to perform WHOIS lookups, enabling users to directly ask the AI about domain availability, ownership, registration details, and other domain information.
    Last updated -
    4
    10
    1
    JavaScript
    MIT License
    • Linux
    • Apple
  • -
    security
    A
    license
    -
    quality
    A Model Context Protocol server that provides network analysis tools for security professionals, enabling AI models like Claude to perform tasks such as ASN lookups, DNS analysis, WHOIS retrieval, and IP geolocation for security investigations.
    Last updated -
    1
    Python
    Apache 2.0
    • Linux
    • Apple
  • -
    security
    A
    license
    -
    quality
    A lightweight MCP server that enables agents to interface with Cloudflare's REST API, allowing management of DNS records and other Cloudflare services.
    Last updated -
    7
    TypeScript
    MIT License

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gilberth/mcp-cloudflare'

If you have feedback or need assistance with the MCP directory API, please join our Discord server