Cloudflare DNS
Manage Cloudflare DNS records for your domains.
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: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-cloudflare
Environment Variables
Create a .env file:
CLOUDFLARE_API_TOKEN=your-api-token-here
CLOUDFLARE_ZONE_ID=your-zone-id-here
[email protected] # 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
Related Servers
Spotify
Control Spotify playback using natural language commands.
DYPAI
Deploy production backends, APIs, cron jobs and automations from any AI assistant. Database, auth, storage and 24+ integrations included.
Beyond Menu Salesforce MCP
Integrate with Salesforce to perform actions like testing connections and running queries.
Cloudflare to GitHub Backup MCP Server
Backs up Cloudflare projects to a specified GitHub repository.
Spotify MCP Server
Interact with the Spotify API to manage playlists and control music playback.
Spring AI Weather Server
An MCP server providing weather tools from the National Weather Service (weather.gov) API, built with Spring Boot.
ๅๆๅคงๆจกๅๅฎๅ จ MCP
A content security protection system for large language models, providing real-time risk identification and interception to ensure safe, compliant, and trustworthy model applications.
k8s Pilot
A lightweight, centralized control plane for managing multiple Kubernetes clusters using kubeconfig or in-cluster configuration.
LLM Bridge MCP
A unified interface to various LLM providers like OpenAI, Anthropic, and Google using Pydantic AI.
Remote MCP Server on Cloudflare
A self-hostable MCP server for Cloudflare Workers with OAuth support.