Skip to content
← All MCP servers

Is the Cloudflare MCP server safe? What it can reach

What the Cloudflare MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.

Official serverChecked

Cloudflare maintains this remote server at mcp.cloudflare.com. You sign in with OAuth or an API token, and it exposes four tools. The execute tool runs JavaScript that calls any Cloudflare API your token allows, so the token’s permissions are the real limit. Grant only the scopes you need.

Who maintains it

ImplementationKindStatus
cloudflare/mcp, Cloudflare API MCP Server (Cloudflare’s official server)Officialactive
cloudflare/mcp-server-cloudflare (per-product servers)Officialactive

It runs as a hosted remote server. The documented endpoint is https://mcp.cloudflare.com/mcp.

How it signs in

OAuth is recommended: you approve permissions on Cloudflare’s consent screen. An API token (user or account) also works for CI. The server acts with whatever that credential can do.

What its tools can do

KindTools
Readdocs, search, whoami
Writenone documented
Can’t be undoneexecute

Default code mode exposes four tools. execute can call any API endpoint the credential allows, including deletes and deploys, so it is listed as destructive. With ?codemode=false each API endpoint becomes its own tool instead. The older per-product servers in the original repo are mostly deprecated in favor of this one.

Built-in limits

OptionWhat it does
Token scopesCreate an API token with only the permissions the task needs. Tokens with Client IP Address Filtering are not supported.
Scope challengeA call that lacks a scope returns 403 insufficient_scope and asks the client to re-authorize with the missing scope.
Isolated executionsearch and execute run in isolated Workers, and each result is capped at about 6,000 tokens.

The risks

  • execute is a general API client: an injected instruction could delete zones, DNS records or Workers, or change firewall rules, to the extent your credential allows.
  • Docs, blog or fetched page content that the model reads can carry instructions that end up as execute calls.
  • OAuth lets you pick permissions at consent, but a broad grant carries account-wide reach, and the server does not add a read-only switch of its own.
  • The original mcp-server-cloudflare repo lists ten deprecated servers; connecting to them instead of the new one means separate tokens and older behavior.

Limit it in Claude Code

Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:

claude mcp add --transport http cloudflare https://mcp.cloudflare.com/mcp

Claude Code names MCP tools mcp__cloudflare__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:

{
  "permissions": {
    "ask": [
      "mcp__cloudflare__execute"
    ]
  }
}

Limit it in Codex

Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:

[mcp_servers.cloudflare]
url = "https://mcp.cloudflare.com/mcp"

Checklist

  • Use a scoped API token or choose minimal permissions at OAuth consent.
  • Start with read permissions and add write scopes only when needed.
  • Require approval for the execute tool.
  • Use an account token, not a user token, for CI.

Checked against the vendor documentation on November 25, 2026. cloudflare/mcp README · cloudflare/mcp-server-cloudflare README

What Excellent covers

Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing