---
title: "Cloudflare API MCP: review, setup & limitations · Undominated.ai"
canonical: https://undominated.ai/mcp-servers/cloudflare-code/
description: "Lets an assistant discover Cloudflare API endpoints and execute API calls through code, within the granted Cloudflare permissions."
---

# Cloudflare API MCP: review, setup & limitations · Undominated.ai

> Lets an assistant discover Cloudflare API endpoints and execute API calls through code, within the granted Cloudflare permissions.

[← Explore all mcp servers](/mcp-servers/)

CLOUD OPERATIONS / Cloudflare

# Cloudflare API MCP

Lets an assistant discover Cloudflare API endpoints and execute API calls through code, within the granted Cloudflare permissions.

 [See setup guidance ↓](#setup)[Original source ↗](https://github.com/cloudflare/mcp)

SOURCE REVIEW

 Reviewed 2026-10-13
 Evidence 5 linked sources
 Publisher Cloudflare
 Licence [Apache-2.0 ↗](https://github.com/cloudflare/mcp/blob/e85737947299bbb9b5858fc9ae6bc6d1e6f9a3ba/LICENSE)
 Revision e85737947299
 [Read what was—and wasn’t—checked ↓](#review)

“MCP server for the entire Cloudflare API using codemode”

 [Cloudflare · upstream description ↗](https://github.com/cloudflare/mcp/blob/e85737947299bbb9b5858fc9ae6bc6d1e6f9a3ba/package.json) Our analysis follows below.

01 / THE REASONING

## Why this made the selection.

 - API discovery and execution share one source-backed workflow, including documentation lookup.
- OAuth and API-token paths allow interactive and automated deployments with explicit Cloudflare grants.

### A good fit for

 - Carrying out a reviewed sequence of Cloudflare account operations from an MCP client.
- Searching Cloudflare developer documentation and the Cloudflare API spec before writing integration code.

### Weigh up before choosing

 - The execute tool can change Cloudflare resources; this is a broad account-control surface.
- Claims about token savings are upstream claims and were not benchmarked in this review.
- Each tool result is capped by default. The README says ?truncateToolResult=false removes the cap and a broad query can then return megabytes.

02 / THE REVIEW RECORD

## What we actually inspected.

Source review has boundaries. A clear record is more useful than a “safe” badge.

### Material inspected

 - README.md (installation, tools, code-mode, truncation and skills sections)
- package.json
- src/index.ts
- LICENSE
- src/mcp-handler.ts

### Our findings

 - The entrypoint wraps the MCP handler in an OAuth provider and also supports externally supplied Cloudflare credentials.
- The documented execute tool runs JavaScript that calls cloudflare.request; account/token rights are the relevant authority boundary.
- The README at this commit lists four tools: docs, search, execute and whoami. With ?codemode=false the server instead registers one tool per API endpoint that makes direct API calls; docs and whoami remain.
- The README says generated code runs in isolated Workers through Cloudflare’s Dynamic Worker Loader API, so execute runs on Cloudflare’s side, not on the client machine.
- src/index.ts configures an OAuth provider with authorize, token and client-registration endpoints, and delegates directly supplied Cloudflare API tokens to resolveExternalToken. A comment there says the consent page offers further scopes read-only by default.
- The README says the server also serves Cloudflare skills through the MCP Skills extension, synced from GitHub.

### Not established by this review

 - Server startup, authentication and tool execution were not tested.

The review applies to the material and revision named here. A newer upstream release can change its behavior.

03 / PUT IT TO WORK

## Connect a server deliberately.

[Upstream setup instructions ↗](https://github.com/cloudflare/mcp/blob/e85737947299bbb9b5858fc9ae6bc6d1e6f9a3ba/README.md)
 - Add the documented remote configuration and complete Cloudflare OAuth.
- Select only the necessary account permissions; use the API-token path only with a suitably scoped token.

### Before you start

 - A Cloudflare account and a remote-capable MCP client.

### Documented configuration example

Use the client and authentication context described in the setup guidance. Configuration formats vary between hosts.

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

### Compatibility

An MCP client supporting Streamable HTTP. · A Cloudflare account and a remote-capable MCP client. · Configuration example follows the official mcpServers form; use your client’s remote-server schema.

### Implementation

TypeScript

### Transports

Streamable HTTP

### Cloud operations / Remote service

 - Searches Cloudflare documentation/API schemas.
- Executes API requests that can create, modify or delete permitted Cloudflare resources.
- Authenticates by Cloudflare OAuth, where the user selects permissions on Cloudflare’s consent page, or by a Cloudflare user or account API token sent as a Bearer token.
- whoami returns the id and email of the authenticated user, or the id and name of the account token.

### Cost model

Cloudflare account services and resources created or used through API calls determine cost.

04 / FOLLOW THE EVIDENCE

## The source trail.

Our notes are separate from the original resource. Check upstream before adopting a new version.

 - [Official documentation ↗](https://github.com/cloudflare/mcp/blob/e85737947299bbb9b5858fc9ae6bc6d1e6f9a3ba/README.md) Checked 2026-10-13 https://github.com/cloudflare/mcp/blob/e85737947299bbb9b5858fc9ae6bc6d1e6f9a3ba/README.md Supports: summary, whySelected, bestFor, limitations, install, access, compatibility, transports, configExample, Tool list: docs, search, execute, whoami, OAuth and API-token authentication, Result truncation cap, Skills extension
- [Applicable source licence ↗](https://github.com/cloudflare/mcp/blob/e85737947299bbb9b5858fc9ae6bc6d1e6f9a3ba/LICENSE) Checked 2026-10-13 https://github.com/cloudflare/mcp/blob/e85737947299bbb9b5858fc9ae6bc6d1e6f9a3ba/LICENSE Supports: license
- [Implementation: package.json ↗](https://github.com/cloudflare/mcp/blob/e85737947299bbb9b5858fc9ae6bc6d1e6f9a3ba/package.json) Checked 2026-10-13 https://github.com/cloudflare/mcp/blob/e85737947299bbb9b5858fc9ae6bc6d1e6f9a3ba/package.json Supports: language, review
- [Implementation: src/index.ts ↗](https://github.com/cloudflare/mcp/blob/e85737947299bbb9b5858fc9ae6bc6d1e6f9a3ba/src/index.ts) Checked 2026-10-13 https://github.com/cloudflare/mcp/blob/e85737947299bbb9b5858fc9ae6bc6d1e6f9a3ba/src/index.ts Supports: language, review, OAuth provider and resolveExternalToken, Consent scopes read-only by default (code comment)
- [Implementation: src/mcp-handler.ts ↗](https://github.com/cloudflare/mcp/blob/e85737947299bbb9b5858fc9ae6bc6d1e6f9a3ba/src/mcp-handler.ts) Checked 2026-10-13 https://github.com/cloudflare/mcp/blob/e85737947299bbb9b5858fc9ae6bc6d1e6f9a3ba/src/mcp-handler.ts Supports: review, transports

KEEP COMPARING

## Other approaches to consider.

Related by category or shared topics. These are alternatives to inspect, not a measured quality order.

 [### Azure MCP Server ↗ Brings Azure service tools into one MCP server, with namespace selection and a read-only option for scoped use.](/mcp-servers/azure/)[### Aiven MCP Server ↗ Manages Aiven PostgreSQL, Kafka, applications and other services from an MCP client, through Aiven's hosted OAuth endpoint or a local npx package, with read-only, scope and secret-exposure switches.](/mcp-servers/aiven/)[### AWS Billing and Cost Management MCP Server ↗ Reads realised AWS billing and cost-management data, which is a different number from the advertised unit price.](/mcp-servers/awslabs-aws-billing-cost-management/)

 [AI Tools ↗](/tools/)[Skills ↗](/skills/)[Agents ↗](/agents/)[MCP Servers ↗](/mcp-servers/)[Workflows ↗](/workflows/)

## Continue your investigation

 - [Inspect resource evidence](/tools/)
- [Choose a host](/agents/)
- [Inspect reusable workflows](/skills/)
- [Use Undominated data](/api/)
