mcp-cloudflare
The mcp-cloudflare server provides comprehensive Cloudflare management via API v4 — no SSH or shell required. It supports:
DNS Management: CRUD operations for DNS records (A, AAAA, CNAME, MX, TXT, SRV, CAA, NS); search by pattern; export/import BIND zone files; check DNSSEC status.
Zone Management: List, retrieve, and filter zones; get/update settings (SSL mode, security level, minify, caching); check overall zone health.
Tunnel Management: List, create, retrieve, and delete Cloudflare Tunnels; get/update ingress configurations.
WAF: List rulesets and ruleset details; list, create, and delete custom firewall rules using Cloudflare Rules Language.
Zero Trust Access: List/get Access applications and policies; create access policies; list identity providers; check Gateway (DNS/HTTP filtering) status.
Security & DDoS: Get/set zone security level (including "Under Attack" mode); query security/firewall events and DDoS analytics via GraphQL; list, create, and delete IP access rules (by IP, CIDR, ASN, or country).
Account & Utilities: Retrieve account details; verify API token and its permissions; monitor API rate limit consumption.
Workers & R2: Manage Workers KV namespaces/key-values, deploy Workers scripts, and handle R2 storage buckets and objects.
All zone-scoped operations accept either a zone ID or domain name, enabling easy multi-zone management.
Provides tools for managing DNS records, zone settings, Cloudflare Tunnels, WAF rules, Zero Trust applications, and security event analytics via the Cloudflare API.
mcp-cloudflare
Slim Cloudflare MCP Server for managing DNS, zones, tunnels, WAF, Zero Trust, and security via Cloudflare API v4.
No SSH. No shell execution. API-only. 3 runtime dependencies.
Table of Contents
Related MCP server: mcp-opnsense
Features
75 tools across 11 domains:
DNS — Record management (A, AAAA, CNAME, MX, TXT, SRV, CAA, NS), batch operations
Zones — Zone listing, settings, SSL/TLS configuration, cache management
Tunnels — Cloudflare Tunnel creation, configuration, and ingress management
WAF — Ruleset management, custom firewall rules, rate limiting
Zero Trust — Access application CRUD (create/delete), policies (create/delete), identity providers (create/delete), Gateway status
Security — Security event analytics, IP access rules, DDoS configuration, Security Center insights
Workers KV — Namespace management, key-value read/write/delete, key listing
Workers — Script deployment, route management
Worker Secrets — Secret management (names only, values never exposed)
Worker Analytics — Invocation metrics, CPU time, error rates via GraphQL
R2 Storage — Bucket management, object listing and metadata, custom domains, location hints
Quick Start
npm install
cp .env.example .env # Edit with your Cloudflare API token
npm run build
node dist/index.js # stdio transport for MCPHashiCorp Vault Integration (Optional)
mcp-cloudflare supports loading Cloudflare credentials from a central
HashiCorp Vault instance at startup via AppRole
authentication. This is optional — the server works fine with plain environment
variables alone.
How It Works
On startup, if NAS_VAULT_ADDR is set the server performs an AppRole login,
fetches the KV v2 secret at <mount>/data/cloudflare/api, and injects the
values into the process environment before the MCP transport starts. The
loader is fully opportunistic:
If
NAS_VAULT_ADDRis unset, the loader is a silent no-op. No Vault calls are made and the server behaves exactly as before.On any Vault error (network failure, bad credentials, missing secret path), a single-line warning is written to stderr and the server falls back to whatever environment variables are already set.
Secret values are never logged. Only the KV path name and a populated-count appear in stderr diagnostics.
Uses the built-in
fetch(Node 20+) — no additional runtime dependencies.
Credential Precedence
Explicit env vars (CLOUDFLARE_API_TOKEN etc.) > Vault > error (missing creds)If you set CLOUDFLARE_API_TOKEN directly, the Vault loader will not
overwrite it. Vault only fills in credentials that are not already present in
the environment.
Vault Environment Variables
Variable | Required | Description |
| Yes* | Vault server address (e.g., |
| Yes* | AppRole role ID for this server |
| Yes* | AppRole secret ID for this server |
| No | KV v2 mount path (default: |
* Only required if using Vault. All three must be set together.
KV v2 Secret Structure
Write the Cloudflare credentials to the following path in Vault:
Path: kv/cloudflare/api{
"api_token": "your-cloudflare-api-token",
"account_id": "your-account-id"
}Key mapping:
Vault key | Environment variable |
|
|
|
|
Vault Setup Steps
1. Write credentials to KV v2:
vault kv put kv/cloudflare/api \
api_token="your-cloudflare-api-token" \
account_id="your-account-id"2. Create a Vault policy:
# cloudflare-mcp-policy.hcl
path "kv/data/cloudflare/api" {
capabilities = ["read"]
}vault policy write cloudflare-mcp cloudflare-mcp-policy.hcl3. Enable AppRole auth and create a role:
vault auth enable approle
vault write auth/approle/role/cloudflare-mcp \
token_policies="cloudflare-mcp" \
token_ttl="1h" \
token_max_ttl="4h" \
secret_id_ttl="0" # 0 = no expiry; set a duration for rotation4. Retrieve the role ID and secret ID:
vault read auth/approle/role/cloudflare-mcp/role-id
vault write -f auth/approle/role/cloudflare-mcp/secret-idClaude Desktop / MCP Config Example (with Vault)
When using Vault, no Cloudflare credentials are needed in the MCP config — only the three Vault variables:
{
"mcpServers": {
"cloudflare": {
"command": "npx",
"args": ["@itunified.io/mcp-cloudflare"],
"env": {
"NAS_VAULT_ADDR": "https://vault.example.com:8200",
"NAS_VAULT_ROLE_ID": "your-role-id",
"NAS_VAULT_SECRET_ID": "your-secret-id"
}
}
}
}NAS_VAULT_KV_MOUNT can be omitted if your KV engine is mounted at the
default path kv. The Cloudflare API token and account ID will be fetched
automatically at startup.
Claude Code Integration
Add to .mcp.json in your project root:
{
"mcpServers": {
"cloudflare": {
"command": "node",
"args": ["/path/to/mcp-cloudflare/dist/index.js"],
"env": {
"CLOUDFLARE_API_TOKEN": "your-api-token-here",
"CLOUDFLARE_ACCOUNT_ID": "your-account-id"
}
}
}
}Configuration
Variable | Required | Default | Description |
| Yes | — | Cloudflare API Token (with appropriate permissions) |
| No | — | Cloudflare Account ID (required for account-level operations) |
| No |
| Request timeout in milliseconds |
| No | — | HashiCorp Vault URL, enables Vault AppRole loading (see below) |
| No | — | Vault AppRole role_id |
| No | — | Vault AppRole secret_id |
| No |
| Vault KV v2 mount path |
Loading Secrets from HashiCorp Vault (AppRole)
If you run a central Vault instance, mcp-cloudflare can fetch its credentials
at startup via AppRole instead of passing them through the MCP config:
export NAS_VAULT_ADDR=https://vault.example.com
export NAS_VAULT_ROLE_ID=<role-id>
export NAS_VAULT_SECRET_ID=<secret-id>
# optional — defaults to "kv"
export NAS_VAULT_KV_MOUNT=kvThe loader reads KV v2 at <mount>/data/cloudflare/api and expects two keys:
api_token and account_id. Example Vault write:
vault kv put kv/cloudflare/api \
api_token=your-api-token-here \
account_id=00000000000000000000000000000000Precedence: process.env (explicit) > Vault. If NAS_VAULT_ADDR is unset
the loader is a silent no-op — the server behaves exactly as before. On any
Vault error (network, auth, missing path), a single-line warning is written
to stderr and the server falls back to whatever env vars are already set.
Security: secret values are never logged. Only the KV path name and a
populated-count appear in stderr diagnostics. Uses the global fetch
(Node 20+) — no new runtime dependencies.
API Token Permissions
Create an API Token at dash.cloudflare.com/profile/api-tokens with the following permissions based on what you need:
DNS: Zone > DNS > Edit
Zone settings: Zone > Zone Settings > Edit
Cache purge: Zone > Cache Purge > Edit
Tunnels: Account > Cloudflare Tunnel > Edit
WAF: Zone > Firewall Services > Edit
Zero Trust: Account > Access: Apps and Policies > Edit
Security events: Zone > Analytics > Read
Workers KV: Account > Workers KV Storage > Edit
Workers: Account > Worker Scripts > Edit
R2: Account > R2 Storage > Edit
Multi-Zone Support
All zone-scoped tools accept a zone_id parameter that can be either:
A 32-character hex zone ID (e.g.,
00000000000000000000000000000001) — used directlyA zone name / domain (e.g.,
example.com) — resolved automatically via the Cloudflare API
This allows managing multiple zones by name without needing to look up IDs manually.
Tools
Tools documentation is coming in v1 as tool modules are implemented. See docs/api-reference.md for the planned API endpoint mapping.
Skills
Claude Code skills compose MCP tools into higher-level workflows. See .claude/skills/README.md for detailed documentation.
Skill | Slash Command | Description |
cloudflare-health |
| Zone health dashboard — DNS, security, tunnels, WAF, DDoS status |
cloudflare-live-test |
| Live integration test — read + safe writes with cleanup |
cloudflare-dns-management | — | DNS record management — add, list, update, delete across zones |
cloudflare-incident-response | — | DDoS/attack emergency response — detect, assess, mitigate, monitor |
cloudflare-security-audit | — | Security posture audit — WAF, events, IP access, DDoS analytics |
cloudflare-tunnel-management | — | Tunnel management — create, configure ingress, monitor connections |
cloudflare-waf-management | — | WAF management — custom rules, rulesets, IP access, Under Attack |
cloudflare-zero-trust | — | Zero Trust — access apps, policies, identity providers, gateway |
cloudflare-kv-manage | — | Workers KV — namespace and key-value CRUD operations |
cloudflare-worker-deploy | — | Workers — script deployment, routes, secrets, analytics |
cloudflare-r2-manage | — | R2 Storage — bucket and object management, audit workflows |
Development
npm run build # Compile TypeScript
npm test # Run unit tests (vitest)
npm run typecheck # Type check only (no emit)See CONTRIBUTING.md for contribution guidelines.
License
This project is dual-licensed:
Open Source: GNU Affero General Public License v3.0 (AGPL-3.0) — free for open-source and non-commercial use
Commercial: Available for proprietary integrations — see COMMERCIAL_LICENSE.md
If you use mcp-cloudflare in a proprietary product or SaaS offering, a commercial license is required. Support development by sponsoring us on GitHub.
Available Tools
95 toolscloudflare_account_infoA
Get Cloudflare account details (account name, ID, settings). No zone_id needed.
Inputs: no named parameters.
cloudflare_cache_purgeA
Purge cached files from Cloudflare's edge. Purge specific URLs (files), cache tags, URL prefixes, or everything. CAUTION: purge_everything causes a temporary origin load spike as the entire cache is rebuilt.
Inputs: zone_id (required), files, tags, prefixes, +1 more.
cloudflare_certificate_getB
Get details of a specific SSL/TLS certificate pack including hosts, status, validity, and issuer.
Inputs: zone_id (required), certificate_pack_id (required).
cloudflare_certificate_listA
List SSL/TLS certificate packs for a zone. Shows all certificates including Universal SSL, Advanced, and custom uploads.
Inputs: zone_id (required), status.
cloudflare_ddos_analyticsB
Query DDoS attack analytics for a zone using Cloudflare GraphQL Analytics. Returns aggregated attack traffic data.
Inputs: zone_id (required), since, limit.
cloudflare_dns_createC
Create a new DNS record in a zone.
Inputs: zone_id (required), type (required), name (required), content (required), +3 more.
cloudflare_dns_deleteB
Delete a DNS record from a zone.
Inputs: zone_id (required), record_id (required).
cloudflare_dns_exportA
Export all DNS records for a zone in BIND zone file format. Returns raw text.
Inputs: zone_id (required).
cloudflare_dns_getA
Get a single DNS record by its record ID.
Inputs: zone_id (required), record_id (required).
cloudflare_dns_importA
Import DNS records from a BIND zone file. Sends the file content as multipart/form-data.
Inputs: zone_id (required), file_content (required).
cloudflare_dns_listB
List DNS records for a zone. Optionally filter by type, name, content, or proxied status.
Inputs: zone_id (required), type, name, content, +3 more.
cloudflare_dns_searchA
Search DNS records by name pattern. Returns all records whose name contains the given string.
Inputs: zone_id (required), name (required), type.
cloudflare_dnssec_disableA
DESTRUCTIVE: Disable DNSSEC for a zone. Also remove the DS record at your domain registrar to avoid DNS resolution failures.
Inputs: zone_id (required).
cloudflare_dnssec_enableA
DESTRUCTIVE: Enable DNSSEC for a zone. After enabling, you must add the DS record at your domain registrar for DNSSEC to become fully active.
Inputs: zone_id (required).
cloudflare_dnssec_statusA
Get the DNSSEC status for a zone.
Inputs: zone_id (required).
cloudflare_dns_updateA
Update an existing DNS record (full replacement via PUT).
Inputs: zone_id (required), record_id (required), type (required), name (required), +4 more.
cloudflare_ip_access_createB
Create an IP access rule for a zone. Targets can be a specific IP, CIDR range, ASN, or country code.
Inputs: mode (required), value (required), target (required), zone_id (required), +1 more.
cloudflare_ip_access_deleteB
Delete an IP access rule from a zone by its rule ID.
Inputs: rule_id (required), zone_id (required).
cloudflare_ip_access_listA
List IP access rules (firewall rules) for a zone. Filter by mode (block, challenge, whitelist, js_challenge).
Inputs: zone_id (required), mode, page, per_page.
cloudflare_kv_deleteB
Delete a key from a Workers KV namespace.
Inputs: key_name (required), namespace_id (required).
cloudflare_kv_list_keysA
List keys stored in a Workers KV namespace. Supports prefix filtering and cursor-based pagination.
Inputs: namespace_id (required), limit, cursor, prefix.
cloudflare_kv_namespace_createB
Create a new Workers KV namespace in the account.
Inputs: title (required).
cloudflare_kv_namespace_deleteA
DESTRUCTIVE: Delete a Workers KV namespace by its ID. This removes all keys in the namespace.
Inputs: namespace_id (required).
cloudflare_kv_namespace_listB
List all Workers KV namespaces in the account.
Inputs: page, per_page.
cloudflare_kv_readA
Read the value of a key from a Workers KV namespace. Returns the raw string value.
Inputs: key_name (required), namespace_id (required).
cloudflare_kv_writeA
Write a value to a key in a Workers KV namespace. Optionally set a TTL for automatic expiration.
Inputs: value (required), key_name (required), namespace_id (required), expiration_ttl.
cloudflare_r2_bucket_createB
Create a new R2 storage bucket. Name must be 3-63 lowercase alphanumeric characters with hyphens.
Inputs: name (required), location_hint.
cloudflare_r2_bucket_deleteA
DESTRUCTIVE: Delete an R2 bucket. The bucket must be empty before deletion.
Inputs: bucket_name (required).
cloudflare_r2_bucket_domain_addA
Attach a custom domain to an R2 bucket, enabling public access via that domain. The domain must belong to a zone in the same account. Cloudflare automatically creates a CNAME record.
Inputs: domain (required), zone_id (required), bucket_name (required), enabled.
cloudflare_r2_bucket_domain_listA
List custom domains attached to an R2 bucket. Shows domain name, status, and zone info.
Inputs: bucket_name (required).
cloudflare_r2_bucket_domain_removeA
Remove a custom domain from an R2 bucket. This disables public access via that domain.
Inputs: domain (required), bucket_name (required).
cloudflare_r2_bucket_getB
Get details of an R2 bucket including creation date and location.
Inputs: bucket_name (required).
cloudflare_r2_bucket_listA
List all R2 buckets in the account. Supports filtering by name and pagination.
Inputs: order, cursor, per_page, direction, +1 more.
cloudflare_r2_object_deleteC
Delete an object from an R2 bucket.
Inputs: object_key (required), bucket_name (required).
cloudflare_r2_object_getA
Get metadata of an object in an R2 bucket (size, etag, content type, last modified). Does not return object body.
Inputs: object_key (required), bucket_name (required).
cloudflare_r2_object_listA
List objects in an R2 bucket. Supports prefix filtering, delimiter for directory-like listing, and pagination.
Inputs: bucket_name (required), cursor, prefix, per_page, +1 more.
cloudflare_rate_limit_getB
Get details of a specific rate limiting rule including threshold, period, action, and match conditions.
Inputs: zone_id (required), rate_limit_id (required).
cloudflare_rate_limit_listB
List all rate limiting rules for a zone with pagination.
Inputs: zone_id (required), page, per_page.
cloudflare_rate_limit_statusA
Check Cloudflare API rate limit consumption. Returns current limit, remaining requests, and reset time from response headers.
Inputs: no named parameters.
cloudflare_security_eventsA
Query recent security/firewall events for a zone using Cloudflare GraphQL Analytics.
Inputs: zone_id (required), since, limit.
cloudflare_security_insightsA
List Security Center insights (configuration issues, vulnerabilities, misconfigurations) for the account. Requires CLOUDFLARE_ACCOUNT_ID.
Inputs: page, per_page, severity, dismissed, +1 more.
cloudflare_security_insights_severity_countA
Get Security Center insight counts grouped by severity (low, moderate, critical). Quick overview without fetching all issues. Requires CLOUDFLARE_ACCOUNT_ID.
Inputs: no named parameters.
cloudflare_security_level_getA
Get the current security level setting for a zone (off, essentially_off, low, medium, high, under_attack).
Inputs: zone_id (required).
cloudflare_security_level_setA
DESTRUCTIVE: Update the security level for a zone. Changes affect live traffic immediately. Use 'under_attack' only during active DDoS attacks.
Inputs: zone_id (required), value (required).
cloudflare_ssl_setting_getA
Get the current SSL/TLS encryption mode for a zone (off, flexible, full, strict).
Inputs: zone_id (required).
cloudflare_ssl_setting_setA
DESTRUCTIVE: Set the SSL/TLS encryption mode for a zone. Changes affect live traffic immediately. 'strict' is recommended for production.
Inputs: value (required), zone_id (required).
cloudflare_ssl_verificationA
Get SSL/TLS verification status for a zone. Shows certificate validation progress, hostname coverage, and brand check status.
Inputs: zone_id (required).
cloudflare_tls_setting_getA
Get the minimum TLS version setting for a zone (1.0, 1.1, 1.2, or 1.3).
Inputs: zone_id (required).
cloudflare_tls_setting_setA
DESTRUCTIVE: Set the minimum TLS version for a zone. Changes affect live traffic immediately. Higher versions are more secure but may break older clients.
Inputs: value (required), zone_id (required).
cloudflare_token_verifyB
Validate the configured Cloudflare API token and check its permissions.
Inputs: no named parameters.
cloudflare_tunnel_config_getB
Get the ingress configuration for a Cloudflare Tunnel.
Inputs: tunnel_id (required).
cloudflare_tunnel_config_updateC
Update the ingress configuration for a Cloudflare Tunnel.
Inputs: tunnel_id (required), config (required).
cloudflare_tunnel_createA
Create a new Cloudflare Tunnel. A secure 32-byte tunnel secret is automatically generated.
Inputs: name (required).
cloudflare_tunnel_deleteA
Delete a Cloudflare Tunnel by its ID. This action cannot be undone.
Inputs: tunnel_id (required).
cloudflare_tunnel_getA
Get details for a specific Cloudflare Tunnel by its ID.
Inputs: tunnel_id (required).
cloudflare_tunnel_listC
List Cloudflare Tunnels for the account. Optionally filter by name or deleted status.
Inputs: page, per_page, name, is_deleted.
cloudflare_tunnel_tokenA
Get the connector token for a Cloudflare Tunnel. This JWT token is used by cloudflared to authenticate with the Cloudflare edge. Store securely — treat as a credential.
Inputs: tunnel_id (required).
cloudflare_under_attack_statusB
Check whether a zone is currently in 'Under Attack' mode. Returns the current security level and whether DDoS protection is maximized.
Inputs: zone_id (required).
cloudflare_waf_create_custom_ruleB
Add a new custom WAF firewall rule to a zone. Uses Cloudflare Rules Language for the expression.
Inputs: zone_id (required), expression (required), action (required), description.
cloudflare_waf_delete_custom_ruleC
Delete a custom WAF firewall rule from a zone ruleset.
Inputs: zone_id (required), ruleset_id (required), rule_id (required).
cloudflare_waf_get_rulesetA
Get a specific WAF ruleset by ID, including all rules within the ruleset.
Inputs: zone_id (required), ruleset_id (required).
cloudflare_waf_list_custom_rulesA
List all custom WAF firewall rules for a zone (http_request_firewall_custom phase entrypoint).
Inputs: zone_id (required).
cloudflare_waf_list_rulesetsA
List all WAF rulesets for a zone (managed, custom, rate-limiting, etc.).
Inputs: zone_id (required).
cloudflare_web_analytics_createA
Create/enable a Web Analytics (RUM) site. Enables privacy-first, cookie-free analytics beacon auto-injection for the specified hostname.
Inputs: host (required), zone_tag, auto_install.
cloudflare_web_analytics_deleteA
Delete a Web Analytics (RUM) site and stop collecting analytics.
Inputs: site_id (required).
cloudflare_web_analytics_getA
Get details of a specific Web Analytics (RUM) site by ID.
Inputs: site_id (required).
cloudflare_web_analytics_listA
List all Web Analytics (RUM) sites for the account. Returns site IDs, hostnames, and creation dates.
Inputs: order_by.
cloudflare_web_analytics_statsB
Query Web Analytics traffic stats for a zone. Returns page views, visits, and bandwidth grouped by time.
Inputs: zone_id (required), limit, since.
cloudflare_worker_analyticsA
Query Workers invocation analytics (time-series). Returns per-script metrics including requests, errors, subrequests, and CPU time percentiles ordered by time.
Inputs: limit, since.
cloudflare_worker_deleteA
DESTRUCTIVE: Delete a Workers script by name. This action cannot be undone.
Inputs: script_name (required).
cloudflare_worker_deployC
Deploy a Workers script. Creates or updates the named script with the provided source code.
Inputs: script_name (required), script_content (required), compatibility_date (required), content_type, +1 more.
cloudflare_worker_deploy_projectA
Deploy a multi-file Workers project using wrangler. Runs 'npx wrangler deploy' in the given project directory. Requires wrangler installed in the project (devDependency) and a wrangler.toml config file. Uses the CLOUDFLARE_API_TOKEN from the MCP server environment.
Inputs: project_path (required), environment.
cloudflare_worker_listA
List all Workers scripts deployed in the account.
Inputs: no named parameters.
cloudflare_worker_route_createB
Create a Workers route that maps a URL pattern to a Worker script for a zone.
Inputs: script (required), pattern (required), zone_id (required).
cloudflare_worker_route_listA
List all Workers routes for a zone. Routes map URL patterns to Worker scripts.
Inputs: zone_id (required).
cloudflare_worker_secret_deleteA
Delete a secret from a Workers script by name.
Inputs: script_name (required), secret_name (required).
cloudflare_worker_secret_listA
List all secrets bound to a Workers script. Only secret names are returned, not values.
Inputs: script_name (required).
cloudflare_worker_secret_setA
Set a secret for a Workers script. Creates or updates the named secret. The secret value is NOT echoed in the response for security.
Inputs: script_name (required), secret_name (required), secret_value (required).
cloudflare_worker_usageA
Query Workers usage summary (per-script aggregated). Returns scripts ranked by total request count, with error rates and CPU time percentiles.
Inputs: limit, since.
cloudflare_zone_getA
Get zone details including status, nameservers, and plan.
Inputs: zone_id (required).
cloudflare_zone_healthA
Check the health of a zone: combines zone status, DNSSEC configuration, and SSL mode into a single health report.
Inputs: zone_id (required).
cloudflare_zone_listA
List all Cloudflare zones with pagination. Optionally filter by status or name.
Inputs: page, per_page, status, name.
cloudflare_zone_setting_getB
Get a specific zone setting by name (e.g., 'ssl', 'security_level', 'minify').
Inputs: zone_id (required), setting_name (required).
cloudflare_zone_setting_updateC
Update a specific zone setting (e.g., change SSL mode, security level).
Inputs: zone_id (required), setting_name (required), value (required).
cloudflare_zt_create_appB
Create a new Zero Trust Access application. Protects a domain with identity-based access control.
Inputs: name (required), domain (required), type, session_duration, +4 more.
cloudflare_zt_create_idpB
Create a new identity provider (IdP) for Zero Trust Access. Supports GitHub, Google, SAML, OIDC, Azure AD, Okta, and one-time PIN.
Inputs: name (required), type (required), config (required).
cloudflare_zt_create_policyB
Create an access policy for a Zero Trust Access application. Policies define who can access the application.
Inputs: app_id (required), name (required), decision (required), include (required).
cloudflare_zt_delete_appA
DESTRUCTIVE: Delete a Zero Trust Access application. This removes the application and all its associated policies.
Inputs: app_id (required).
cloudflare_zt_delete_idpB
DESTRUCTIVE: Delete an identity provider (IdP) from Zero Trust Access.
Inputs: provider_id (required).
cloudflare_zt_delete_policyB
DESTRUCTIVE: Delete an access policy from a Zero Trust Access application.
Inputs: app_id (required), policy_id (required).
cloudflare_zt_gateway_statusA
Get the Zero Trust Gateway (DNS/HTTP filtering) configuration status for the account.
Inputs: no named parameters.
cloudflare_zt_get_appA
Get details for a specific Zero Trust Access application by its ID.
Inputs: app_id (required).
cloudflare_zt_list_appsA
List all Zero Trust Access applications for the account.
Inputs: no named parameters.
cloudflare_zt_list_idpsA
List all identity providers (IdPs) configured for Zero Trust Access on the account.
Inputs: no named parameters.
cloudflare_zt_list_policiesA
List all access policies attached to a Zero Trust Access application.
Inputs: app_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 95 tools
Most tools are clearly scoped by resource (dns, tunnel, kv, r2, zt, worker). However, there is notable overlap: cloudflare_zone_setting_get vs cloudflare_security_level_get (security_level is a zone setting), and cloudflare_security_insights vs cloudflare_security_insights_severity_count add nearly redundant tools. The WAF and IP access rule tools could also be confused.
All tools follow a consistent resource_noun_verb or resource_noun_action pattern (e.g., cloudflare_dns_list, cloudflare_r2_bucket_create). The naming clearly groups by service area and action, making it predictable across the large surface.
95 tools is extremely high for a coherent MCP server. While Cloudflare has many products, this set spans zones, DNS, WAF, tunnels, Zero Trust, Workers, KV, R2, analytics, and security — far too broad. An agent would struggle to discover and choose among 95 tools.
The core resources (DNS, KV, R2, Workers, Zero Trust, WAF) have solid lifecycle coverage — create/read/update/delete operations are present. Some gaps exist (no DNS bulk operations, no WAF ruleset update, no R2 object upload), but most workflows can be completed.
Maintenance
Related MCP Connectors
Zero-dependency Cloudflare Worker gateway turning websites and REST APIs into MCP tools.
Free MCP server of security & dev API tools -- supply-chain, CVE, DNS, WHOIS, OFAC, Cosmos SDK.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Cloudflare Workers MCP server: api-flow-analyzer
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceA token-efficient MCP server for managing Cloudflare DNS zones and records with full CRUD support and bulk operations. It can be deployed locally via stdio or as a Cloudflare Worker for remote HTTP access.-
- AlicenseAqualityDmaintenanceSlim OPNsense MCP Server — 62 tools for managing firewall infrastructure via the OPNsense REST API. Covers DNS/Unbound, Firewall rules, Diagnostics, Interfaces, DHCP (ISC + Kea), System/Backups, ACME/Let's Encrypt, and Firmware. No SSH, no shell, API-only with 3 runtime dependencies. AGPL-3.0 + Commercial dual-licensed.10054 npm2AGPL 3.0
- AlicenseAqualityDmaintenanceMCP server for managing and analyzing Cloudflare DNS — zones, records, analytics, and DNSSEC.141MIT
- AlicenseBqualityCmaintenanceA local stdio MCP server that provides 69 tools for Cloudflare REST API v4, including DNS, Zones, Workers, KV, R2, D1, Pages, Queues, Tunnels, SSL, WAF, Email Routing, Logpush and Workers AI, authenticated by a single API token.6966 npm3MIT