Cloudflare MCP servers: endpoints, access and permissions
Compare Cloudflare's general API MCP server with its optional product-specific endpoints, connect with OAuth or a scoped token, and verify access with a read-only check.
Updated · Markdown version
Cloudflare documents one general API MCP server plus six optional product-specific servers. The API server can search documentation and call authorized Cloudflare API endpoints, so its effective reach depends on the OAuth permissions or API-token permissions granted to it. This guide maps the endpoints and shows a read-only first connection check; it does not authorize a Cloudflare configuration change.
The seven servers
| Server | Endpoint | What the Cloudflare page says it does |
|---|---|---|
| Cloudflare API | https://mcp.cloudflare.com/mcp | Reaches over 2,500 endpoints (DNS, Workers, R2, Zero Trust) through search(), execute() and docs() |
| Documentation | https://docs.mcp.cloudflare.com/mcp | Retrieves reference material about Cloudflare |
| Containers | https://containers.mcp.cloudflare.com/mcp | Starts a sandbox development environment |
| Browser Run | https://browser.mcp.cloudflare.com/mcp | Fetches pages, converts them to markdown, takes screenshots |
| DEX | https://dex.mcp.cloudflare.com/mcp | Gives insight into critical applications |
| CASB | https://casb.mcp.cloudflare.com/mcp | Finds security misconfigurations in SaaS applications |
| Agents SDK docs | https://agents.cloudflare.com/mcp | Searches the Agents SDK documentation |
The API server exposes the entire Cloudflare API through search() and execute(), so the available API operations can include create, edit and delete actions. The generated code runs in an isolated Dynamic Worker, but that sandbox is not a read-only boundary for authorized API calls. Treat the OAuth scopes or API-token permissions as the real account-access boundary, and review them before connecting.
How to connect the API server
- Use the endpoint https://mcp.cloudflare.com/mcp. This is the server Cloudflare recommends for most users.
- Add it to your MCP client configuration as an entry in
mcpServerswith aurlfield:
{
"mcpServers": {
"cloudflare-api": {
"url": "https://mcp.cloudflare.com/mcp"
}
}
}- Sign in through OAuth. On the Cloudflare authorization screen, select only the permissions the agent needs for the current task, and reject the rest.
- For CI jobs or other automation, skip OAuth and send a Cloudflare API token as a bearer token in the
Authorizationheader. Create a narrow token for that job and store it in your CI secret store. - If you use Claude Code, install the plugin from the Cloudflare page with
/plugin marketplace add cloudflare/skills. For other clients, the page givesnpx skills add https://github.com/cloudflare/skills.
Check the connection with a read-only request for one resource you can independently verify in the Cloudflare dashboard. Confirm the selected account and zone before trusting the result. Do not use the first check to change DNS, Workers, WAF, firewall, rate-limit, bot or other security settings. The Cloudflare page links to its MCP repository for additional client-specific setup; there is no single configuration format for every MCP client.
Pitfalls
- Broad grants on the consent screen. An agent that can call every endpoint is hard to audit. Notice this by reading the granted list after sign-in. Fix it by revoking the connection and signing in again with fewer permissions.
- Extra servers in the config. Each server you add gives the client more tools to choose from, and an agent asked to look something up may pick a tool that changes state. Fix it by keeping only the servers the current project needs.
- Assuming the sandbox limits account access. The page describes an isolated sandbox for generated code. It does not say that isolation restricts which account resources a call can reach. Fix it by relying on the granted permissions, not on the sandbox.
- Long-lived CI tokens. A broad API token in a CI variable outlives the job that needed it. Notice it by checking the token's scopes in the Cloudflare dashboard. Fix it by creating one token per job with the smallest scope that works.
- Mixing up the documentation servers. The docs server and the Agents SDK docs server only read material, while the API server can reach account resources. Fix it by naming the server in your prompt when you need a lookup, so the agent does not reach for the API server.
When to use a skill instead
An MCP connection can expose authorized actions, but a skill is guidance inside an agent session rather than an external policy boundary. infrastructure-as-code-review offers a review checklist; its catalogue result was a provisional three-task, single-run LIFT assessment dated 2026-11-21. coding-agent-guardrails had a measured NO_LIFT verdict dated 2026-11-23: 12 paired tasks, a -5.0-point pass-rate difference and a 95% interval from -16.8 to +6.8. Neither result guarantees safety. Keep Cloudflare permissions narrow, require human approval for consequential changes and verify outcomes independently.
FAQ
What is an MCP server? An MCP server is a program that exposes data sources, tools or workflows to an AI application through the Model Context Protocol. Cloudflare's seven servers are remote MCP servers, meaning they run on Cloudflare and clients connect to them over HTTP.
What does MCP stand for? MCP stands for Model Context Protocol. The official introduction describes it as an open-source standard for connecting AI applications to external systems.
Which Cloudflare MCP server should I start with? Cloudflare says most users only need the general API server because it covers the full API and documentation. If the task only needs reference material, a documentation-specific server can provide a narrower tool surface. Whichever endpoint you choose, grant only the permissions needed for the task and begin with a read-only check.
Related skills in this catalog
Platform Score is our assessment under a published method. It is not a safety guarantee.
Related guides
Sources
- https://developers.cloudflare.com/agents/model-context-protocol/cloudflare/servers-for-cloudflare/ (accessed 2026-11-25)
- https://modelcontextprotocol.io/docs/getting-started/intro (accessed 2026-11-25)