Cloudflare's main MCP server uses a Code Mode pattern, exposing search() and execute() tools that cover the full Cloudflare API in roughly 1,000 tokens of context. It is hosted remotely and authenticates via OAuth or a Cloudflare API token in the Authorization header.
Also available as
Connect
- 1Connect it in ChatGPT
Turn on Developer mode in ChatGPT (Settings → Security and login), open Plugins, select + and paste https://mcp.cloudflare.com/mcp as the MCP server URL, then sign in with OAuth. Add it to a chat from the composer's tools menu.
- 2Or add it to Codex or the API
codex mcp add cloudflare-api --url https://mcp.cloudflare.com/mcp codex mcp login cloudflare-apiThe login command opens a browser to finish OAuth.
Configs are generated from the publisher's documented endpoint. Check their docs for plan requirements and scopes. New to this? Read the step-by-step tutorial.
Tools 2
searchexecuteThings to ask
- “List all DNS records for example.com”
- “Create a new R2 bucket called assets-prod”
- “Purge the cache for my marketing site zone”
- “Which Workers are deployed in my account?”