Skip to main content
Glama

cloudflare-mcp-go

Go Reference Go Version Latest Release Glama score

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@latest

That 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

List zones in your account (ID, name, status, plan).

get_zone

Get details of a specific zone.

get_zone_settings

Get a zone's configuration settings (SSL mode, min TLS, cache level, security level).

purge_cache

Purge a zone's cache: everything, or by file/tag/host/prefix (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

list_dns_records

List DNS records for a zone (type, name, content, TTL, proxy status).

get_dns_record

Get a single DNS record by ID (type, name, content, TTL, proxy status, comment).

get_dns_analytics

DNS query analytics: query counts, response codes, query type distribution.

get_dns_analytics_bytime

DNS query analytics grouped by time interval (time-series).

export_dns_records

Export all DNS records for a zone as a BIND zone file.

get_dns_record_usage

DNS record usage counts for a zone (toward plan limits).

get_dns_settings

Get a zone's DNS settings (Foundation DNS, multi-provider, nameservers, zone mode).

get_dnssec

Get DNSSEC details for a zone (status, DS record, digest, key tag, algorithm).

list_dnssec_zsk

List DNSSEC Zone Signing Keys (ZSKs) for a zone (multi-signer DNSSEC).

list_scanned_dns_records

List DNS records discovered by a scan, pending review.

create_dns_record

Create a DNS record (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

update_dns_record

Update a DNS record, partial fields (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

delete_dns_record

Delete a DNS record by ID (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

overwrite_dns_record

Overwrite (fully replace) a DNS record by ID (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

batch_dns_records

Apply a batch of DNS record changes atomically (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

import_dns_records

Import DNS records from a BIND zone file (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

scan_dns_records

Scan a zone for DNS records at common names (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

trigger_dns_record_scan

Trigger an async DNS record scan (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

review_scanned_dns_records

Accept/reject DNS records found by a scan (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

update_dns_settings

Update a zone's DNS settings (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

edit_dnssec

Edit a zone's DNSSEC status (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

delete_dnssec

Delete a zone's DNSSEC records (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

Firewall, WAF & rate limiting

Tool

Description

list_ip_access_rules

IP access rules that block, challenge, or allow IPs, CIDRs, ASNs, or countries.

create_ip_access_rule

Create an IP access rule (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

update_ip_access_rule

Update an IP access rule's mode/notes (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

delete_ip_access_rule

Delete an IP access rule by ID (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

list_waf_managed_rulesets

WAF managed rulesets entrypoint and which managed rulesets are enabled.

list_firewall_rules

Custom firewall rules with expressions, actions, and priorities.

get_firewall_rule

Full configuration of a specific firewall rule by ID.

list_rulesets

All rulesets for a zone (metadata only).

get_ruleset

A specific ruleset with all its rules.

create_ruleset

Create a ruleset (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

update_ruleset

Update a ruleset's name/description/rules (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

delete_ruleset

Delete a ruleset by ID (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

list_rate_limits

Rate limiting rules: thresholds, match criteria, actions.

get_rate_limit

Full configuration of a specific rate limiting rule by ID.

create_rate_limit

Create a rate limit rule (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

update_rate_limit

Update a rate limit rule (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

delete_rate_limit

Delete a rate limit rule by ID (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

Security events & logs

Tool

Description

query_security_events

Query security events via the GraphQL Analytics API for triage.

get_log_by_rayid

Look up an HTTP request log entry by Cloudflare Ray ID.

list_received_logs

Retrieve HTTP request logs for a time range (max 1h, data ≥5min old).

list_log_fields

List available HTTP request log fields.

list_logpush_jobs

List Logpush jobs for a zone (dataset, destination, enabled).

get_logpush_job

Get a specific Logpush job in a zone by ID.

list_logpush_dataset_jobs

List Logpush jobs for a specific dataset in a zone.

list_logpush_dataset_fields

List available Logpush fields for a dataset in a zone.

list_instant_logs_jobs

List Instant Logs (edge) jobs for a zone.

get_log_retention_flag

Get a zone's log retention flag.

list_log_datasets

List Logs Explorer datasets for a zone.

list_available_log_datasets

List available Logs Explorer datasets for a zone.

get_log_dataset

Get a Logs Explorer dataset for a zone by ID.

query_logs_sql

Run a Logs Explorer SQL query for a zone (GET).

list_account_logpush_jobs

List Logpush jobs for an account.

get_account_logpush_job

Get a specific Logpush job in an account by ID.

list_account_logpush_dataset_jobs

List Logpush jobs for a dataset in an account.

list_account_logpush_dataset_fields

List available Logpush fields for a dataset in an account.

list_account_logpush_transformers

List Logpush transformers for an account.

get_account_logpush_transformer

Get a Logpush transformer in an account by ID.

get_account_logpush_transformer_content

Get a Logpush transformer's content in an account.

list_account_logpush_transformer_versions

List versions of a Logpush transformer in an account.

get_account_audit_logs_v2

Get account audit logs (v2) with since/before/limit.

list_account_audit_log_product_categories

List product categories for account audit logs (v2).

get_account_audit_log_history

Get change history for an account audit log entry (v2).

get_cmb_config

Get the Customer Metadata Boundary (CMB) config for an account.

list_account_log_datasets

List Logs Explorer datasets for an account.

list_available_account_log_datasets

List available Logs Explorer datasets for an account.

get_account_log_dataset

Get a Logs Explorer dataset for an account by ID.

query_account_logs_sql

Run a Logs Explorer SQL query for an account (GET).

list_account_log_files

List stored log files for an account (start/end/bucket).

retrieve_account_logs

Retrieve stored log entries (NDJSON) for an account.

create_account_logpush_job

Create an account Logpush job (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

update_account_logpush_job

Update an account Logpush job (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

delete_account_logpush_job

Delete an account Logpush job (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

get_account_logpush_ownership_challenge

Request an account Logpush ownership challenge (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

validate_account_logpush_ownership

Validate an account Logpush ownership challenge (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

create_account_logpush_transformer

Create an account Logpush transformer (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

preview_account_logpush_transformer

Preview an account Logpush transformer (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

update_account_logpush_transformer

Update an account Logpush transformer (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

delete_account_logpush_transformer

Delete an account Logpush transformer (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

validate_account_logpush_destination

Validate an account Logpush destination (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

check_account_logpush_destination_exists

Check an account Logpush destination exists (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

validate_account_logpush_origin

Validate account Logpush origin options (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

update_cmb_config

Update the Customer Metadata Boundary config (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

delete_cmb_config

Delete the Customer Metadata Boundary config (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

create_account_log_dataset

Create an account Logs Explorer dataset (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

update_account_log_dataset

Update an account Logs Explorer dataset (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

delete_account_log_dataset

Delete an account Logs Explorer dataset (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

run_account_logs_sql_query

Run an account Logs Explorer SQL query (POST) (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

create_logpush_job

Create a zone Logpush job (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

update_logpush_job

Update a zone Logpush job (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

delete_logpush_job

Delete a zone Logpush job (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

create_instant_logs_job

Create a zone Instant Logs job (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

get_logpush_ownership_challenge

Request a zone Logpush ownership challenge (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

validate_logpush_ownership

Validate a zone Logpush ownership challenge (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

validate_logpush_destination

Validate a zone Logpush destination (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

check_logpush_destination_exists

Check a zone Logpush destination exists (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

validate_logpush_origin

Validate zone Logpush origin options (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

update_log_retention_flag

Enable/disable zone log retention (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

create_log_dataset

Create a zone Logs Explorer dataset (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

update_log_dataset

Update a zone Logs Explorer dataset (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

delete_log_dataset

Delete a zone Logs Explorer dataset (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

run_logs_sql_query

Run a zone Logs Explorer SQL query (POST) (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

Security Center

Tool

Description

list_security_insights

Security Center insights with severity, type, and classification.

list_account_security_insights

Security Center insights for an account (account scope).

get_account_insight_counts

Account insight counts by dimension (class/severity/type).

get_account_insights_audit_log

Account Security Center insights audit log.

get_account_partner_insight_count

Account partner-provided insight count.

get_account_recent_scans

Recent Security Center scans for an account.

get_account_issue_audit_log

Audit log for an account Security Center insight.

get_account_insight_context

Context (affected resources) for an account insight.

get_partner_integration_settings

Partner integration settings for an account.

list_partner_shadow_zones

Partner-discovered shadow zones for an account.

list_partner_shadow_zone_hosts

Hosts in a partner-discovered shadow zone.

get_account_security_center_state

Security Center state for an account.

get_zone_insights_audit_log

Zone Security Center insights audit log.

get_zone_partner_insight_count

Zone partner-provided insight count.

get_zone_recent_scans

Recent Security Center scans for a zone.

get_zone_issue_audit_log

Audit log for a zone Security Center insight.

list_zone_partner_shadow_hosts

Partner-discovered shadow hosts for a zone.

get_securitytxt

Get a zone's security.txt configuration.

update_account_insight_classification

Update an account insight classification (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

dismiss_account_insight

Dismiss/archive an account insight (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

start_account_scan

Start an on-demand account Security Center scan (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

update_partner_integration_settings

Update Security Center partner integration settings for an account (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

update_account_security_center_state

Update the Security Center state for an account (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

start_zone_scan

Start an on-demand zone Security Center scan (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

update_zone_insight_classification

Update the classification of a Security Center insight in a zone (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

dismiss_zone_insight

Dismiss or un-dismiss a Security Center insight in a zone (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

update_securitytxt

Create or update the security.txt for a zone (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

delete_securitytxt

Delete the security.txt for a zone (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

get_insight_counts

Aggregated insight counts by severity, class, or type.

Threat intelligence

Tool

Description

get_ip_intel

Threat intelligence for an IP: geolocation, ASN, infrastructure, threat categories.

get_domain_intel

Security intelligence for a domain: risk scores, categories, DNS info.

get_domain_intel_bulk

Threat intelligence for multiple domains at once.

get_domain_history

Historical threat data and classifications for a domain.

list_passive_dns

Domains that have resolved to a given IP (passive DNS).

get_whois

WHOIS registration data for a domain.

get_asn_intel

ASN overview and subnet allocations.

list_attack_surface_issue_types

Security Center attack-surface issue types.

list_attack_surface_issues

Security Center attack-surface issues (misconfigurations, exposures).

get_attack_surface_issue_counts_by_class

Attack-surface issue counts by class.

get_attack_surface_issue_counts_by_severity

Attack-surface issue counts by severity.

get_attack_surface_issue_counts_by_type

Attack-surface issue counts by type.

get_ip_lists

Available threat-intelligence IP lists for an account.

get_bulk_domain_details

Threat intel details for multiple domains (GET bulk).

get_url_intel

Threat intelligence for a URL (risk, categories).

list_indicator_feeds

List indicator feeds owned by an account.

list_indicator_feed_permissions

List indicator feed view permissions for an account.

get_indicator_feed

Get indicator feed metadata by ID.

get_indicator_feed_data

Get raw indicator feed data by ID (STIX/CSV).

download_indicator_feed_data

Download latest indicator feed snapshot by ID.

get_indicator_feed_upload_status

Get status of an indicator feed upload.

list_sinkholes

List DNS sinkholes owned by an account.

get_sinkhole

Get a DNS sinkhole by ID.

list_sinkhole_ingresses

List ingress rules for a sinkhole.

dismiss_security_center_insight

Dismiss/archive a Security Center insight (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

create_indicator_feed

Create an indicator feed (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

grant_indicator_feed_permission

Grant indicator feed view permission (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

create_indicator_feed_provider

Create an indicator feed provider (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

revoke_indicator_feed_permission

Revoke indicator feed view permission (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

update_indicator_feed

Update indicator feed metadata (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

update_indicator_feed_data

Upload a new indicator feed snapshot (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

create_miscategorization

Report a domain/IP/URL miscategorization (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

create_sinkhole

Create a DNS sinkhole (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

update_sinkhole

Update a DNS sinkhole (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

delete_sinkhole

Delete a DNS sinkhole by ID (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

Account & audit

Tool

Description

list_accounts

Cloudflare accounts accessible with the current token.

get_account_details

Get details of a specific account by ID.

list_account_members

List members of an account (user, roles, status).

get_account_member

Get an account member by ID (user, roles, policies).

list_account_roles

List roles available in an account.

get_account_role

Get an account role by ID (name, permissions).

list_account_subscriptions

List subscriptions for an account.

get_account_subscription

Get an account subscription by ID.

get_subscription_cancel_reason

Get a subscription's cancellation reason.

list_account_tokens

List account-owned API tokens.

list_token_permission_groups

List permission groups for account API tokens.

verify_account_token

Verify the account API token is valid and active.

get_account_token

Get an account API token by ID (name, policies, status).

create_account

Create a new account (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

update_account

Update an account (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

delete_account

Delete an account by ID (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

add_account_member

Add a member to an account (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

update_account_member

Update an account member (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

remove_account_member

Remove a member from an account (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

create_account_subscription

Create an account subscription (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

cancel_delayed_downgrade

Cancel a pending subscription downgrade (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

update_account_subscription

Update an account subscription (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

delete_account_subscription

Delete an account subscription (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

append_subscription_action

Append an action to a subscription (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

create_subscription_cancel_reason

Record a subscription cancellation reason (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

create_account_token

Create an account API token (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

update_account_token

Update an account API token (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

delete_account_token

Delete an account API token by ID (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

roll_account_token

Roll (regenerate) an account API token value (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

list_audit_logs

Account audit log entries (who changed what and when).

list_user_audit_logs

User-scoped audit log entries.

list_kv_namespaces

Workers KV namespaces in an account.

get_kv_namespace

Get a KV namespace by ID.

get_kv_pairs_bulk

Get multiple KV pairs at once (read-only; POST bulk/get).

list_kv_keys

List keys in a KV namespace (prefix filter, cursor pagination).

get_kv_value

Read the raw stored value for a key in a KV namespace.

get_kv_metadata

Read the metadata associated with a key in a KV namespace.

write_kv_pair

Write a key-value pair, optional TTL (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

delete_kv_pair

Delete a key-value pair by key (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

create_kv_namespace

Create a KV namespace (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

delete_kv_namespace

Delete a KV namespace by ID (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

rename_kv_namespace

Rename a KV namespace (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

write_kv_pairs_bulk

Write multiple KV pairs at once (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

delete_kv_pairs_bulk

Delete multiple KV pairs at once, DELETE bulk (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

delete_kv_pairs_bulk_post

Delete multiple KV pairs at once, POST bulk/delete (write; requires CLOUDFLARE_MCP_ENABLE_WRITE=true).

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

CLOUDFLARE_API_TOKEN

Yes

Authenticates all Cloudflare API calls.

CLOUDFLARE_ACCOUNT_ID

No

Needed by account, audit log, KV, and intel tools.

CLOUDFLARE_MCP_ENABLE_WRITE

No

Enables write (mutation) tools when set to exactly true. Unset or empty keeps them disabled (default); any other value is rejected (logged to stderr) and the server stays read-only.

Claude Code

claude mcp add cloudflare \
  -e CLOUDFLARE_API_TOKEN=your-api-token \
  -- go run github.com/M-Yamashita01/cloudflare-mcp-go@latest

Or, 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-go

Project 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 documentation

See doc/architecture.md for detailed design documentation.

Available Tools

117 tools
download_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

    C2.9/5.0

    Scored across 117 tools

    Disambiguation2/5

    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.

    Naming Consistency4/5

    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.

    Tool Count1/5

    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.

    Completeness2/5

    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

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      C
      maintenance
      Slim 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.
      96
      65 npm
      AGPL 3.0
    • A
      license
      C
      quality
      D
      maintenance
      A 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.
      390
      5
      MIT