Skip to main content
Glama

Cloudflare MCP Server

by ry-ops

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CLOUDFLARE_API_TOKENYesYour Cloudflare API token (required)
CLOUDFLARE_ACCOUNT_IDNoYour Cloudflare Account ID (optional, but required for KV operations)

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
list_zones

List all zones (domains) in the Cloudflare account. Returns zone details including ID, name, status, and nameservers.

get_zone

Get detailed information about a specific zone by zone ID

list_dns_records

List DNS records for a zone. Can filter by type, name, content, etc.

create_dns_record

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

update_dns_record

Update an existing DNS record. Can modify type, name, content, TTL, proxy status, etc.

delete_dns_record

Delete a DNS record from a zone

purge_cache

Purge Cloudflare's cache for a zone. Can purge everything or specific files/tags/hosts.

list_kv_namespaces

List all Workers KV namespaces in the account. KV is Cloudflare's key-value storage.

read_kv_value

Read a value from Workers KV storage by key. Returns the stored value.

write_kv_value

Write a key-value pair to Workers KV storage. Can store text or metadata.

delete_kv_value

Delete a key from Workers KV storage

list_kv_keys

List all keys in a Workers KV namespace. Supports pagination and prefix filtering.

get_zone_analytics

Get analytics data for a zone including requests, bandwidth, threats, and pageviews.

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