Skip to content

Automations-Project/n8n-nodes-cloudflare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

54 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

n8n-nodes-cloudflare

CI n8n community node Cloudflare API n8n Nodes API PRs Welcome npm version npm downloads n8n Node version Node.js compatibility TypeScript License

GitHub stars GitHub forks GitHub issues Last commit

Banner

Comprehensive n8n community nodes for Cloudflare - manage your entire Cloudflare infrastructure from n8n workflows.

✨ Features

Category Services
Core Infrastructure DNS, Zones, Cache, SSL/TLS, Page Rules
Developer Platform Workers, Pages, D1, KV, R2, Queues, Durable Objects, Vectorize
Security Firewall, WAF, Bot Management, Rate Limits, Zero Trust, Access
Media Stream, Images, Calls
Analytics Radar, Logpush, RUM, DEX
Networking Load Balancer, Argo, Tunnels, Spectrum, Magic Transit

100+ Cloudflare API operations with dynamic dropdowns for accounts, zones, and resources.

πŸ“¦ Installation

n8n Community Nodes (Recommended)

  1. Go to Settings β†’ Community Nodes
  2. Click Install
  3. Enter: n8n-nodes-cloudflare
  4. Click Install

npm

npm install n8n-nodes-cloudflare

πŸ”‘ Credentials

Create Cloudflare API credentials in n8n:

  1. Go to Credentials β†’ New
  2. Search for Cloudflare API
  3. Enter your Cloudflare API Token or API Key + Email

Recommended: Use API Tokens with minimal required permissions.

πŸ“š Available Nodes

Primary Nodes

Node Description
Cloudflare DNS Manage DNS records, analytics, firewall, secondary DNS
Cloudflare Workers Deploy scripts, KV bindings, AI inference, dispatch namespaces
Cloudflare Zones Zone settings, cache, page rules, waiting rooms, snippets
Cloudflare Zero Trust Access apps, tunnels, devices, DEX, gateway rules
Cloudflare Security WAF rulesets, bot management, rate limits, page shield
Cloudflare SSL Certificates, mTLS, Origin CA, Total TLS

Additional Nodes

R2 Storage, D1 Database, Pages, Stream, Images, Queues, Load Balancer, Registrar, Email Routing, Logpush, Radar, and 50+ more specialized nodes.

πŸš€ Quick Start

Example: Get All DNS Records With filter (Only Proxied - AKA: CF Orange)

{
	"nodes": [
		{
			"parameters": {
				"zoneId": "2454f994f1057a933cf06857ea485578",
				"returnAll": true,
				"filters": {
					"proxied": true
				}
			},
			"type": "CUSTOM.cloudflareDns",
			"typeVersion": 1,
			"position": [208, 0],
			"id": "ba613500-5af9-4a88-8334-1230e875c060",
			"name": "Get many DNS records",
			"credentials": {
				"cloudflareApi": {
					"id": "46t5YxHZ7Xygke2Z",
					"name": "Cloudflare account"
				}
			}
		}
	],
	"connections": {}
}

πŸ”§ Dynamic Dropdowns

All nodes feature dynamic dropdowns that load data from your Cloudflare account:

  • Accounts - Select from your Cloudflare accounts
  • Zones - Choose domains from your account
  • Workers - Pick deployed worker scripts
  • R2 Buckets - Select storage buckets
  • KV Namespaces - Choose key-value stores
  • And more...

⚠️ Installation Notes

n8n requires that all installed nodes have unique internal names. If you have other community node packages installed that register a node with the same name as a node in this package, n8n may throw an installation error.

If you hit this, uninstall the conflicting package and restart n8n.

Example report: #2

πŸ€– RAG Workflows (Vector Search)

The Cloudflare Vectorize node includes a built-in RAG (Embed + Store) resource that combines Workers AI embeddings with Vectorize storage in a single operation:

  • Insert Documents: Text β†’ Embeddings β†’ Vector Storage
  • Search Documents: Query β†’ Embedding β†’ Similarity Search

πŸ“– See docs/RAG-WORKFLOW-GUIDE.md for complete workflow examples.

Note: Native LangChain cluster node integration (Document Loader, AI Agent tool connectors) requires n8n core support and is not available in community nodes. See the documentation for details and how to request this feature from n8n.

πŸ“‹ Requirements

  • n8n >= 1.0.0
  • Node.js >= 18.17.0
  • Cloudflare Account with API access

πŸ› οΈ Development

Testing

# Run all tests
npm test

# Watch mode
npm run test:watch

# Coverage report
npm run test:coverage

Test Structure:

  • nodes/shared/GenericFunctions.test.ts - Utility functions
  • credentials/CloudflareApi.credentials.test.ts - Credential validation
  • nodes/CloudflareDns/CloudflareDns.test.ts - Node structure template

Building

npm run build        # Build for production
npm run dev          # Watch mode for development
npm run lint         # Run ESLint
npm run format       # Format with Prettier

🀝 Contributing

Contributions welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Run tests: npm test
  4. Submit a Pull Request

See CONTRIBUTING.md for detailed guidelines.

πŸ› Issues

Found a bug? Open an issue

πŸ“„ License

MIT

πŸ‘€ Author

nskha - @automations-project

πŸ”— Links

About

The most comprehensive Cloudflare integration for n8n. Manage over 100+ Cloudflare services including Workers, R2, D1, DNS, Zero Trust, and AI with dynamic resources and intelligent dropdowns.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors