Skip to content
API Reference
Cloudflare logo

Cloudflare

Infrastructure

Cloud platform for networking, security, and developer tools

Access Cloudflare’s full suite of cloud services via AI. Manage DNS zones, Workers scripts, security configurations, analytics, and account resources. The Cloudflare MCP ecosystem includes specialized sub-servers for documentation, observability, Radar insights, browser rendering, AI Gateway, and more.

Add Cloudflare to your zone and connect it to your MCP client.

  1. In your zone’s Keycard Console, go to Applications -> Add Application -> Explore MCP Servers.

  2. Search for Cloudflare and click Install.

  3. A browser tab opens to Cloudflare’s OAuth consent screen. Sign in and approve the requested permissions.

  4. You’re redirected back. Cloudflare appears on the Applications page with a Keycard MCP Gateway URL.

On the Applications page, click Add to Coding Agent next to Cloudflare and pick how you want to install:

  • Cursor - opens a deeplink that hands the MCP config straight to Cursor. Click Install inside Cursor to finish.
  • Claude Code - opens a dialog with a claude mcp add command. Pick a scope (User, Project, or Local), then copy and run the command in your terminal.
  • Install manually - reveals the Server Name and Server URL to paste into any other MCP-compatible client.

Once connected, Cloudflare’s tools are available to the agent, scoped to whoever signs in to your zone.

What Cloudflare can do once installed.

Cloudflare provides 2 tools:

Search across content in the workspace
Search the Cloudflare OpenAPI spec.
execute
Run JavaScript code against the Cloudflare API

What to do once Cloudflare is installed.

Now do this

  • Confirm the gateway works by asking your AI client to call one of the Cloudflare tools above.

Recommended

  • Decide who can use it - write access policies scoped to the Cloudflare resource so only the right users and agents reach the tools.
  • Watch the calls - every tool call lands in your audit log with user identity, resource, and policy decision.