How to connect Cloudflare to Claude Code
Cloudflare is published by mcp.cloudflare.com, marked as the vendor's own server, and runs as a hosted service rather than on your machine. The listing names no API key. This guide adds it to Claude Code and ends with a check of the server list and its tools. Commands come from the listing's install data and Claude Code's docs.
Updated Oct 26, 2026 · Built from catalog data; how we rank and grade
Checked against Claude Code's documentation on Oct 26, 2026. Commands and config blocks are generated from the same install data as each listing page.
Before you start
- Claude Code installed and able to start.
- Network access to docs.mcp.cloudflare.com.
- No API key is listed for Cloudflare.
1. Check what you need
Nothing is installed locally for this listing. Claude Code just has to reach the hosted address over the network.
- The listing names no required key.
2. Add Cloudflare to Claude Code
Both routes name the same hosted address with the http type: a command for your own use across projects, and a
.mcp.jsonentry for a single project.Add it for you in every project claude mcp add --transport http --scope user cloudflare https://docs.mcp.cloudflare.com/mcpOr share it with the project: put this in .mcp.json at the project root .mcp.json{ "mcpServers": { "cloudflare": { "type": "http", "url": "https://docs.mcp.cloudflare.com/mcp" } } }3. Sign in
If Claude Code reports that Cloudflare needs authentication, there are two ways to start the sign-in: from the menu inside a session, or with a command.
4. Restart or reload if it does not appear
Registered but not visible? This step covers reconnecting and the approval prompt for servers defined in a project file.
- The docs do not say a restart is needed after claude mcp add. Servers connect at startup and can be reconnected from the /mcp menu.
- In an interactive session Claude Code asks you to approve servers from a project .mcp.json before it uses them; claude mcp reset-project-choices resets those answers.
Check that it works
Beyond the state label, the catalog records 2 tools for Cloudflare, so the tool list should be short.
claude mcp list- Run claude mcp list from the shell, or /mcp inside a session. The list shows each server as Connected, Needs authentication, Failed to connect, or Pending approval.
- Once it is connected, Claude Code should list its tools; the catalog records 2 for Cloudflare, including migrate_pages_to_workers_guide and search_cloudflare_documentation.
Troubleshooting
- Error: MCP server has a "url" but no "type"
- Add "type": "http" (or sse) to the entry in the JSON file. Source
- MCP server already exists in local config
- Remove it from the other scope first with claude mcp remove <name> --scope <scope>, then add it again. Source
- A ${VAR} in the config stays literal
- The variable is unset. Export it before starting Claude Code or give it a default with ${VAR:-default}; claude mcp list shows a warning. Source
- Server shows disconnected in a session
- Open /mcp and reconnect it. Source
Security notes
- Publisher: mcp.cloudflare.com, listed as the vendor's own server; license Apache-2.0.
- Your requests go to docs.mcp.cloudflare.com. Check who runs it and what it does with your data before you connect.
- The listing declares no required keys; use a token with the narrowest scope if the service asks for one.
- This listing has no security grade: Agent Market has not published security grades yet, so the choice is yours to make from the source and the permissions.
Servers and skills in this guide
Other Cloudflare servers, a comparison and the general Claude Code guide are linked below.
- 1Cloudflare
mcp.cloudflare.comOfficial
Cloudflare MCP servers
★ 4.4KLast active Oct 22, 2026Remote (HTTP), Remote (SSE)Claude Code, VS Code, Cursor, Windsurf
AFreshness: A–Security: not graded yet
Related
- Install guideHow to add an MCP server to Claude Code
- Install guideHow to connect Cloudflare to Cursor
- Best ofBest MCP servers for Cloudflare
- AlternativesAlternatives to Cloudflare
- Install guideHow to connect Figma to Claude Code
- Install guideHow to connect GitHub to Claude Code
- Install guideHow to connect Unity to Claude Code
Sources
- Connect Claude Code to tools via MCP · fetched Oct 26, 2026
Cite this page
How to connect Cloudflare to Claude Code. Agent Mart. https://agentmart.dev/guides/connect-cloudflare-to-claude-code (last updated 2026-10-26)