Skip to main content
Glama

Cloudflare MCP Server

by ry-ops

create_dns_record

Add DNS records to Cloudflare zones to direct traffic and manage domain routing. Supports A, AAAA, CNAME, TXT, MX records with configurable TTL and proxy settings.

Instructions

Create a new DNS record in a zone. Supports all DNS record types.

Input Schema

NameRequiredDescriptionDefault
zone_idYesThe zone ID
typeYesDNS record type (A, AAAA, CNAME, TXT, MX, etc.)
nameYesDNS record name (e.g., 'www' or '@' for root)
contentYesDNS record content (e.g., IP address, hostname)
ttlNoTime to live (1 = automatic, or 120-86400 seconds)
proxiedNoWhether the record is proxied through Cloudflare (only for A, AAAA, CNAME)
priorityNoPriority (for MX, SRV records)
commentNoComment for the DNS record

Input Schema (JSON Schema)

{ "properties": { "comment": { "description": "Comment for the DNS record", "type": "string" }, "content": { "description": "DNS record content (e.g., IP address, hostname)", "type": "string" }, "name": { "description": "DNS record name (e.g., 'www' or '@' for root)", "type": "string" }, "priority": { "description": "Priority (for MX, SRV records)", "type": "number" }, "proxied": { "default": false, "description": "Whether the record is proxied through Cloudflare (only for A, AAAA, CNAME)", "type": "boolean" }, "ttl": { "default": 1, "description": "Time to live (1 = automatic, or 120-86400 seconds)", "type": "number" }, "type": { "description": "DNS record type (A, AAAA, CNAME, TXT, MX, etc.)", "type": "string" }, "zone_id": { "description": "The zone ID", "type": "string" } }, "required": [ "zone_id", "type", "name", "content" ], "type": "object" }

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/ry-ops/cloudflare-mcp-server'

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