cloudflare-mcp-go
This MCP server lets MCP clients inspect and investigate a Cloudflare account through natural language, with read-only tools plus optional write operations.
List and inspect zones, DNS records, DNSSEC, DNS analytics, and export/import DNS records.
View firewall rules, WAF managed rulesets, rulesets, IP access rules, and rate limiting rules.
Query security events, HTTP request logs by Ray ID or time range, and Logpush/Instant Logs/Logs Explorer datasets.
Review Security Center insights, audits, scans, and attack-surface issues.
Look up threat intelligence for IPs, domains, URLs, ASNs, WHOIS, passive DNS, and indicator feeds/sinkholes.
Manage accounts, members, roles, subscriptions, API tokens, audit logs, and Workers KV namespaces/pairs.
Optional write tools for DNS, firewall/WAF, rate limits, Logpush, Security Center, intel feeds, accounts, tokens, and KV when CLOUDFLARE_MCP_ENABLE_WRITE=true.
Provides tools for interacting with the Cloudflare API v4, enabling security triage and investigation across zones, DNS records, WAF and firewall rules, rate limits, security events, HTTP request logs, Security Center insights, threat intelligence, and account audit logs.
cloudflare-mcp-go
An MCP (Model Context Protocol) server for the Cloudflare API v4, written in Go.
It lets any MCP client (Claude, and other MCP-compatible tools) inspect and investigate your Cloudflare account through natural language: zones, DNS, WAF and firewall rules, rate limits, HTTP request logs, Security Center insights, and threat intelligence. The server is read-focused and geared toward security triage and investigation workflows.
Quick start
Requires a Cloudflare API token and Go 1.25+.
Add it to Claude Code with a single command:
claude mcp add cloudflare \
-e CLOUDFLARE_API_TOKEN=your-api-token \
-- go run github.com/M-Yamashita01/cloudflare-mcp-go@latestThat is all — no manual clone or build required. CLOUDFLARE_ACCOUNT_ID is optional and only needed by a few tools (accounts, audit logs, KV, intel).
Related MCP server: Cloudflare API MCP
Tools
117 read-only tools grouped by domain, plus optional write tools (marked below) that are registered only when CLOUDFLARE_MCP_ENABLE_WRITE=true.
Zones & DNS
Tool | Description |
| List zones in your account (ID, name, status, plan). |
| Get details of a specific zone. |
| Get a zone's configuration settings (SSL mode, min TLS, cache level, security level). |
| Purge a zone's cache: everything, or by file/tag/host/prefix (write; requires |
| List DNS records for a zone (type, name, content, TTL, proxy status). |
| Get a single DNS record by ID (type, name, content, TTL, proxy status, comment). |
| DNS query analytics: query counts, response codes, query type distribution. |
| DNS query analytics grouped by time interval (time-series). |
| Export all DNS records for a zone as a BIND zone file. |
| DNS record usage counts for a zone (toward plan limits). |
| Get a zone's DNS settings (Foundation DNS, multi-provider, nameservers, zone mode). |
| Get DNSSEC details for a zone (status, DS record, digest, key tag, algorithm). |
| List DNSSEC Zone Signing Keys (ZSKs) for a zone (multi-signer DNSSEC). |
| List DNS records discovered by a scan, pending review. |
| Create a DNS record (write; requires |
| Update a DNS record, partial fields (write; requires |
| Delete a DNS record by ID (write; requires |
| Overwrite (fully replace) a DNS record by ID (write; requires |
| Apply a batch of DNS record changes atomically (write; requires |
| Import DNS records from a BIND zone file (write; requires |
| Scan a zone for DNS records at common names (write; requires |
| Trigger an async DNS record scan (write; requires |
| Accept/reject DNS records found by a scan (write; requires |
| Update a zone's DNS settings (write; requires |
| Edit a zone's DNSSEC status (write; requires |
| Delete a zone's DNSSEC records (write; requires |
Firewall, WAF & rate limiting
Tool | Description |
| IP access rules that block, challenge, or allow IPs, CIDRs, ASNs, or countries. |
| Create an IP access rule (write; requires |
| Update an IP access rule's mode/notes (write; requires |
| Delete an IP access rule by ID (write; requires |
| WAF managed rulesets entrypoint and which managed rulesets are enabled. |
| Custom firewall rules with expressions, actions, and priorities. |
| Full configuration of a specific firewall rule by ID. |
| All rulesets for a zone (metadata only). |
| A specific ruleset with all its rules. |
| Create a ruleset (write; requires |
| Update a ruleset's name/description/rules (write; requires |
| Delete a ruleset by ID (write; requires |
| Rate limiting rules: thresholds, match criteria, actions. |
| Full configuration of a specific rate limiting rule by ID. |
| Create a rate limit rule (write; requires |
| Update a rate limit rule (write; requires |
| Delete a rate limit rule by ID (write; requires |
Security events & logs
Tool | Description |
| Query security events via the GraphQL Analytics API for triage. |
| Look up an HTTP request log entry by Cloudflare Ray ID. |
| Retrieve HTTP request logs for a time range (max 1h, data ≥5min old). |
| List available HTTP request log fields. |
| List Logpush jobs for a zone (dataset, destination, enabled). |
| Get a specific Logpush job in a zone by ID. |
| List Logpush jobs for a specific dataset in a zone. |
| List available Logpush fields for a dataset in a zone. |
| List Instant Logs (edge) jobs for a zone. |
| Get a zone's log retention flag. |
| List Logs Explorer datasets for a zone. |
| List available Logs Explorer datasets for a zone. |
| Get a Logs Explorer dataset for a zone by ID. |
| Run a Logs Explorer SQL query for a zone (GET). |
| List Logpush jobs for an account. |
| Get a specific Logpush job in an account by ID. |
| List Logpush jobs for a dataset in an account. |
| List available Logpush fields for a dataset in an account. |
| List Logpush transformers for an account. |
| Get a Logpush transformer in an account by ID. |
| Get a Logpush transformer's content in an account. |
| List versions of a Logpush transformer in an account. |
| Get account audit logs (v2) with since/before/limit. |
| List product categories for account audit logs (v2). |
| Get change history for an account audit log entry (v2). |
| Get the Customer Metadata Boundary (CMB) config for an account. |
| List Logs Explorer datasets for an account. |
| List available Logs Explorer datasets for an account. |
| Get a Logs Explorer dataset for an account by ID. |
| Run a Logs Explorer SQL query for an account (GET). |
| List stored log files for an account (start/end/bucket). |
| Retrieve stored log entries (NDJSON) for an account. |
| Create an account Logpush job (write; requires |
| Update an account Logpush job (write; requires |
| Delete an account Logpush job (write; requires |
| Request an account Logpush ownership challenge (write; requires |
| Validate an account Logpush ownership challenge (write; requires |
| Create an account Logpush transformer (write; requires |
| Preview an account Logpush transformer (write; requires |
| Update an account Logpush transformer (write; requires |
| Delete an account Logpush transformer (write; requires |
| Validate an account Logpush destination (write; requires |
| Check an account Logpush destination exists (write; requires |
| Validate account Logpush origin options (write; requires |
| Update the Customer Metadata Boundary config (write; requires |
| Delete the Customer Metadata Boundary config (write; requires |
| Create an account Logs Explorer dataset (write; requires |
| Update an account Logs Explorer dataset (write; requires |
| Delete an account Logs Explorer dataset (write; requires |
| Run an account Logs Explorer SQL query (POST) (write; requires |
| Create a zone Logpush job (write; requires |
| Update a zone Logpush job (write; requires |
| Delete a zone Logpush job (write; requires |
| Create a zone Instant Logs job (write; requires |
| Request a zone Logpush ownership challenge (write; requires |
| Validate a zone Logpush ownership challenge (write; requires |
| Validate a zone Logpush destination (write; requires |
| Check a zone Logpush destination exists (write; requires |
| Validate zone Logpush origin options (write; requires |
| Enable/disable zone log retention (write; requires |
| Create a zone Logs Explorer dataset (write; requires |
| Update a zone Logs Explorer dataset (write; requires |
| Delete a zone Logs Explorer dataset (write; requires |
| Run a zone Logs Explorer SQL query (POST) (write; requires |
Security Center
Tool | Description |
| Security Center insights with severity, type, and classification. |
| Security Center insights for an account (account scope). |
| Account insight counts by dimension (class/severity/type). |
| Account Security Center insights audit log. |
| Account partner-provided insight count. |
| Recent Security Center scans for an account. |
| Audit log for an account Security Center insight. |
| Context (affected resources) for an account insight. |
| Partner integration settings for an account. |
| Partner-discovered shadow zones for an account. |
| Hosts in a partner-discovered shadow zone. |
| Security Center state for an account. |
| Zone Security Center insights audit log. |
| Zone partner-provided insight count. |
| Recent Security Center scans for a zone. |
| Audit log for a zone Security Center insight. |
| Partner-discovered shadow hosts for a zone. |
| Get a zone's security.txt configuration. |
| Update an account insight classification (write; requires |
| Dismiss/archive an account insight (write; requires |
| Start an on-demand account Security Center scan (write; requires |
| Update Security Center partner integration settings for an account (write; requires |
| Update the Security Center state for an account (write; requires |
| Start an on-demand zone Security Center scan (write; requires |
| Update the classification of a Security Center insight in a zone (write; requires |
| Dismiss or un-dismiss a Security Center insight in a zone (write; requires |
| Create or update the security.txt for a zone (write; requires |
| Delete the security.txt for a zone (write; requires |
| Aggregated insight counts by severity, class, or type. |
Threat intelligence
Tool | Description |
| Threat intelligence for an IP: geolocation, ASN, infrastructure, threat categories. |
| Security intelligence for a domain: risk scores, categories, DNS info. |
| Threat intelligence for multiple domains at once. |
| Historical threat data and classifications for a domain. |
| Domains that have resolved to a given IP (passive DNS). |
| WHOIS registration data for a domain. |
| ASN overview and subnet allocations. |
| Security Center attack-surface issue types. |
| Security Center attack-surface issues (misconfigurations, exposures). |
| Attack-surface issue counts by class. |
| Attack-surface issue counts by severity. |
| Attack-surface issue counts by type. |
| Available threat-intelligence IP lists for an account. |
| Threat intel details for multiple domains (GET bulk). |
| Threat intelligence for a URL (risk, categories). |
| List indicator feeds owned by an account. |
| List indicator feed view permissions for an account. |
| Get indicator feed metadata by ID. |
| Get raw indicator feed data by ID (STIX/CSV). |
| Download latest indicator feed snapshot by ID. |
| Get status of an indicator feed upload. |
| List DNS sinkholes owned by an account. |
| Get a DNS sinkhole by ID. |
| List ingress rules for a sinkhole. |
| Dismiss/archive a Security Center insight (write; requires |
| Create an indicator feed (write; requires |
| Grant indicator feed view permission (write; requires |
| Create an indicator feed provider (write; requires |
| Revoke indicator feed view permission (write; requires |
| Update indicator feed metadata (write; requires |
| Upload a new indicator feed snapshot (write; requires |
| Report a domain/IP/URL miscategorization (write; requires |
| Create a DNS sinkhole (write; requires |
| Update a DNS sinkhole (write; requires |
| Delete a DNS sinkhole by ID (write; requires |
Account & audit
Tool | Description |
| Cloudflare accounts accessible with the current token. |
| Get details of a specific account by ID. |
| List members of an account (user, roles, status). |
| Get an account member by ID (user, roles, policies). |
| List roles available in an account. |
| Get an account role by ID (name, permissions). |
| List subscriptions for an account. |
| Get an account subscription by ID. |
| Get a subscription's cancellation reason. |
| List account-owned API tokens. |
| List permission groups for account API tokens. |
| Verify the account API token is valid and active. |
| Get an account API token by ID (name, policies, status). |
| Create a new account (write; requires |
| Update an account (write; requires |
| Delete an account by ID (write; requires |
| Add a member to an account (write; requires |
| Update an account member (write; requires |
| Remove a member from an account (write; requires |
| Create an account subscription (write; requires |
| Cancel a pending subscription downgrade (write; requires |
| Update an account subscription (write; requires |
| Delete an account subscription (write; requires |
| Append an action to a subscription (write; requires |
| Record a subscription cancellation reason (write; requires |
| Create an account API token (write; requires |
| Update an account API token (write; requires |
| Delete an account API token by ID (write; requires |
| Roll (regenerate) an account API token value (write; requires |
| Account audit log entries (who changed what and when). |
| User-scoped audit log entries. |
| Workers KV namespaces in an account. |
| Get a KV namespace by ID. |
| Get multiple KV pairs at once (read-only; POST bulk/get). |
| List keys in a KV namespace (prefix filter, cursor pagination). |
| Read the raw stored value for a key in a KV namespace. |
| Read the metadata associated with a key in a KV namespace. |
| Write a key-value pair, optional TTL (write; requires |
| Delete a key-value pair by key (write; requires |
| Create a KV namespace (write; requires |
| Delete a KV namespace by ID (write; requires |
| Rename a KV namespace (write; requires |
| Write multiple KV pairs at once (write; requires |
| Delete multiple KV pairs at once, DELETE bulk (write; requires |
| Delete multiple KV pairs at once, POST bulk/delete (write; requires |
Usage examples
Once connected, ask your MCP client things like:
"List the DNS records for example.com."
"A request was blocked with Ray ID 8f1c2d3e4f5a6b7c — why?"
"Show me the high-severity Security Center insights for this zone."
"Is IP 203.0.113.10 known to be malicious? What domains resolve to it?"
"Which firewall rules are currently challenging traffic?"
Configuration
The server communicates over stdio and can be connected from any MCP client.
Variable | Required | Purpose |
| Yes | Authenticates all Cloudflare API calls. |
| No | Needed by account, audit log, KV, and intel tools. |
| No | Enables write (mutation) tools when set to exactly |
Claude Code
claude mcp add cloudflare \
-e CLOUDFLARE_API_TOKEN=your-api-token \
-- go run github.com/M-Yamashita01/cloudflare-mcp-go@latestOr, if you have the repository cloned locally:
claude mcp add cloudflare -e CLOUDFLARE_API_TOKEN=your-api-token -- go run .Claude Desktop / other MCP clients
Build the binary and point your client's MCP config at it. On macOS the Claude Desktop config lives at ~/Library/Application Support/Claude/claude_desktop_config.json:
go build -o cloudflare-mcp-go .{
"mcpServers": {
"cloudflare": {
"command": "/path/to/cloudflare-mcp-go",
"env": {
"CLOUDFLARE_API_TOKEN": "your-api-token"
}
}
}
}Any MCP-compatible client can connect via stdio transport using the same pattern.
Build & run manually
go build -o cloudflare-mcp-go .
export CLOUDFLARE_API_TOKEN="your-api-token"
./cloudflare-mcp-goProject structure
main.go # Entry point
internal/
cfapi/ # Shared Cloudflare API client
tool/
zone/ # Zone management tools
dns/ # DNS record & analytics tools
account/ # Account management tools
audit/ # Audit log tools
kv/ # Workers KV tools
security/ # Firewall, WAF & rate limiting tools
securitycenter/ # Security Center insight tools
intel/ # Threat intelligence tools
logs/ # HTTP request log tools
doc/
architecture.md # Architecture documentationSee doc/architecture.md for detailed design documentation.
Available Tools
117 toolsdownload_indicator_feed_dataB
Download the latest snapshot data of a threat-intelligence indicator feed by feed ID. Returns the raw feed body.
Inputs: feed_id (required), account_id (required).
export_dns_recordsA
Export all DNS records for a Cloudflare zone as a BIND zone file. Returns the raw BIND-format text.
Inputs: zone_id (required).
get_account_audit_log_historyB
Get the resource change history for a specific account audit log entry (v2) by entry ID.
Inputs: id (required), account_id (required).
get_account_audit_logs_v2B
Get account audit logs (Version 2) for a Cloudflare account. Supports since/before time filters and a limit. Records who changed what and when.
Inputs: account_id (required), limit, since, before.
get_account_detailsA
Get details of a specific Cloudflare account by ID (name, settings, created date).
Inputs: account_id (required).
get_account_insight_contextA
Get the context (affected resources and details) for a specific Security Center insight in a Cloudflare account by issue ID.
Inputs: issue_id (required), account_id (required).
get_account_insight_countsB
Get aggregated Security Center insight counts for a Cloudflare account by dimension (class, severity, or type).
Inputs: dimension (required), account_id (required).
get_account_insights_audit_logB
Get the Security Center insights audit log for a Cloudflare account (changes to insights over time).
Inputs: account_id (required).
get_account_issue_audit_logB
Get the audit log for a specific Security Center insight (issue) in a Cloudflare account by issue ID.
Inputs: issue_id (required), account_id (required).
get_account_log_datasetC
Get a specific Logs Explorer dataset for a Cloudflare account by dataset ID.
Inputs: account_id (required), dataset_id (required).
get_account_logpush_jobA
Get details of a specific Logpush job in a Cloudflare account by job ID.
Inputs: job_id (required), account_id (required).
get_account_logpush_transformerB
Get a specific Logpush transformer in a Cloudflare account by transformer ID.
Inputs: account_id (required), transformer_id (required).
get_account_logpush_transformer_contentB
Get the content (transform definition) of a specific Logpush transformer in a Cloudflare account.
Inputs: account_id (required), transformer_id (required).
get_account_memberA
Get details of a specific Cloudflare account member by member ID (user, roles, policies, status).
Inputs: member_id (required), account_id (required).
get_account_partner_insight_countB
Get the count of partner-provided Security Center insights for a Cloudflare account.
Inputs: account_id (required).
get_account_recent_scansB
Get the recent Security Center scans for a Cloudflare account.
Inputs: account_id (required).
get_account_roleC
Get details of a specific Cloudflare account role by role ID (name, description, permissions).
Inputs: role_id (required), account_id (required).
get_account_security_center_stateB
Get the Security Center state (onboarding/configuration status) for a Cloudflare account.
Inputs: account_id (required).
get_account_subscriptionA
Get a specific Cloudflare account subscription by its identifier (product, state, price, frequency).
Inputs: account_id (required), subscription_id (required).
get_account_tokenA
Get details of a specific account-owned API token by token ID (name, status, policies, condition).
Inputs: token_id (required), account_id (required).
get_asn_intelA
Get an overview of an Autonomous System Number (ASN) and its subnet allocations. Useful for understanding the network behind a suspicious IP and assessing whether an entire ASN is involved in attacks.
Inputs: asn (required), account_id (required).
get_attack_surface_issue_counts_by_classA
Get Security Center attack-surface issue counts grouped by class for a Cloudflare account.
Inputs: account_id (required).
get_attack_surface_issue_counts_by_severityC
Get Security Center attack-surface issue counts grouped by severity for a Cloudflare account.
Inputs: account_id (required).
get_attack_surface_issue_counts_by_typeB
Get Security Center attack-surface issue counts grouped by type for a Cloudflare account.
Inputs: account_id (required).
get_bulk_domain_detailsB
Get threat intelligence details for multiple domains at once (GET bulk). Returns per-domain risk and category data.
Inputs: domains (required), account_id (required).
get_cmb_configA
Get the Customer Metadata Boundary (CMB) config for a Cloudflare account (data localization region for logs).
Inputs: account_id (required).
get_dns_analyticsA
Get DNS query analytics report for a Cloudflare zone. Returns query counts, response codes, and query type distributions. Useful for detecting DNS anomalies and attack patterns.
Inputs: zone_id (required), since, until.
get_dns_analytics_bytimeB
Get DNS query analytics for a Cloudflare zone grouped by time interval. Returns time-series data points (grouped by time_delta) for spotting trends and spikes.
Inputs: zone_id (required), since, until, time_delta.
get_dns_recordA
Get a single DNS record in a Cloudflare zone by record ID. Returns the record's full detail (type, name, content, TTL, proxy status, comment).
Inputs: zone_id (required), record_id (required).
get_dns_record_usageA
Get DNS record usage for a Cloudflare zone (counts toward plan limits). Returns current and allowed record counts.
Inputs: zone_id (required).
get_dnssecA
Get DNSSEC details for a Cloudflare zone (status, DS record, digest, key tag, algorithm). Useful for verifying DNSSEC configuration.
Inputs: zone_id (required).
get_dns_settingsA
Get DNS settings for a Cloudflare zone (e.g. Foundation DNS, multi-provider, nameservers, zone mode). Returns the zone's DNS configuration.
Inputs: zone_id (required).
get_domain_historyA
Get historical threat data for a domain. Returns past and current security threat categories and content classifications. Useful for checking if a domain has a pattern of malicious behavior over time.
Inputs: domain (required), account_id (required).
get_domain_intelA
Get security intelligence for a domain. Returns risk scores, content categories, and DNS information. Useful for investigating suspicious domains found in referrer headers or access logs.
Inputs: domain (required), account_id (required).
get_domain_intel_bulkA
Get threat intelligence for multiple domains at once. Returns risk scores and content categories for each domain. Useful for batch assessment of suspicious domains found in logs.
Inputs: domains (required), account_id (required).
get_firewall_ruleA
Get details of a specific custom firewall rule by ID. Returns the full rule configuration including filter expression, action, and priority. Useful for investigating why a specific rule triggered a block.
Inputs: rule_id (required), zone_id (required).
get_indicator_feedC
Get the metadata of a specific threat-intelligence indicator feed by feed ID.
Inputs: feed_id (required), account_id (required).
get_indicator_feed_dataB
Get the raw data of a specific threat-intelligence indicator feed by feed ID. Returns the feed body (e.g. STIX/CSV).
Inputs: feed_id (required), account_id (required).
get_indicator_feed_upload_statusA
Get the status of a specific upload to a threat-intelligence indicator feed by feed ID and upload ID.
Inputs: feed_id (required), upload_id (required), account_id (required).
get_insight_countsA
Get aggregated Security Center insight counts by dimension (severity, class, or type). Useful for quick security posture overview and prioritization.
Inputs: zone_id (required), dimension (required).
get_ip_intelA
Get threat intelligence for an IP address. Returns geolocation, ASN, infrastructure type, and security threat categories. Useful for investigating suspicious IPs found in security events or access logs.
Inputs: ip (required), account_id (required).
get_ip_listsC
Get the available Cloudflare threat-intelligence IP lists for a Cloudflare account.
Inputs: account_id (required).
get_kv_metadataB
Read the metadata associated with a key in a Workers KV namespace.
Inputs: key (required), account_id (required), namespace_id (required).
get_kv_namespaceA
Get a Workers KV namespace by ID. Returns the namespace details (ID, title, supports URL encoding).
Inputs: account_id (required), namespace_id (required).
get_kv_pairs_bulkB
Get multiple key-value pairs from a Workers KV namespace at once. The keys argument is a JSON object with a keys array. Read-only (no mutation) despite using POST.
Inputs: keys (required), account_id (required), namespace_id (required).
get_kv_valueB
Read the value stored for a key in a Workers KV namespace. Returns the raw stored value.
Inputs: key (required), account_id (required), namespace_id (required).
get_log_by_rayidA
Look up an HTTP request log entry by its Cloudflare Ray ID. Returns request details including client IP, path, user agent, status code, and security actions. Useful for investigating why a specific request was blocked or challenged.
Inputs: ray_id (required), zone_id (required), fields, timestamps.
get_log_datasetC
Get a specific Logs Explorer dataset for a Cloudflare zone by dataset ID.
Inputs: zone_id (required), dataset_id (required).
get_logpush_jobB
Get details of a specific Logpush job in a Cloudflare zone by job ID.
Inputs: job_id (required), zone_id (required).
get_log_retention_flagB
Get the log retention flag for a Cloudflare zone (whether Logpull log retention is enabled).
Inputs: zone_id (required).
get_partner_integration_settingsC
Get the Security Center partner integration settings for a Cloudflare account and partner.
Inputs: partner (required), account_id (required).
get_rate_limitA
Get details of a specific rate limiting rule by ID. Returns the full configuration including threshold, period, action, and match criteria.
Inputs: zone_id (required), rate_limit_id (required).
get_rulesetA
Get a specific ruleset with all its rules. Returns the complete rule definitions including expressions, actions, and configurations. Useful for inspecting what traffic patterns are matched by a ruleset.
Inputs: zone_id (required), ruleset_id (required).
get_securitytxtC
Get the security.txt configuration for a Cloudflare zone (security contact and disclosure policy).
Inputs: zone_id (required).
get_sinkholeB
Get a specific DNS sinkhole by ID for a Cloudflare account.
Inputs: account_id (required), sinkhole_id (required).
get_subscription_cancel_reasonB
Get the cancellation reason recorded for a Cloudflare account subscription.
Inputs: account_id (required), subscription_id (required).
get_url_intelB
Get threat intelligence for a URL. Returns risk and category information for the URL.
Inputs: url (required), account_id (required).
get_whoisA
Get WHOIS registration data for a domain. Returns registrant information, nameservers, and registration/expiration dates. Useful for investigating domain ownership and detecting newly registered suspicious domains.
Inputs: domain (required), account_id (required).
get_zoneA
Get details of a specific Cloudflare zone. Returns zone details such as ID, name, status, and plan.
Inputs: zone_id (required).
get_zone_insights_audit_logB
Get the Security Center insights audit log for a Cloudflare zone (zone scope).
Inputs: zone_id (required).
get_zone_issue_audit_logA
Get the audit log for a specific Security Center insight (issue) in a Cloudflare zone by issue ID.
Inputs: zone_id (required), issue_id (required).
get_zone_partner_insight_countB
Get the count of partner-provided Security Center insights for a Cloudflare zone.
Inputs: zone_id (required).
get_zone_recent_scansC
Get the recent Security Center scans for a Cloudflare zone.
Inputs: zone_id (required).
get_zone_settingsB
Get configuration settings for a Cloudflare zone (SSL mode, minimum TLS version, cache level, security level, etc.). Returns the full settings list.
Inputs: zone_id (required).
list_account_audit_log_product_categoriesA
List the product categories available for filtering account audit logs (v2).
Inputs: account_id (required).
list_account_log_datasetsC
List Logs Explorer datasets configured for a Cloudflare account.
Inputs: account_id (required).
list_account_log_filesC
List stored log files for a Cloudflare account (Logpull/stored logs). Supports start, end, and bucket filters.
Inputs: account_id (required), end, start, bucket.
list_account_logpush_dataset_fieldsC
List the available Logpush fields for a specific dataset in a Cloudflare account.
Inputs: account_id (required), dataset_id (required).
list_account_logpush_dataset_jobsC
List Logpush jobs for a specific dataset in a Cloudflare account.
Inputs: account_id (required), dataset_id (required).
list_account_logpush_jobsA
List Logpush jobs for a Cloudflare account. Returns job details including dataset, destination, and enabled status.
Inputs: account_id (required).
list_account_logpush_transformersC
List Logpush transformers for a Cloudflare account.
Inputs: account_id (required).
list_account_logpush_transformer_versionsB
List the versions of a specific Logpush transformer in a Cloudflare account.
Inputs: account_id (required), transformer_id (required).
list_account_membersB
List members of a Cloudflare account. Returns member details including user, roles, and status.
Inputs: account_id (required), page, per_page.
list_account_rolesB
List the roles available in a Cloudflare account. Returns role IDs, names, descriptions, and permissions.
Inputs: account_id (required).
list_accountsA
List Cloudflare accounts accessible with the current API token. Returns account details such as ID, name, and settings.
Inputs: name, page, per_page.
list_account_security_insightsB
List Security Center insights for a Cloudflare account (account scope). Returns security issues with severity, type, and classification.
Inputs: account_id (required).
list_account_subscriptionsB
List the subscriptions for a Cloudflare account. Returns subscription details including product, state, and price.
Inputs: account_id (required).
list_account_tokensB
List the account-owned API tokens for a Cloudflare account. Returns token IDs, names, status, and policies.
Inputs: account_id (required), page, per_page.
list_attack_surface_issuesB
List Security Center attack-surface-report issues for a Cloudflare account (misconfigurations and exposures).
Inputs: account_id (required).
list_attack_surface_issue_typesC
List the Security Center attack-surface-report issue types for a Cloudflare account.
Inputs: account_id (required).
list_audit_logsA
List audit log entries for a Cloudflare account. Returns operation history including timestamps, actors, actions, and affected resources. Useful for investigating who changed what and when.
Inputs: account_id (required), page, since, before, +4 more.
list_available_account_log_datasetsA
List the Logs Explorer datasets available to be configured for a Cloudflare account.
Inputs: account_id (required).
list_available_log_datasetsB
List the Logs Explorer datasets available to be configured for a Cloudflare zone.
Inputs: zone_id (required).
list_dns_recordsA
List DNS records for a Cloudflare zone. Returns record details such as ID, type, name, content, TTL, and proxy status.
Inputs: zone_id (required), name, page, type, +2 more.
list_dnssec_zskC
List DNSSEC Zone Signing Keys (ZSKs) for a Cloudflare zone (multi-signer DNSSEC). Returns the ZSK records.
Inputs: zone_id (required).
list_firewall_rulesA
List custom firewall rules for a Cloudflare zone. Returns rule expressions, actions, and priorities. Useful for investigating which rules may be blocking or challenging traffic.
Inputs: zone_id (required), page, per_page.
list_indicator_feed_permissionsB
List the indicator feed permissions (feeds the account can view) for a Cloudflare account.
Inputs: account_id (required).
list_indicator_feedsB
List the threat-intelligence indicator feeds owned by a Cloudflare account.
Inputs: account_id (required).
list_instant_logs_jobsB
List Instant Logs (edge) jobs for a Cloudflare zone.
Inputs: zone_id (required).
list_ip_access_rulesB
List IP access rules for a Cloudflare zone. Returns rules that block, challenge, or allow specific IPs, CIDRs, ASNs, or countries.
Inputs: zone_id (required), ip, mode, page, +1 more.
list_kv_keysA
List keys in a Workers KV namespace. Supports prefix filtering and cursor pagination. Returns key names, expiration, and metadata.
Inputs: account_id (required), namespace_id (required), limit, cursor, +1 more.
list_kv_namespacesA
List Workers KV namespaces in a Cloudflare account. Returns namespace details such as ID and title.
Inputs: account_id (required), page, order, per_page, +1 more.
list_log_datasetsB
List Logs Explorer datasets configured for a Cloudflare zone.
Inputs: zone_id (required).
list_log_fieldsA
List all available HTTP request log fields for a Cloudflare zone. Returns field names and descriptions. Use this to discover which fields can be specified when calling get_log_by_rayid or list_received_logs.
Inputs: zone_id (required).
list_logpush_dataset_fieldsB
List the available Logpush fields for a specific dataset in a Cloudflare zone.
Inputs: zone_id (required), dataset_id (required).
list_logpush_dataset_jobsC
List Logpush jobs for a specific dataset in a Cloudflare zone (e.g. http_requests, firewall_events).
Inputs: zone_id (required), dataset_id (required).
list_logpush_jobsA
List Logpush jobs for a Cloudflare zone. Returns job details including dataset, destination, and enabled status.
Inputs: zone_id (required).
list_partner_shadow_zone_hostsC
List the hosts in a partner-discovered shadow zone for a Cloudflare account, partner, and domain.
Inputs: domain (required), partner (required), account_id (required).
list_partner_shadow_zonesC
List partner-discovered shadow zones (unmanaged domains) for a Cloudflare account and partner.
Inputs: partner (required), account_id (required).
list_passive_dnsA
List domains that have resolved to a specific IP address (passive DNS). Useful for identifying shared hosting or malicious infrastructure by revealing which domains point to a given IP.
Inputs: ip (required), account_id (required).
list_rate_limitsA
List rate limiting rules for a Cloudflare zone. Returns thresholds, matching criteria, actions, and bypass rules. Useful for checking brute-force protection and identifying rate-limited traffic.
Inputs: zone_id (required), page, per_page.
list_received_logsA
Retrieve HTTP request logs for a Cloudflare zone within a time range. Returns NDJSON log entries. Time range is limited to 1 hour and data must be at least 5 minutes old. Useful for investigating traffic patterns and anomalies.
Inputs: end (required), start (required), zone_id (required), count, +3 more.
list_rulesetsA
List all rulesets for a Cloudflare zone. Returns ruleset metadata (ID, name, kind, phase, version) without individual rules. Use get_ruleset to inspect rules within a specific ruleset.
Inputs: zone_id (required).
list_scanned_dns_recordsB
List DNS records discovered by a DNS record scan for a Cloudflare zone, pending review. Returns the scanned records.
Inputs: zone_id (required).
list_security_insightsB
List Security Center insights for a Cloudflare zone. Returns security issues with severity, type, and classification. Useful for identifying misconfigurations and vulnerabilities.
Inputs: zone_id (required), severity, issue_type, issue_class.
list_sinkhole_ingressesC
List the ingress rules for a specific DNS sinkhole by sinkhole ID.
Inputs: account_id (required), sinkhole_id (required).
list_sinkholesC
List the DNS sinkholes owned by a Cloudflare account.
Inputs: account_id (required).
list_token_permission_groupsB
List the permission groups available for account-owned API tokens. Useful for building token policies.
Inputs: account_id (required).
list_user_audit_logsA
List audit log entries for the current Cloudflare user (user-scoped). Returns the user's operation history including timestamps, actions, and affected resources.
Inputs: page, since, before, per_page, +1 more.
list_waf_managed_rulesetsA
Get the WAF managed rulesets entrypoint for a Cloudflare zone. Returns which managed rulesets (e.g. Cloudflare Managed Ruleset, OWASP) are enabled and their configuration.
Inputs: zone_id (required).
list_zone_partner_shadow_hostsB
List partner-discovered shadow hosts for a Cloudflare zone and partner.
Inputs: partner (required), zone_id (required).
list_zonesB
List zones in your Cloudflare account. Returns zone details such as ID, name, status, and plan.
Inputs: name, page, per_page.
query_account_logs_sqlC
Run a Logs Explorer SQL query for a Cloudflare account (GET). Returns the query results.
Inputs: query (required), account_id (required).
query_logs_sqlC
Run a Logs Explorer SQL query for a Cloudflare zone (GET). Returns the query results.
Inputs: query (required), zone_id (required).
query_security_eventsB
Query security events for a Cloudflare zone using the GraphQL Analytics API. Returns event details including client info, action taken, rule details, bot score, and response status for security event triage.
Inputs: date_to (required), zone_id (required), date_from (required), host, +8 more.
retrieve_account_logsB
Retrieve stored log entries for a Cloudflare account (Logpull). Returns NDJSON. Supports start, end, and path filters.
Inputs: account_id (required), end, path, start.
verify_account_tokenB
Verify the account-owned API token used for the request (checks it is valid and active) for a Cloudflare account.
Inputs: account_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 117 tools
Many tools are near-duplicates split only by account vs zone scope (e.g. list_log_datasets vs list_account_log_datasets, query_logs_sql vs query_account_logs_sql, list_logpush_jobs vs list_account_logpush_jobs) or by subtle naming differences (get_domain_intel_bulk vs get_bulk_domain_details, get_indicator_feed_data vs download_indicator_feed_data). Threat-intel and audit-log tools also overlap heavily, making misselection likely for an agent.
All tool names use snake_case and mostly follow a verb_noun pattern with consistent verbs like list, get, and query. Minor deviations exist in scope placement (account/zone qualifier inserted inconsistently) and version suffixes (e.g. get_account_audit_logs_v2), but the naming is broadly predictable.
117 tools is an extreme mismatch for a practical MCP server, far exceeding the 50-tool threshold for severe bloat. This creates overwhelming selection complexity and makes it difficult for an agent to reliably choose the right tool.
The surface is almost entirely read-only (list, get, query, verify, download, export) with no create, update, or delete operations for DNS records, firewall rules, KV pairs, tokens, logpush jobs, or other resources. While read coverage is broad, the lack of lifecycle mutations is a significant gap for a Cloudflare management server.
Maintenance
Related MCP Connectors
Cloudflare Workers MCP server: api-flow-analyzer
Zero-dependency Cloudflare Worker gateway turning websites and REST APIs into MCP tools.
Cloudflare Workers MCP server: domain-intel
Cloudflare Workers MCP server: ai-gateway
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceA lightweight MCP server for managing DNS records, purging cache, and interacting with the Cloudflare API through natural language commands.24-
- AlicenseNot gradedqualityDmaintenanceA lightweight MCP server that enables agents to interface with Cloudflare's REST API, allowing management of DNS records and other Cloudflare services.15GPL 2.0
- AlicenseBqualityCmaintenanceSlim Cloudflare MCP Server — 42 tools for managing DNS, zones, tunnels, WAF, Zero Trust, and security via Cloudflare API v4. Multi-zone support. No SSH, no shell, API-only with 3 runtime dependencies. AGPL-3.0 + Commercial dual-licensed.9665 npmAGPL 3.0
- AlicenseCqualityDmaintenanceA high-performance MCP server providing AI assistants with read-only access to the Cloudflare ecosystem. Query your entire Cloudflare infrastructure using natural language through Claude, Cursor, or any MCP-compatible client.3905MIT