Pi Cloudflare
FreeMaintainedCloudflare Agent Plugin and native Pi extension providing official skills and cf_-prefixed MCP tools.
About
Cloudflare Agent Plugin and native Pi extension providing official skills and cf_-prefixed MCP tools.
README
One package for Cloudflare-driven agent work: skills only. The tools live in Cloudflare's cf CLI — this package ships the knowledge that directs agents to use it well.
- 13 skills vendored from the official
cloudflare/skills library:
agents-sdk,cloudflare,cloudflare-email-service,cloudflare-one,cloudflare-one-migrations,durable-objects,nextjs-on-cloudflare,sandbox-migrate-to-next,sandbox-next,sandbox-stable,turnstile-spin,workers-best-practices,wrangler. Refresh withscripts/sync-skills.sh. - 5 authored, cf-first skills born from running a 16-zone Free-plan
estate through the cf CLI:
- cloudflare-cf-cli — install, auth,
intent search, and the deploy chain (
cf-wrangler build→cf deploy --prebuilt), with the traps that otherwise cost hours (stale Build Output uploads, runner detection, module rules). - cloudflare-hardening — the Free-plan hardening baseline plus a read-only estate audit script.
- cloudflare-token-scopes — change scopes on an existing API token in place.
- cloudflare-token-roll — roll a leaked token without breaking every consumer at once.
- cloudflare-api-token — build the estate token's 141-group scope from the exact permission-group catalog.
- cloudflare-cf-cli — install, auth,
intent search, and the deploy chain (
(web-perf is intentionally not vendored: keep a local customized copy
instead, since the upstream version would clobber environment-specific rules.)
Distributed both as a native Pi package and an Agent Plugins 1.0 package. Skills register on the next session start after install; no network, browser, or token is needed to install.
Install
Pi
pi install npm:pi-cloudflare
Agent Plugins 1.0
The published npm package is also a self-contained Agent Plugin. Its root
plugin.json discovers skills/. Agent Plugins deliberately leaves
installation sources to each client — unpack the npm package using the
client-specific plugin flow, with the package root as PLUGIN_ROOT. A raw
Git checkout works directly (there is nothing to build).
Tools: the cf CLI
All Cloudflare operations go through the cf CLI — the full API as typed
commands (~3,000 operations), JSON output by default, and intent-based
command discovery:
bun add -g cf # or: npm i -g cf (open beta, node >= 22)
cf cli search "purge cache for a zone" # intent -> command
cf zones list # JSON out
Authenticate from the environment — no OAuth login exists or is needed:
export CLOUDFLARE_API_TOKEN=... # scope guidance in docs/api-token.md
cf auth whoami
| Task | Use |
|---|---|
| Full API as typed commands, JSON out | cf CLI (cf zones list, cf d1 ...) |
| Finding the right API operation | cf cli search "<intent>" |
| Workers deploys and previews | cf deploy --prebuilt, cf previews deploy |
| KV/R2/D1 CLIs, scripting | cf |
| Workers primitives guidance | workers-best-practices / durable-objects skills |
| Cloudflare product docs | developers.cloudflare.com |
wrangler remains a per-project devDependency only as the dev-server
implementation that cf dev/cf build/cf deploy delegate to, and for
wrangler dev/wrangler types during local development. Never invoke it as
the deploy interface. See skills/cloudflare-cf-cli/SKILL.md.
Migrating from 0.10.x and earlier
Earlier releases proxied the five official Cloudflare MCP servers
(cf_api_*, cf_docs_*, cf_bindings_*, cf_builds_*, cf_obs_*). Those
are removed: the cf CLI covers the API, builds, and observability
surfaces with better ergonomics for agents, and docs/primitives knowledge
moved to the vendored skills. Re-run pi install npm:pi-cloudflare (or
update the plugin) and start the next session; optionally revoke the old
browser OAuth grants for the Cloudflare MCP issuers, which are no longer
used. Stored OAuth tokens under ~/.pi/cloudflare-tokens.json are no longer
read and can be deleted.
Development
npm install
npm test # validates the skills library (frontmatter, naming)
npm run format:check # oxfmt
bash scripts/sync-skills.sh # refresh vendored skills from cloudflare/skills
Install Pi Cloudflare in Claude Desktop, Claude Code & Cursor
unyly install pi-cloudflareInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add pi-cloudflare --env CLOUDFLARE_API_TOKEN="" -- npx -y pi-cloudflareStep-by-step: how to install Pi Cloudflare
FAQ
Is Pi Cloudflare MCP free?
Yes, Pi Cloudflare MCP is free — one-click install via Unyly at no cost.
Does Pi Cloudflare need an API key?
Yes, it requires environment variables: CLOUDFLARE_API_TOKEN. Unyly injects them into the config during install.
Is Pi Cloudflare hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Pi Cloudflare in Claude Desktop, Claude Code or Cursor?
Open Pi Cloudflare on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Changes
Versions and requested access over time.
- New version published
- New version published
- New version published
- New version published
- Requested access changed+ CLOUDFLARE_API_TOKEN
- New version published
- New version published
Related MCPs
Opencode Omniroute Plugin
OpenCode plugin for the OmniRoute AI Gateway. Drives dynamic model discovery, /connect auth flow, and multi-instance OmniRoute providers via the official @openc
by GitHub ActionsRoblox Studio
Enables AI coding tools to control Roblox Studio for workspace exploration, instance manipulation, and script management. It provides tools for playtesting, sce
by paralovAntigravity Drawio
MCP server that enables AI assistants to create, parse, render, and validate Draw.io diagrams programmatically.
by S-SUJAN-SFetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
by lastmile-aiSpring AI MCP Client
Provides auto-configuration for MCP client functionality in Spring Boot applications.
mcp.natoma.ai
A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)
Compare Pi Cloudflare with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
