Atlas / MCP servers / cloudflare / Cloudflare

CloudflareBLOCK

mcp/cloudflare/cloudflare-10

MCP server for the Cloudflare API

Verdict
BLOCK
Grade
D
Trust score
65 /100
Exposed tools
4 3r · 1w · 0d
Transport
streamable-http
License
Apache-2.0
Stars
891
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

A token-efficient MCP server for the entire Cloudflare API. 2500 endpoints in 1k tokens, powered by Code Mode.

Token Comparison

Get Started

MCP URL: https://mcp.cloudflare.com/mcp

Option 1: OAuth (Recommended)

Just connect to the MCP server URL - you'll be redirected to Cloudflare to authorize and select permissions.

Example JSON Configuration

{
"mcpServers": {
"cloudflare-api": {
"type": "http",
"url": "https://mcp.cloudflare.com/mcp"
}
}
}

Option 2: API Token

For CI/CD, automation, or if you prefer managing tokens yourself.

Create a Cloudflare API token with the permissions you need. Both user tokens and account tokens are supported. For account tokens, include the Account Resources : Read permission so the server can auto-detect your account ID.

Note: API tokens with Client IP Address Filtering enabled are not currently supported.

Add to Agent

Read from source at commit c69372cfd36fOBSERVED · 2026-09-28
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.

claude-code
claude mcp add cloudflare-mcp -- npx -y [email protected]
claude-desktop
{
  "mcpServers": {
    "cloudflare-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ]
    }
  }
}
03

Exposed tools (4)

3 read · 1 write · 0 destructive.

ToolRiskDescription
docsread
executewrite
get_userreadGET /user\n\nGet current user
searchread
04

Trust audit

BLOCKgrade D · trust 65/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeFAIL
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfaceWARN
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
none-observed
Network
declared (5 observation(s))
Shell
declared (3 observation(s))
Dependencies
not all pinned
Secrets in source
found

Findings (19)

HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
worker-configuration.d.ts:3090
exec(input?: (string | URLPatternInit), baseURL?: string): URLPatternResult | null;
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
worker-configuration.d.ts:12021
exec(query: string): Promise<D1ExecResult>;
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
MEDIUMHard-coded secrets · secret.generic · CWE-798, CWE-321
tests/auth/api-token-mode.test.ts:218
const token = 'cfut_invalid-cache-token'
MEDIUMAuth / authz · mcp.remote_no_auth · CWE-287, CWE-862
streamable-http
Why it matters. a network transport with no auth environment variable found
Fix. require a token
LOWInventory / provenance · inv.hidden_file · CWE-1104
.env_example
.env_example
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
.oxfmtrc.json
.oxfmtrc.json
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
tests/auth/account-access.test.ts:9
} from '../../src/auth/account-access'
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
tests/auth/account-access.test.ts:10
import { AUTH_PROPS_VERSION, LEGACY_ACCOUNTS_PAGE_SIZE, type AuthProps } from '../../src/auth/types'
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
tests/auth/api-token-mode.test.ts:9
} from '../../src/auth/api-token-mode'
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
tests/auth/api-token-mode.test.ts:10
import { AUTH_PROPS_VERSION } from '../../src/auth/types'
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
tests/auth/api-token-mode.test.ts:16
vi.mock('../../src/utils/fetch-retry', async (importOriginal) => {
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
tests/auth/approval-dialog.test.ts:95
'http://127.0.0.1:3210/callback',
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
tests/auth/approval-dialog.test.ts:96
'http://127.255.255.255:3210/callback',
LOWObfuscation / stealth · obf.decode_call · CWE-506, CWE-94
src/auth/workers-oauth-utils.ts:23
const binary = atob(value)
LOWObfuscation / stealth · obf.decode_call · CWE-506, CWE-94
src/auth/workers-oauth-utils.ts:35
const legacy = LegacyOAuthState.safeParse(JSON.parse(atob(state)))
LOWObfuscation / stealth · obf.decode_call · CWE-506, CWE-94
tests/auth/oauth-routes.test.ts:515
decodedAsJson = JSON.parse(atob(cfState))
LOWObfuscation / stealth · obf.decode_call · CWE-506, CWE-94
worker-configuration.d.ts:342
atob(data: string): string;
LOWObfuscation / stealth · obf.decode_call · CWE-506, CWE-94
worker-configuration.d.ts:430
declare function atob(data: string): string;
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
hono, zod, @cloudflare/vitest-pool-workers, @types/node, msw, oxfmt, oxlint, tsx
Why it matters. 11 dependency range(s) float
Fix. pin exact versions or ship a lockfile

Gates applied: no_behavioural_pass.

Audited 2026-09-28 · audit v0.4.1 · source sha c69372cfd36ffull audit observations/trust-audit/mcp-server/cloudflare__cloudflare-10.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-09-28c69372cfd36fBLOCKD65first audit
06

Questions

What is the Cloudflare MCP server?

MCP server for the Cloudflare API

What tools does Cloudflare expose?

4 in total: 3 read-only, 1 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is Cloudflare safe to connect to an agent?

No — not without reading the findings first. The audit graded it D (65/100) and found 2 critical or high issues in the source. Each one is listed on this page with the file and line it is on.

What credentials does Cloudflare need?

No credential environment variables were found in its source, so it appears to need none.

How does Cloudflare run?

It speaks streamable-http, so it runs as a service you connect to over the network. It is published on npm as cloudflare-mcp at 0.1.0.

How current is this page?

The grade is for one exact copy of the source (c69372cfd36f), read on 2026-09-28. The repository is watched and re-audited when it changes.

Advertisement