MCP Cloudflare DNS Server
Enables management of DNS records for domains on Cloudflare, including listing, creating, updating, and deleting various record types (A, AAAA, CNAME, MX, TXT, etc.) with support for proxying, TTL, and priority settings.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Cloudflare DNS Server list all DNS records for mydomain.com"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: Cloudflare DNS MCP Server
Setup
1. Get Cloudflare API Token
Go to Cloudflare API Tokens
Click "Create Token"
Use "Zone:Edit" template or create custom token with:
Zone:Read
Zone:Edit
Copy your API token
2. Get Zone ID
Go to your domain in Cloudflare Dashboard
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-cloudflareEnvironment 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 # OptionalClaude 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
Available Tools
5 toolscreate_dns_recordC
Create a new DNS record
Inputs: content (required), name (required), type (required), priority, +2 more.
delete_dns_recordC
Delete a DNS record
Inputs: recordId (required).
get_dns_recordC
Get a specific DNS record by ID
Inputs: recordId (required).
list_dns_recordsC
List all DNS records for the configured zone
Inputs: name, type.
update_dns_recordC
Update an existing DNS record
Inputs: recordId (required), content, name, priority, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose targeting a specific CRUD operation for DNS records. The verbs (create, delete, get, list, update) are unambiguous and correspond to standard database operations, leaving no room for confusion or overlap.
All tools follow a consistent verb_noun pattern with snake_case naming (e.g., create_dns_record, update_dns_record). The naming is predictable and uniform across all five tools, making them easily identifiable and organized.
With 5 tools, this server is well-scoped for managing DNS records, covering the essential CRUD operations. Each tool serves a clear and necessary function without redundancy, making the count appropriate for the domain.
The tool set provides complete CRUD coverage for DNS records, including create, read (get and list), update, and delete operations. There are no obvious gaps, as all lifecycle actions are covered, ensuring agents can handle full workflows without dead ends.
Maintenance
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Cloudflare Workers MCP server: ai-agent-scratchpad
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceA token-efficient MCP server for managing Cloudflare DNS zones and records with full CRUD support and bulk operations. It can be deployed locally via stdio or as a Cloudflare Worker for remote HTTP access.-
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to manage Cloudflare DNS records, including listing zones and records, and creating, updating, or deleting DNS records.681 npmMIT
- AlicenseAqualityBmaintenanceEnables AI agents to manage Cloudflare DNS records, including listing, creating, updating, and deleting records for your domains.810 npmGPL 3.0
- AlicenseAqualityCmaintenanceCloudflare DNS MCP server. Manage zones, DNS records, cache, and page rules from Claude, Cursor, Codex, or any MCP-compatible AI assistant.10MIT