Developer Tools

Cloudflare Security MCP Server

Connect your account, then chat with AI to run tools.

Configure bot protection, firewall rules, and security settings. Enable Bot Fight Mode, create custom firewall rules, block malicious traffic.

6 tools
Agent guide included
Start Chatting

Opens MCPBundles Studio with this server selected. After sign-in, chat and run tools from the same thread.

Browse all tools

AI Skill
SKILL.md

Domain knowledge for Cloudflare Security — workflow patterns, data models, and gotchas for your AI agent.

Cloudflare Security

Bot mitigation and firewall rule management for Cloudflare zones. All operations require a zone_id — list zones first to obtain it.

Capability areas

Bot management
  • Read bot config — inspect current Bot Fight Mode status and Super Bot Fight Mode thresholds (definitely automated, likely automated, verified bots).
  • Toggle Bot Fight Mode — enable or disable automatic JavaScript challenges for traffic from known bot signatures. Safe to toggle; takes effect within seconds.
Firewall rules
  • List rules — view all active firewall rules with their expressions, actions, priority, and paused state.
  • Create/update rules — author rules using Cloudflare's filter expression syntax (e.g., (ip.src eq 192.0.2.1), (http.request.uri.path contains "/admin")). Actions: simulate (log only), ban (block), challenge (CAPTCHA), js_challenge, managed_challenge.
  • Delete rules — permanently remove a firewall rule by ID.

Workflows

  • Security audit: list zones → pick zone → review bot management settings → list firewall rules to understand current posture.
  • Block an IP: list zones → create a firewall rule with (ip.src eq <IP>) and action ban.
  • Bot protection rollout: list zones → enable Bot Fight Mode → create firewall rules for additional URL-path-based protection on sensitive endpoints.
  • Rule cleanup: list firewall rules → identify stale or simulate-only rules → delete or update to active actions.

Gotchas

  • zone_id required: every security operation is zone-scoped. Always start by listing zones.
  • Firewall rule creation does not return a rule_id: after creating a rule, list rules to find the newly created entry.
  • Rule evaluation order: firewall rules are evaluated in priority order. Place critical blocks ahead of permissive catch-alls.
  • Expression syntax: expressions must be wrapped in parentheses and use Cloudflare's expression language — not regex. Fields: ip.src, http.request.uri.path, http.host, http.request.method, etc.
  • Bot Fight Mode scope: only challenges traffic from known bot networks. For custom bot logic, use firewall rules instead.

Tools in this Server (6)

Cloudflare Delete Firewall Rule

Delete a firewall rule. CAUTION: This removes the rule immediately.

Cloudflare Get Bot Management

Get bot management and Bot Fight Mode settings for a zone. Shows whether bot protection is enabled and configuration details.

Cloudflare List Firewall Rules

List all firewall rules for a zone. Shows rule expressions, actions, and priority.

Cloudflare List Zones

List all zones (domains) in your Cloudflare account. Returns zone IDs needed for DNS, security, and cache operations.

Cloudflare Set Bot Fight Mode

Enable or disable Bot Fight Mode. When enabled, Cloudflare challenges traffic from known bots with JavaScript challenges.

Cloudflare Upsert Firewall Rule

Create or update a firewall rule. For create: provide expression and action. For update: provide rule_id and fields to change.

Frequently Asked Questions

What is the Cloudflare Security MCP server?

Configure bot protection, firewall rules, and security settings. Enable Bot Fight Mode, create custom firewall rules, block malicious traffic. It provides 6 tools that AI agents can use through the Model Context Protocol (MCP).

How do I connect Cloudflare Security to my AI agent?

Add the MCPBundles server URL to your MCP client configuration (Claude Desktop, Cursor, VS Code, etc.). The URL format is: https://mcp.mcpbundles.com/bundle/cloudflare-security. Authentication is handled automatically.

How many tools does Cloudflare Security provide?

Cloudflare Security provides 6 tools that can be called by AI agents, along with a SKILL.md that gives your AI agent domain knowledge about when and how to use them.

What authentication does Cloudflare Security require?

Cloudflare Security uses API Key. Cloudflare requires credentials. Connect via MCPBundles and authentication is handled automatically.

Setup Instructions

Connect Cloudflare Security to any MCP client in minutes

https://mcp.mcpbundles.com/bundle/cloudflare-security

What is MCP?

Model Context Protocol lets AI tools call external capabilities securely through a single URL. This bundle groups tools behind an MCP endpoint that many clients can use.

Use this bundle in 3 steps

  1. Copy the MCP URL above
  2. Open your AI tool and add a new MCP/connector
  3. Paste the URL and follow any auth prompts

Claude Desktop Users

Skip the manual setup! Use the .mcpb file format for one-click installation. Check the Claude Desktop tab for setup instructions.

Pick your tool tab for exact steps

Select ChatGPT, Cursor, Claude Code, or another tab for copy-paste config.

Ready to use Cloudflare Security?

Sign in to connect your credentials and start running tools from the chat.

Cloudflare Security MCP Server & Skill — 6 Tools