Skip to main content

Overview

Cloudflare’s MCP suite gives AI assistants access to specialized servers spanning infrastructure management, security observability, developer tooling, and global internet intelligence. Connect to the servers you need to manage Workers, inspect audit logs, analyze DNS, scan URLs, and more — all from within Civic.

How to Add Cloudflare

1

Add to Civic

Add the Cloudflare servers you need to your Civic environment through the server directory. Each Cloudflare product area is a separate server — add only the ones you need.
2

Authorize

On first use of each server, you will be redirected to Cloudflare to authorize the connection. Each product-specific server requests only the permissions it needs (e.g. the Logpush server only requests account read and logpush access).
Per-server authorization — Each Cloudflare server has its own authorization with minimal permissions. The unified Cloudflare API server is the exception — it requests broad permissions covering the entire API surface.
3

Test Connection

Try a simple command for the server you added, such as "List all accounts" or "List my Worker scripts".

cloudflare-api (Unified)

The Cloudflare API MCP exposes the entire Cloudflare REST API surface through just two tools: search (explores the OpenAPI spec) and execute (makes authenticated API calls). It covers 300+ product areas in a single integration.
Prefer the product-specific servers below for everyday use. They offer named tools (no code required), minimal OAuth scopes, and enforceable least-privilege per server. The unified API server is best for power users who need endpoints not covered by any specific server, or want to chain multiple product APIs in a single code block.
Cloudflare API (unified)Product-specific servers (below)
CoverageFull Cloudflare APIScoped to one product
Tool experienceCode-mode only; search-then-executeNamed tools, no code required
Auth scopeOne broad token for everythingMinimal scopes per server
Least privilegeNot enforceable per callEach server scoped precisely
Best forEdge endpoints, automation, power usersEveryday guided use
ToolDescription
searchExplore the Cloudflare OpenAPI spec to find endpoints, parameters, and schemas. Always use before execute.
executeMake authenticated API calls to any Cloudflare endpoint. Supports JavaScript with Promise.all for batching. Use ${accountId} in paths — it is pre-set.
Two-tool pattern — Always search first, then execute. Skipping search leads to path errors.Radar needs no auth — Radar endpoints (/radar/...) work without account context and are the best connectivity test.Code mode required — Both tools require JavaScript execution.Some products require dashboard activation — R2 and Access/Zero Trust return errors until enabled in the Cloudflare dashboard. Some features require a paid plan.

cloudflare-ai-gateway

Monitor and manage Cloudflare AI Gateway — the proxy layer for AI provider requests.
ToolDescription
accounts_listList all accounts in your Cloudflare account
list_gatewaysList AI gateways
list_logsList logs for a gateway
get_log_detailsGet details for a single log entry
get_log_request_bodyGet the request body for a log entry
get_log_response_bodyGet the response body for a log entry
set_active_accountSet the active account for subsequent tool calls

cloudflare-audit-logs

Query audit logs across your Cloudflare account to track actor activity and configuration changes.
ToolDescription
accounts_listList all accounts in your Cloudflare account
auditlogs_by_account_idFind audit logs for an account within a time slice
set_active_accountSet the active account for subsequent tool calls

cloudflare-autorag

Search documents stored in Cloudflare AutoRAG vector stores using semantic or AI-powered search.
ToolDescription
accounts_listList all accounts in your Cloudflare account
list_ragsList AutoRAG vector stores
searchSearch documents using AutoRAG
ai_searchAI-powered search over AutoRAG documents
set_active_accountSet the active account for subsequent tool calls

cloudflare-browser-rendering

Render web pages in a headless browser to retrieve HTML, Markdown, or screenshots.
ToolDescription
accounts_listList all accounts in your Cloudflare account
get_url_html_contentGet a page’s raw HTML content
get_url_markdownGet a page converted to Markdown
get_url_screenshotTake a screenshot of a page
set_active_accountSet the active account for subsequent tool calls

cloudflare-casb

Inspect SaaS integration assets and security findings via Cloudflare CASB (Cloud Access Security Broker).
ToolDescription
accounts_listList all accounts in your Cloudflare account
integrations_listList all Cloudflare One integrations
integration_by_idAnalyze a specific integration by ID
assets_listList all discovered assets
assets_searchSearch assets by keyword
asset_by_idGet a specific asset by ID
assets_by_integration_idList assets for a specific integration
assets_by_category_idList assets by category
asset_categories_listList all asset categories
asset_categories_by_typeFilter asset categories by type
asset_categories_by_vendorList asset categories by vendor
asset_categories_by_vendor_and_typeFilter asset categories by vendor and type
set_active_accountSet the active account for subsequent tool calls

cloudflare-logpush

View and manage Cloudflare Logpush jobs for log delivery to external destinations. Currently read-only.
ToolDescription
accounts_listList all accounts in your Cloudflare account
list_logpush_jobsList all Logpush jobs for the active account (max 100)
set_active_accountSet the active account for subsequent tool calls
Account context required — call set_active_account before querying Logpush jobs. Current version supports listing and viewing only, not creating or modifying jobs.

cloudflare-documentation

Search Cloudflare’s official documentation and access migration guides.
ToolDescription
search_cloudflare_documentationSearch Cloudflare docs for any product or feature
migrate_pages_to_workers_guideRead the Pages-to-Workers migration guide

cloudflare-observability

Query Workers Observability logs and metrics, and inspect Worker code.
ToolDescription
accounts_listList all accounts in your Cloudflare account
workers_listList all Workers in the account
workers_get_workerGet details for a specific Worker
workers_get_worker_codeGet the source code of a Worker
query_worker_observabilityQuery Workers Observability logs and metrics
observability_keysFind field keys in Workers Observability data
observability_valuesFind field values in Workers Observability data
search_cloudflare_documentationSearch Cloudflare documentation
migrate_pages_to_workers_guideRead the Pages-to-Workers migration guide
set_active_accountSet the active account for subsequent tool calls

cloudflare-radar

Access Cloudflare Radar’s global internet intelligence including traffic trends, attack data, domain rankings, and IP/AS details.
ToolDescription
accounts_listList all accounts in your Cloudflare account
get_http_dataRetrieve HTTP traffic trends
get_l3_attack_dataRetrieve network layer (L3) attack trends
get_l7_attack_dataRetrieve application layer (L7) attack trends
get_dns_queries_dataRetrieve DNS query trends from the 1.1.1.1 resolver
get_internet_quality_dataGet bandwidth, latency, and DNS response time data
get_traffic_anomaliesGet traffic anomalies and outages
get_domains_rankingGet top or trending domains
get_ip_detailsGet information about an IP address
scan_urlSubmit a URL for scanning
set_active_accountSet the active account for subsequent tool calls

cloudflare-workers-bindings

Manage Cloudflare Workers and their storage bindings: D1 databases, KV namespaces, R2 buckets, and Hyperdrive configurations.
ToolDescription
accounts_listList all accounts in your Cloudflare account
workers_listList all Workers in the account
workers_get_workerGet details for a specific Worker
d1_databases_listList all D1 databases
d1_database_queryRun a SQL query against a D1 database
kv_namespaces_listList all KV namespaces
r2_buckets_listList all R2 buckets
hyperdrive_configs_listList Hyperdrive configurations
search_cloudflare_documentationSearch Cloudflare documentation
set_active_accountSet the active account for subsequent tool calls

Guardrails

This server supports all 14 universal guardrails. Server-specific guardrails are coming soon.