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.
Goose is an open-source AI agent with a desktop app and a CLI. It adds remote MCP servers as Streamable HTTP extensions and signs in to them with OAuth.
This guide connects Cloudfare-mcp to Goose through MewCP, so Goose can use Cloudfare-mcp's 5 tools, like docs, search and execute, without your Cloudfare-mcp credentials ever reaching the app.
Cloudfare-mcp signs in through managed OAuth. MewCP stores the token encrypted, refreshes it before it expires and injects it only at call time. Your agent never holds it, so it can never leak it.
More apps
Manage repositories, pull requests, issues, branches and development workflows on GitHub. Automate software delivery and collaborate across engineering projects.
Connect to external APIs, webhooks and internet services through standard HTTP requests. Build integrations with virtually any platform that exposes a web-based interface.
Access Google Gemini models for multimodal AI, text generation, and reasoning. Analyze text, images, and documents; enable Google Search grounding and Python code execution; generate embeddings for semantic search; and explore available models and token usage.
Give AI coding agents access to a curated library of real-world website designs, screenshots, design systems, and reusable UI components. Search visual references, find similar designs, analyze layouts, extract colors and typography, compare websites, and retrieve copy-ready JSX components for building better interfaces
Other clients
Cloudfare-mcp works the same way in every client below. Pick yours for its own guide.
Free to start.
Scope access to the exact Cloudfare-mcp tools and accounts you allow, work and personal side by side. Anything outside that scope is refused at call time, even when the model asks for it.
Each call is logged: what ran, on which account, and whether it worked. Failures come back structured, so the agent knows whether to retry instead of guessing.
Every app sits behind one secure MCP URL, and there is no server for you to deploy or keep running. Add an integration in the dashboard and it is live on the next call, with no config to change and no new credentials to wire up. Tools load only when a task needs them, so your agent stays fast and focused however many apps you connect.
Open the sidebar, click Extensions, then Add custom extension. Set the type to Streamable HTTP, name it mewcp, and paste this URL.
A browser window opens when Goose connects. Sign in and approve access. No API key needed.
Start a new chat and ask: "List the tools you can use from MewCP." You should see your connected apps.
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.