cloudflare-mcp-go
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CLOUDFLARE_API_TOKEN | Yes | Authenticates all Cloudflare API calls. | |
| CLOUDFLARE_ACCOUNT_ID | No | Needed by account, audit log, KV, and intel tools. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| 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. |
| 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. |
| 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. |
| 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. |
| 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. |
| 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. |
| get_insight_countsA | Get aggregated Security Center insight counts by dimension (severity, class, or type). Useful for quick security posture overview and prioritization. |
| 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. |
| 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. |
| get_rate_limitA | Get details of a specific rate limiting rule by ID. Returns the full configuration including threshold, period, action, and match criteria. |
| 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. |
| 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. |
| get_zoneA | Get details of a specific Cloudflare zone. Returns zone details such as ID, name, status, and plan. |
| list_accountsA | List Cloudflare accounts accessible with the current API token. Returns account details such as ID, name, and settings. |
| 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. |
| list_dns_recordsA | List DNS records for a Cloudflare zone. Returns record details such as ID, type, name, content, TTL, and proxy status. |
| 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. |
| 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. |
| list_kv_namespacesA | List Workers KV namespaces in a Cloudflare account. Returns namespace details such as ID and title. |
| 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. |
| 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. |
| 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. |
| 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. |
| 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. |
| 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. |
| 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. |
| list_zonesB | List zones in your Cloudflare account. Returns zone details such as ID, name, status, and plan. |
| 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. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 28 tools
Most tools target distinct resources and operations, with clear get/list/query patterns. The main risk is among the various intelligence tools (get_domain_intel, get_domain_history, get_whois, get_ip_intel, get_asn_intel), but their descriptions clearly differentiate by input and purpose.
All tool names follow a consistent snake_case verb_noun pattern, using 'get_' for single items, 'list_' for collections, and 'query_' for GraphQL analytics. No mixed styles or vague verbs.
With 28 tools, the server exceeds the typical well-scoped range. While the broad Cloudflare security/analytics domain justifies many resources, the count feels heavy and includes near-duplicates like get_domain_intel and get_domain_intel_bulk.
The toolset provides strong read-only coverage for security investigation: listing and getting firewall rules, rate limits, rulesets, logs, events, and multiple intelligence sources. Missing mutation capabilities (create/update/delete) are a notable gap if management workflows are expected, but for a read-only security analysis server this is nearly complete.