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.

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 keysDELETEDeletes multiple keys in a single batch request.
  • bulk_write_keysBulk write keysPUTWrites multiple key-value pairs in a single batch request.
  • delete_keyDelete keyDELETEDeletes a key from a KV namespace.
  • get_keyGet keyGETReads the value of a key from a KV namespace.
  • list_keysList keysGETLists all keys in a KV namespace with optional filtering.
  • write_keyWrite keyPUTWrites a key-value pair to a KV namespace with optional expiration.

Namespace, 5 operations

  • create_namespaceCreate namespacePOSTCreates a new KV namespace for key-value storage.
  • delete_namespaceDelete namespaceDELETEPermanently deletes a KV namespace and all its data.
  • get_namespaceGet namespaceGETRetrieves details of a specific KV namespace.
  • list_namespacesList namespacesGETLists all KV namespaces in the Cloudflare account.
  • rename_namespaceRename namespacePUTRenames a KV namespace without affecting its data.

Bucket, 4 operations

  • create_bucketCreate bucketPOSTCreates a new R2 storage bucket with optional location hint.
  • delete_bucketDelete bucketDELETEDeletes an empty R2 storage bucket permanently.
  • get_bucketGet bucketGETRetrieves details of a specific R2 storage bucket.
  • list_bucketsList bucketsGETLists all R2 storage buckets in the Cloudflare account.

Database, 4 operations

  • create_databaseCreate databasePOSTCreates a new D1 SQLite database with optional location hint.
  • delete_databaseDelete databaseDELETEPermanently deletes a D1 database and all its data.
  • get_databaseGet databaseGETRetrieves details of a specific D1 database.
  • list_databasesList databasesGETLists all D1 SQLite databases in the Cloudflare account.

Dns record, 4 operations

  • create_dns_recordCreate dns recordPOSTCreates a new DNS record in a Cloudflare zone.
  • delete_dns_recordDelete dns recordDELETEDeletes a DNS record from a Cloudflare zone.
  • list_dns_recordsList dns recordsGETLists all DNS records for a Cloudflare zone with filtering options.
  • update_dns_recordUpdate dns recordPATCHUpdates an existing DNS record in a Cloudflare zone.

Firewall rule, 4 operations

  • create_firewall_ruleCreate firewall rulePOSTCreates a new firewall rule with custom expression to control traffic access.
  • delete_firewall_ruleDelete firewall ruleDELETEDeletes a firewall rule from the zone. The rule stops being enforced immediately.
  • list_firewall_rulesList firewall rulesGETLists all firewall rules configured for a Cloudflare zone.
  • update_firewall_ruleUpdate firewall rulePUTUpdates an existing firewall rule's expression, action, or configuration.

Worker, 4 operations

  • delete_workerDelete workerDELETEDeletes a Worker script from Cloudflare's edge network.
  • get_workerGet workerGETDownloads the source code of a specific Worker script.
  • list_workersList workersGETLists all Cloudflare Workers scripts in the account for edge computing.
  • upload_workerUpload workerPUTDeploys a new Worker script or updates an existing one at Cloudflare's edge.

Zone, 4 operations

  • create_zoneCreate zonePOSTCreates a new zone (domain) in your Cloudflare account for DNS and CDN management.
  • delete_zoneDelete zoneDELETEDeletes a zone from Cloudflare, removing all DNS records and configuration.
  • get_zoneGet zoneGETRetrieves detailed configuration for a specific Cloudflare zone.
  • list_zonesList zonesGETLists all zones (domains) in the Cloudflare account with filtering and pagination.

Bucket cors, 3 operations

  • delete_bucket_corsDelete bucket corsDELETERemoves all CORS rules from an R2 bucket.
  • enable_bucket_corsEnable bucket corsPUTConfigures CORS rules for browser access to an R2 bucket.
  • get_bucket_corsGet bucket corsGETRetrieves CORS configuration for an R2 bucket.

Page rule, 3 operations

  • create_page_ruleCreate page rulePOSTCreates a page rule for URL-specific behaviors like redirects and caching.
  • delete_page_ruleDelete page ruleDELETEDeletes a page rule from the zone. URL-specific behaviors stop immediately.
  • list_page_rulesList page rulesGETLists all page rules for URL-based behavior configuration.

Worker route, 3 operations

  • create_worker_routeCreate worker routePOSTCreates a route to trigger a Worker for matching URL patterns.
  • delete_worker_routeDelete worker routeDELETEDeletes a Worker route from the zone.
  • list_worker_routesList worker routesGETLists all Worker routes configured for a zone.

Backup, 2 operations

  • list_database_backupsList database backupsGETRetrieves the current or nearest bookmark for D1 Time Travel recovery.
  • restore_database_backupRestore database backupPOSTRestores a D1 database to a previous point in time using Time Travel.

Query, 2 operations

  • query_databaseQuery databasePOSTExecutes SQL queries against a D1 database with optional parameters.
  • raw_queryRaw queryPOSTExecutes raw SQL with detailed execution statistics.

R2 token, 2 operations

  • create_r2_tokenCreate r2 tokenPOSTCreates S3-compatible API credentials for R2 access.
  • list_r2_tokensList r2 tokensGETLists all R2 API tokens in the account.

Worker setting, 2 operations

  • get_worker_settingsGet worker settingsGETRetrieves settings and bindings for a Worker script.
  • update_worker_settingsUpdate worker settingsPATCHUpdates settings and bindings for a Worker script.

Analytics, 1 operation

  • get_zone_analyticsGet zone analyticsGETRetrieves analytics dashboard data for a Cloudflare zone.

Bucket usage, 1 operation

  • get_bucket_usageGet bucket usageGETRetrieves storage usage statistics for an R2 bucket.

Cache, 1 operation

  • purge_cachePurge cachePOSTPurges cached content from Cloudflare's CDN edge servers.

Database export, 1 operation

  • export_databaseExport databasePOSTExports a D1 database to a SQL dump file for backup.

Database import, 1 operation

  • import_databaseImport databasePOSTImports SQL statements into a D1 database for migrations or restoration.

Ssl, 1 operation

  • get_ssl_settingsGet ssl settingsGETRetrieves SSL/TLS configuration for a zone including encryption mode and certificate status.

Worker analytics, 1 operation

  • get_worker_usageGet worker usageGETRetrieves 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