Integration

Cloudflare integration

Enterprise-grade CDN, DDoS protection, and web security platform API. Manage DNS zones and records, configure caching, firewall rules, SSL certificates, and Workers. Includes D1 serverless SQLite databases, KV key-value storage, R2 object storage with zero egress fees, and Workers edge computing platform.

Ask it in chat

Say what should happen.
The workflow builds itself.

When this happens, do that in Cloudflare.Built from the 59 Cloudflare tools below, on the connection you add once.

Common Cloudflare use cases

  • Resource cleanup
  • Disaster recovery
  • Capacity planning
  • Clean up test storage
  • Create edge middleware
  • Decommission services
  • Audit storage resources
  • Validate before operations
  • URL redirects
  • Data migration

What you can do with Cloudflare

Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.

Each badge shows the default agent permission of an endpoint (allowed: an agent calls it without asking; ask first: you are asked before an agent calls it, when the agent or chat asks permission for sensitive actions; never: no agent may call it), which every user can change endpoint by endpoint in their credential settings.

Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.

Key, 6 operations

  • bulk_delete_keysBulk delete keysDELETEAgents: ask firstDeletes multiple keys in a single batch request.
  • bulk_write_keysBulk write keysPUTAgents: ask firstWrites multiple key-value pairs in a single batch request.
  • delete_keyDelete keyDELETEAgents: ask firstDeletes a key from a KV namespace.
  • get_keyGet keyGETAgents: ask firstReads the value of a key from a KV namespace.
  • list_keysList keysGETAgents: ask firstLists all keys in a KV namespace with optional filtering.
  • write_keyWrite keyPUTAgents: ask firstWrites a key-value pair to a KV namespace with optional expiration.

Namespace, 5 operations

  • create_namespaceCreate namespacePOSTAgents: ask firstCreates a new KV namespace for key-value storage.
  • delete_namespaceDelete namespaceDELETEAgents: ask firstPermanently deletes a KV namespace and all its data.
  • get_namespaceGet namespaceGETAgents: ask firstRetrieves details of a specific KV namespace.
  • list_namespacesList namespacesGETAgents: ask firstLists all KV namespaces in the Cloudflare account.
  • rename_namespaceRename namespacePUTAgents: ask firstRenames a KV namespace without affecting its data.

Bucket, 4 operations

  • create_bucketCreate bucketPOSTAgents: ask firstCreates a new R2 storage bucket with optional location hint.
  • delete_bucketDelete bucketDELETEAgents: ask firstDeletes an empty R2 storage bucket permanently.
  • get_bucketGet bucketGETAgents: ask firstRetrieves details of a specific R2 storage bucket.
  • list_bucketsList bucketsGETAgents: ask firstLists all R2 storage buckets in the Cloudflare account.

Database, 4 operations

  • create_databaseCreate databasePOSTAgents: ask firstCreates a new D1 SQLite database with optional location hint.
  • delete_databaseDelete databaseDELETEAgents: ask firstPermanently deletes a D1 database and all its data.
  • get_databaseGet databaseGETAgents: ask firstRetrieves details of a specific D1 database.
  • list_databasesList databasesGETAgents: ask firstLists all D1 SQLite databases in the Cloudflare account.

Dns record, 4 operations

  • create_dns_recordCreate dns recordPOSTAgents: ask firstCreates a new DNS record in a Cloudflare zone.
  • delete_dns_recordDelete dns recordDELETEAgents: ask firstDeletes a DNS record from a Cloudflare zone.
  • list_dns_recordsList dns recordsGETAgents: ask firstLists all DNS records for a Cloudflare zone with filtering options.
  • update_dns_recordUpdate dns recordPATCHAgents: ask firstUpdates an existing DNS record in a Cloudflare zone.

Firewall rule, 4 operations

  • create_firewall_ruleCreate firewall rulePOSTAgents: ask firstCreates a new firewall rule with custom expression to control traffic access.
  • delete_firewall_ruleDelete firewall ruleDELETEAgents: ask firstDeletes a firewall rule from the zone. The rule stops being enforced immediately.
  • list_firewall_rulesList firewall rulesGETAgents: ask firstLists all firewall rules configured for a Cloudflare zone.
  • update_firewall_ruleUpdate firewall rulePUTAgents: ask firstUpdates an existing firewall rule's expression, action, or configuration.

Worker, 4 operations

  • delete_workerDelete workerDELETEAgents: ask firstDeletes a Worker script from Cloudflare's edge network.
  • get_workerGet workerGETAgents: ask firstDownloads the source code of a specific Worker script.
  • list_workersList workersGETAgents: ask firstLists all Cloudflare Workers scripts in the account for edge computing.
  • upload_workerUpload workerPUTAgents: ask firstDeploys a new Worker script or updates an existing one at Cloudflare's edge.

Zone, 4 operations

  • create_zoneCreate zonePOSTAgents: ask firstCreates a new zone (domain) in your Cloudflare account for DNS and CDN management.
  • delete_zoneDelete zoneDELETEAgents: ask firstDeletes a zone from Cloudflare, removing all DNS records and configuration.
  • get_zoneGet zoneGETAgents: ask firstRetrieves detailed configuration for a specific Cloudflare zone.
  • list_zonesList zonesGETAgents: ask firstLists all zones (domains) in the Cloudflare account with filtering and pagination.

Bucket cors, 3 operations

  • delete_bucket_corsDelete bucket corsDELETEAgents: ask firstRemoves all CORS rules from an R2 bucket.
  • enable_bucket_corsEnable bucket corsPUTAgents: ask firstConfigures CORS rules for browser access to an R2 bucket.
  • get_bucket_corsGet bucket corsGETAgents: ask firstRetrieves CORS configuration for an R2 bucket.

Page rule, 3 operations

  • create_page_ruleCreate page rulePOSTAgents: ask firstCreates a page rule for URL-specific behaviors like redirects and caching.
  • delete_page_ruleDelete page ruleDELETEAgents: ask firstDeletes a page rule from the zone. URL-specific behaviors stop immediately.
  • list_page_rulesList page rulesGETAgents: ask firstLists all page rules for URL-based behavior configuration.

Worker route, 3 operations

  • create_worker_routeCreate worker routePOSTAgents: ask firstCreates a route to trigger a Worker for matching URL patterns.
  • delete_worker_routeDelete worker routeDELETEAgents: ask firstDeletes a Worker route from the zone.
  • list_worker_routesList worker routesGETAgents: ask firstLists all Worker routes configured for a zone.

Backup, 2 operations

  • list_database_backupsList database backupsGETAgents: ask firstRetrieves the current or nearest bookmark for D1 Time Travel recovery.
  • restore_database_backupRestore database backupPOSTAgents: ask firstRestores a D1 database to a previous point in time using Time Travel.

Query, 2 operations

  • query_databaseQuery databasePOSTAgents: ask firstExecutes SQL queries against a D1 database with optional parameters.
  • raw_queryRaw queryPOSTAgents: ask firstExecutes raw SQL with detailed execution statistics.

R2 token, 2 operations

  • create_r2_tokenCreate r2 tokenPOSTAgents: ask firstCreates S3-compatible API credentials for R2 access.
  • list_r2_tokensList r2 tokensGETAgents: ask firstLists all R2 API tokens in the account.

Worker setting, 2 operations

  • get_worker_settingsGet worker settingsGETAgents: ask firstRetrieves settings and bindings for a Worker script.
  • update_worker_settingsUpdate worker settingsPATCHAgents: ask firstUpdates settings and bindings for a Worker script.

Analytics, 1 operation

  • get_zone_analyticsGet zone analyticsGETAgents: ask firstRetrieves analytics dashboard data for a Cloudflare zone.

Bucket usage, 1 operation

  • get_bucket_usageGet bucket usageGETAgents: ask firstRetrieves storage usage statistics for an R2 bucket.

Cache, 1 operation

  • purge_cachePurge cachePOSTAgents: ask firstPurges cached content from Cloudflare's CDN edge servers.

Database export, 1 operation

  • export_databaseExport databasePOSTAgents: ask firstExports a D1 database to a SQL dump file for backup.

Database import, 1 operation

  • import_databaseImport databasePOSTAgents: ask firstImports SQL statements into a D1 database for migrations or restoration.

Ssl, 1 operation

  • get_ssl_settingsGet ssl settingsGETAgents: ask firstRetrieves SSL/TLS configuration for a zone including encryption mode and certificate status.

Worker analytics, 1 operation

  • get_worker_usageGet worker usageGETAgents: ask firstRetrieves aggregated usage analytics for Worker scripts.

Cloudflare API rate limits

1,200 requests per 5-minute window per user. See https://developers.cloudflare.com/fundamentals/api/reference/limits/

These are the limits Cloudflare documents, not ones LiveContext measured. They can change and often depend on your plan, so check the Cloudflare documentation for current values.

Use Cloudflare from Claude Code, Cursor or Codex

Connect Cloudflare in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its Cloudflare operations become tools the client can call, next to every other integration you connected.

Claude Code
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"
Codex (~/.codex/config.toml)
[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"

[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"
Cursor, Claude Desktop and other JSON configs
{
  "mcpServers": {
    "livecontext": {
      "type": "http",
      "url": "https://livecontext.ai/mcp",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Set up the MCP server step by step

How to connect Cloudflare

  1. Create your workspace

    Sign up free. Nothing to install.

  2. Connect Cloudflare once

    Add your Cloudflare connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.

  3. Describe the job in chat

    The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.

Cloudflare integration FAQ

What can you do with the Cloudflare integration?

LiveContext exposes 59 operations on Cloudflare, covering key, namespace, bucket and database. Common uses include Resource cleanup, Disaster recovery and Capacity planning.

What are the Cloudflare API rate limits?

1,200 requests per 5-minute window per user. See https://developers.cloudflare.com/fundamentals/api/reference/limits/ Limits are set by Cloudflare and can depend on your plan.

Popular integrations

Browse the whole catalog