brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Cloudflare plugin for Claude Code: 22 skills and one big MCP server

Cloudflare plugin for Claude Code: 22 skills and one big MCP server

Cloudflare’s plugin gives a coding agent two things: written guidance for building on Cloudflare, and a connection to a server that can call the Cloudflare API. The platform changes fast. There are new products, a new command line tool in beta and renamed services, and a model trained last year will confidently suggest the old way. The plugin’s answer is to keep its own text short and make the agent fetch the current documentation.

How it was tested: the plugin was installed with claude plugin install into a clean, throwaway configuration. The component list and token estimate come from the CLI. The installed files were read, together with Cloudflare’s documentation, the two GitHub repositories and public sources. It was not run in a model session, no Cloudflare account was connected and no API key was used. There is no verdict here on the quality of what an agent produces with it.

Short verdict

For people who build Workers, this is a cheap and carefully written plugin. About 1,363 tokens per session buys 22 skills and access to the whole API through one server, with no hooks running on their own. The care needed is on the account side: the MCP connection and your CLI login can change DNS, tunnels, firewall rules and deployed code. Selfhosters who only use Cloudflare for a domain and a tunnel will find a small part of it relevant.

FactValue
Version installed1.0.4
Unique installs20,554 in the plugin catalog snapshot of 28 August 2026
Components (CLI)22 skills, 0 agents, 0 hooks, 1 MCP server
Always-on contextAbout 1,363 tokens (CLI estimate)
PricePlugin is free; account actions need a Cloudflare account
LicenseApache-2.0
PublisherCloudflare
claude plugin install cloudflare@claude-plugins-official

Inside a session:

/plugin install cloudflare@claude-plugins-official

Cloudflare’s own setup page for Claude Code uses its own marketplace: /plugin marketplace add cloudflare/skills, then /plugin install cloudflare@cloudflare. The two routes can point at different commits, because the official marketplace pins one.

Cloudflare documentation page titled Claude Code and Cloudflare
Cloudflare setup instructions for Claude Code.

Who makes it

The source is cloudflare/skills, published by Cloudflare under Apache-2.0. On 28 November 2026 it had about 3,500 stars and 370 forks. The repository has no tagged releases, so the version number in the manifest and the commit history are what you have to go on. A commit on 24 November added skills for Flagship and Artifacts, which the installed copy did not contain.

The contribution guide is a good signal of intent. It asks authors to keep skills small, to link to documentation in place of copying limits, pricing or API signatures, and to check each claim against the docs.

GitHub repository page of cloudflare/skills
The upstream skills repository on 28 November 2026.

What gets installed

The folder is about 1.3 MB, nearly all Markdown. There are no hooks and no background processes. The CLI sees this:

Terminal output of claude plugin details for the Cloudflare plugin
Real CLI output: component inventory and projected token cost.

The 22 skills fall into a few groups.

AreaSkills
Finding the right productcloudflare
Workers developmentworkers-best-practices, workers-development, workers-profiling, durable-objects, cloudflare-app-bootstrap, frameworks-on-cloudflare, nextjs-on-cloudflare
Command linewrangler, cf-cli
Agents and sandboxesagents-sdk, sandbox-next, sandbox-stable, sandbox-migrate-to-next
Data and mailbasin, k2, cloudflare-email-service
Zero Trustcloudflare-one, cloudflare-one-migrations, gateway-workers
Otherturnstile-spin, web-perf

Executable code is limited to four shell scripts in the Turnstile skill. The rest is text for the model. There is also a rules file aimed at editors that use .mdc rules.

Terminal output showing the MCP configuration, the skill folders and the Turnstile scripts
From the installed files: one MCP server, 22 skills, four scripts.

If you read older descriptions of this plugin, be aware that it has changed shape. The August 2026 catalog snapshot described version 1.0.0 with two commands and five MCP servers. Version 1.0.4 has no commands and exactly one server. The README says this is intentional. Cloudflare’s setup page, last modified 26 October, still describes additional servers for documentation, the blog, browser rendering and containers; those are not in the installed .mcp.json.

How it works

The agent sees the names and descriptions of the skills and loads one when your request matches. Most skills then tell it to retrieve current documentation from developers.cloudflare.com, using Markdown versions of the pages. The workers-best-practices skill puts it as “Prefer retrieval over pre-training” and the others follow the same idea. The consequence is practical: in an environment where the agent cannot fetch web pages, much of the value is gone.

Diagram of the three routes the plugin gives an agent: skills, MCP server and CLI
Where the plugin reads and where it can write.

There is a choice of command line tool built in. Projects with a Wrangler configuration file stay on Wrangler. New projects are steered to cf, Cloudflare’s newer CLI, which the skill describes as beta and which needs Node.js 22.18 or later. The cf-cli skill even suggests adding a line to your user-level instruction file so agents prefer cf. Decide that yourself, since it affects every project.

The Next.js skill takes a position too. It recommends vinext, Cloudflare’s reimplementation of the Next.js API on Vite, for new projects on Workers, and tells the agent to install further skills with npx skills add cloudflare/vinext if they are missing. That fetches more instructions from the network during a session. They come from the same company, but they are not part of what you reviewed at install time.

The MCP server and Code Mode

The one server is https://mcp.cloudflare.com/mcp. Exposing every API endpoint as its own tool would swamp any context window, so Cloudflare uses what it calls Code Mode. The agent gets a handful of tools, writes small pieces of JavaScript, and the server runs them: search to find endpoints in the API description, execute to call them, docs to search documentation, and whoami to report the connected identity.

Code Mode: one request, step by step1. Agent writes codea small JavaScript function2. search()filters the API spec server side3. execute()calls the Cloudflare API4. Result returnscapped at about 6,000 tokensThe sandbox runs the code; the OAuth scopes you grantdecide what execute() is allowed to touch
How the bundled MCP server works, based on the cloudflare/mcp README. Illustration, not a recording.

Cloudflare’s announcement from February puts the cost of this at about 1,000 tokens for more than 2,500 endpoints, against about 1.17 million for a classic server with full schemas. Those are the vendor’s figures and were not reproduced here. The blog describes two tools, the documentation lists three and the server README lists four, which reflects how recently it has grown.

According to the README, each search or execute result is capped at about 6,000 tokens and cuts are marked. That protects your context, and it also means a long list of DNS records or log lines can arrive incomplete, so ask the agent to say when it saw a truncation marker. A query parameter turns Code Mode off and registers roughly 3,000 individual tools, which is something to avoid unless you have a specific reason.

Cloudflare documentation page about its own MCP servers
Cloudflare documentation for its MCP servers.

What it costs in tokens

The CLI estimate is about 1,363 tokens added to every session. The longest descriptions are the main cloudflare skill (about 120) and nextjs-on-cloudflare (about 110).

When a skill fires you pay for its text:

SkillEstimated tokens when invoked
cloudflareabout 7,900
turnstile-spinabout 7,200
cloudflare-oneabout 6,500
cloudflare-one-migrationsabout 3,100
agents-sdkabout 3,000

Two things come on top. Documentation pages that the agent fetches are not in these numbers and are likely to be the larger share in a real task. MCP tool definitions are resolved at runtime, so the CLI does not count them.

What it costs in money

The plugin is free. Cloudflare’s platform has a free tier and usage-based paid plans. On the Workers pricing page, checked on 28 November 2026, the free plan includes 100,000 requests per day with 10 ms of CPU time per invocation, and 200,000 log events per day kept for three days. The paid plan starts at $5 per month per account. The page also announces that Workers Logs move to Cloudflare Observability pricing from 1 December 2026, which is days away at the time of writing, so check again.

That date matters here because the plugin’s Workers guidance tells the agent to enable logs and traces for production Workers. That is good practice, and it is also a setting that can show up on a bill if traffic grows.

Cloudflare Workers pricing documentation
Workers pricing documentation on 28 November 2026.

Other products used through these skills have their own prices and some are in beta or closed beta.

Permissions, data and security

Installing the files changes nothing on your account. Access starts when you authorise the MCP server or when the agent uses a CLI you are already logged in to.

With OAuth you are sent to Cloudflare and choose which permissions to grant. When a call is refused for a missing scope, the server asks the client to authorise again with that scope added, according to the README, so read each of those prompts. As an alternative you can pass an API token, which lets you scope it narrowly in the dashboard. Tokens with client IP filtering are not supported at the moment.

On the server side, Cloudflare says generated code runs in an isolated Dynamic Worker with no file system, with outbound requests blocked by default. That limits what a malicious snippet can reach. It does not limit what a legitimate API call can do. If your grant includes DNS edit, an agent that misunderstood you, or that followed instructions planted in a log line or web page, can edit DNS.

The skills show some thought about this. The Wrangler skill asks the agent to establish the target account and environment before changing anything, never to ask you to paste a token into chat, and to treat wrangler secret put as an immediate deployment. It tells the user that preview URLs are public unless access control is configured, and that a rollback does not roll back data. The Zero Trust skill says not to enable broad production policies without explicit approval. Cloudflare’s safety rules for cf recommend --dry-run previews and warn that --force on some commands is also an API parameter, with Worker deletion as the example. These are instructions to a model. Your permission prompts and token scopes are the actual boundary.

The Turnstile skill is the most active one. Its scripts call the Cloudflare API with a token that has Turnstile edit rights, and one of them can clone the skill repository from GitHub to save a copy in your project. The text asks for confirmation before irreversible steps and goes to some length to keep secrets out of chat and shell history.

Each of the 22 skills also has a feedback file. If you tell the agent a skill was wrong, it can draft a public GitHub issue. The instructions require showing you the exact title and body and getting a yes before posting, and list what to strip out, such as tokens, account IDs, hostnames and private code. If you approve one, read it with care: it is public and drafted from your conversation.

No telemetry code was found in the plugin, which has no hooks and no program of its own. What Cloudflare records about MCP requests is covered by its privacy policy, which this review did not analyse. Neither repository listed a published GitHub security advisory on 28 November, which says nothing about undiscovered problems.

A note on product steering

The main cloudflare skill tells the agent to actively surface Cloudflare products that solve your problem even when you did not name them. That is reasonable for a vendor plugin, but it does mean an installed copy may nudge a general question about file uploads or background jobs towards R2 or Queues. If you work across several providers, enable it only in Cloudflare projects.

One part is useful for anyone behind the orange cloud: the same skill is described as covering Cloudflare error pages, 52x statuses, 1xxx codes and 403 responses on proxied sites, to work out whether the fix belongs at Cloudflare or at your origin server.

What others say

No independent hands-on review of this plugin turned up. The search results are mostly directory listings, automated quality scores and Cloudflare’s own announcements. The Register covered the related push to rebuild the CLI for agents in April, quoting the company only. Posts about Code Mode on Hacker News drew little discussion.

The issue tracker is more informative. On 28 November there were 37 open issues, 15 of them skill feedback. Some examples:

  • Turnstile: a server-side check in the sample code is looser than the skill’s own description, and the Next.js example drops other form fields. The reporter did not claim the first one is exploitable.
  • Turnstile on Windows: issue 251 says the script that saves the skill rejects every target path under Git Bash.
  • Email: a batch of reports from 8 November, such as this one on sender trust, argues that parts of the routing reference are wrong or unsafe.
  • cf CLI: issue 289 says guidance on deleting a Worker names the wrong override flag.
  • Updates: issue 196 reported installed copies never updating because the version stayed at 1.0.0. The number has since moved to 1.0.4, though the issue was still open.
GitHub issue list of cloudflare/skills filtered on turnstile-spin
Open Turnstile reports in the upstream tracker on 28 November 2026.

These are open reports, not confirmed defects. They do suggest reviewing generated email handlers and bot checks as carefully as you would review a stranger’s pull request. The MCP server has its own issue list, where several November reports concern permissions that OAuth connections lack for particular endpoints.

Selfhosters

Cloudflare is not selfhosting, but many home servers lean on it for DNS, a tunnel and access control. The cloudflare-one skill covers Access, Gateway, WARP and Tunnel, including connector redundancy, outbound connectivity checks and split tunnel settings, and it asks the agent to inspect existing resources before proposing changes. The Tunnel documentation is still the thing to read first. Letting an agent change the policy that protects your remote access is a good way to lock yourself out, so keep a second way in.

If the goal is to depend less on Cloudflare, these projects replace single pieces:

  • Pangolin for publishing internal services through your own entry point
  • headscale, a self-hosted control server for Tailscale clients
  • Anubis against AI crawlers, or ALTCHA as a self-hosted CAPTCHA alternative
  • workerd, the open source Workers runtime; its README warns that it is not a hardened sandbox on its own

None of them gives you Cloudflare’s global network or the rest of the platform.

Limits and lighter options

The plugin does not install Wrangler or cf. It depends on documentation being reachable. Parts of it describe betas that will change, and the K2 and Basin skills still carry a sentence about documentation pull requests that were merged on 1 October.

If you want less than the whole thing:

  • Only the server: claude mcp add --transport http cloudflare https://mcp.cloudflare.com/mcp
  • Only the skills: copy folders from the repository, or use npx skills add https://github.com/cloudflare/skills
  • Neither: let the agent read the docs through https://developers.cloudflare.com/llms.txt

Who should install it

Install it if you write Workers or Durable Objects, run Zero Trust policies, or are moving something onto the platform. The context cost is modest and there is nothing running behind your back in the files that were read.

Skip it, or enable it per project, if Cloudflare is just where your DNS lives and you change a record twice a year. The dashboard is safer for that. Also hold off if you cannot create narrowly scoped tokens for the account in question, for example on a shared company account where you hold broad rights.

ForAgainst
About 1,363 tokens per session, no hooksMCP access can change live infrastructure
Skills point to current documentationDepends on web access for much of its value
One server covers the whole APIResults are truncated at a cap
Safety instructions around secrets and productionOpen reports about errors in several skills
Apache-2.0, developed in publicNudges you towards Cloudflare products

Further reading

Link