These MCP servers allow your MCP client to read configurations from your account, process information, make suggestions based on data, and even make those suggested changes for you. All of these actions can happen across Cloudflare's many services including application development, security and performance.
Try asking
Encrypted at rest, isolated from the model
Resolved from an AES-256-GCM vault at the moment of the call and attached to the request — the model never sees the secrets.
Search the Cloudflare documentation. This tool should be used to answer any question about Cloudflare products or features, including: - Workers, Pages, R2, Images, Stream, D1, Durable Objects, KV, Workflows, Hyperdrive, Queues - AI Search, Workers AI, Vectorize, AI Gateway, Browser Rendering - Zero Trust, Access, Tunnel, Gateway, Browser Isolation, WARP, DDOS, Magic Transit, Magic WAN - CDN, Cache, DNS, Zaraz, Argo, Rulesets, Terraform, Account and Billing Results are returned as semantically similar chunks to the query.
Search the Cloudflare OpenAPI spec. All $refs are pre-resolved inline. Response schemas describe the body as the API sends it, usually Cloudflare's envelope: `{ success, errors, messages, result }`, plus `result_info` on paginated lists. Products: cloudforce-one, access, workers, magic, dlp, email-security, realtime, devices, ai-gateway, data-security, intel, gateway, settings, stream, brand-protection, builds, ai-search, browser-rendering, email, security-center, dex, addressing, images, logpush, api_gateway, cws, load_balancers, firewall, rulesets, vectorize... (172 total) Types: interface OperationInfo { summary?: string; "x-api-token-group"?: string[]; // API token permissions the endpoint accepts (any one); OAuth scopes have the same names description?: string; tags?: string[]; parameters?: Array<{ name: string; in: string; required?: boolean; schema?: unknown; description?: string }>; requestBody?: { required?: boolean; content?: Record<string, { schema?: unknown }> }; // Each schema describes the body as the API sends it, usually the envelope { success, errors, messages, result, result_info? } responses?: Record<string, { description?: string; content?: Record<string, { schema?: unknown }> }>; } interface PathItem { get?: OperationInfo; post?: OperationInfo; put?: OperationInfo; patch?: OperationInfo; delete?: OperationInfo; } declare const spec: { paths: Record<string, PathItem>; }; Examples: // Find endpoints by product async () => { const results = []; for (const [path, methods] of Object.entries(spec.paths)) { for (const [method, op] of Object.entries(methods)) { if (op.tags?.some(t => t.toLowerCase() === 'workers')) { results.push({ method: method.toUpperCase(), path, summary: op.summary }); } } } return results; } // Get endpoint with requestBody schema (refs are resolved) async () => { const op = spec.paths['/accounts/{account_id}/d1/database']?.post; return { summary: op?.summary, requestBody: op?.requestBody }; } // Get endpoint parameters async () => { const op = spec.paths['/accounts/{account_id}/workers/scripts']?.get; return op?.parameters; }
Execute JavaScript code that can read, create, update, or delete resources through the Cloudflare API. First use the 'search' tool to find the right endpoints, then write code using the cloudflare.request() function. Available in your code: interface CloudflareRequestOptions { method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE"; path: string; query?: Record<string, string | number | boolean | undefined>; // Request headers the endpoint declares, such as { "cf-r2-jurisdiction": "eu" } for an R2 bucket // in a jurisdiction, or { "If-Match": etag }. Authorization is the session's except on Pages and // Workers asset upload POSTs, which take { Authorization: "Bearer <upload JWT>" }. headers?: Record<string, string>; // A string, bytes (Uint8Array, ArrayBuffer), Blob, FormData, URLSearchParams or stream is sent as // it is. Any other value is sent as JSON. Content-Type defaults to application/json for JSON and // for strings: set it in headers for other text, such as { "Content-Type": "text/plain" } for SQL, // and for bytes. FormData, Blob and URLSearchParams bring their own. body?: unknown; } // The response body as the API sends it. Most APIs wrap it in this envelope; a few send their JSON // bare (the spec's response schema shows which). Non-JSON responses are text, or a Uint8Array for // binary content (images, PDFs, archives). Bytes in the value your code returns appear as // { base64, byteLength }. A failed request throws. interface CloudflareEnvelope<T = unknown> { success: boolean; errors: Array<{ code: number; message: string }>; messages: Array<{ code: number; message: string }>; result: T; result_info?: { page: number; per_page: number; total_pages: number; count: number; total_count: number }; } declare const cloudflare: { request<T = CloudflareEnvelope>(options: CloudflareRequestOptions): Promise<T>; }; declare const accountId: string; // accountId is the account_id tool argument when passed; otherwise the session's account when it is authorized for exactly one. Reading it when neither applies throws an error. When the session has access to multiple accounts, pass account_id. Call GET /accounts to discover available accounts. Paginate as needed, or filter by exact name with GET /accounts?name=<exact account name>. To turn on a product for an account, such as R2, create an account subscription: POST /accounts/{account_id}/subscriptions with body { rate_plan: { id } }. Rate plan IDs include r2_paid (R2 Storage) and teams_free (Zero Trust). Only plans with no base charge can be created. The server asks the user to confirm first. Your code must be an async arrow function that returns the result. A failed request throws an Error naming the method, path, HTTP status and Cloudflare's errors. For HTTP 401/403 on a request using the MCP connection, it also says which permission the endpoint needs and whether reconnecting will help. Requests slow down by themselves near a rate limit. For HTTP 429 the error says how long Cloudflare asks to wait; until then, requests under the same limit are not sent and throw too, so stop instead of catching and continuing. For static assets, first get a JWT using the Pages project's GET upload-token or the Worker's POST assets-upload-session endpoint. Pass that JWT in headers: { Authorization: "Bearer <upload JWT>" } only to the Pages asset POSTs (check-missing, upload, upsert-hashes) or the Workers assets/upload POST (multipart FormData with query: { base64: true }). Do not pass the JWT as authorization when creating a deployment or Worker version; the Workers upload completion JWT goes in version metadata at assets.jwt. An upload JWT refusal is not an MCP OAuth scope challenge. Example: Worker with bindings (a multipart/form-data upload): async () => { const code = `export default { async fetch(request, env) { return new Response(await env.MY_KV.get('key') || 'none') } };`; const metadata = { main_module: "worker.js", bindings: [{ type: "kv_namespace", name: "MY_KV", namespace_id: "your-kv-id" }] }; const form = new FormData(); form.append("metadata", new Blob([JSON.stringify(metadata)], { type: "application/json" })); form.append("worker.js", new Blob([code], { type: "application/javascript+module" }), "worker.js"); return cloudflare.request({ method: "PUT", path: `/accounts/${accountId}/workers/scripts/my-worker`, body: form }); }
Return the Cloudflare user or account that this connection is authenticated as. Takes no arguments. The id is stable across token refresh, reconnection and permission changes.
Report a problem with Cloudflare products, this MCP server or its tools to the Cloudflare team. While you work, keep track of what went wrong: failed calls, errors, wrong or confusing results, missing tools. Call this near the end of the task if it hit a Cloudflare problem: several failed attempts, an error that looks like a Cloudflare bug, or a workaround you had to find. Also use this tool to send feedback at the user’s request. Skip it if the task went fine or the problem was in the user's own code. Call it at most once per distinct problem (in a long thread that hits separate Cloudflare issues, one report per issue is fine); never use it to test it or to log progress. Describe the broader goal (in general terms), what was attempted, what was expected and what happened. Leave out secrets, API tokens, personal data, project or company details, account or zone IDs and full conversations. After a successful submission, if you are an agent, tell the user at the next natural break, such as the end of the current turn, that you sent feedback to Cloudflare. Include the submission ID.
Pick your app for a step-by-step guide. Most sign in with OAuth, so there is no API key to copy.
Discovery, routing, credentials, tool scoping and execution logs all happen at the gateway→connections stay ACTIVE with no work from you
Cloudfare-mcp runs through a gateway that holds the credentials, scopes the access and records every call.
Managed auth, hosted MCP servers, and every Cloudfare-mcp tool your agent needs.
Free to start.
Add as preferred source on GoogleUse Exa to find the top sources on a topic, pull together what has been said, and draft a Notion outline with your angle identified.