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.
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
- Go to Cloudflare API Tokens
- Click "Create Token"
- Use "Zone" template or create custom token with:
- Zone
- Zone
- 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)
Environment Variables
Create a .env
file:
Claude Desktop Configuration
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
This server cannot be installed
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
- -securityAlicense-qualityA lightweight MCP server for managing DNS records, purging cache, and interacting with the Cloudflare API through natural language commands.Last updated -13TypeScriptMIT License
- AsecurityAlicenseAqualityA 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 -4101JavaScriptMIT License
- -securityAlicense-qualityA 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 -1PythonApache 2.0
- -securityAlicense-qualityA lightweight MCP server that enables agents to interface with Cloudflare's REST API, allowing management of DNS records and other Cloudflare services.Last updated -7TypeScriptMIT License