Data as of

Cloudflare MCP Server for Claude Code: Setup & Config

Claude Code: Cloudflare MCP Server is a collection of product-specific remote servers for Cloudflare accounts.

What you can do with Cloudflare in Claude Code

Choose curated Cloudflare product endpoints instead of a broad code-execution API interface.

  • Work with Workers storage, AI, and compute bindings.
  • Review account audit logs or security misconfiguration information.
  • Fetch pages and screenshots with the browser rendering service.

Before you start: Cloudflare in Claude Code

  • An MCP-compatible client
  • A Cloudflare account for account operations
  • npx when using the mcp-remote bridge
  • Appropriate API token permissions when using the OpenAI Responses API

This example selects the Observability server. Remote-capable clients can use its URL directly; the npx command is a compatibility bridge. Other product areas use separate URLs.

Cloudflare Claude Code configuration

  1. Choose Claude Code configuration scope

    For Cloudflare MCP Server, open Project scope: .mcp.json at the repository root. Project JSON: merge into mcpServers; user scope: use the CLI.

  2. Add Cloudflare MCP Server to Claude Code

    Use the mcp-server-cloudflare entry below in mcpServers. Keep Cloudflare MCP Server's documented http connection fields and your other Claude Code entries.

  3. Check Cloudflare MCP Server in Claude Code

    Cloudflare MCP Server: Inspect claude mcp list and /mcp status.

Config file · Project scope: .mcp.json at the repository root

JSON
{
  "mcpServers": {
    "mcp-server-cloudflare": {
      "type": "http",
      "url": "https://observability.mcp.cloudflare.com/mcp"
    }
  }
}

CLI (POSIX shell)
claude mcp add-json --scope project 'mcp-server-cloudflare' '{"type":"http","url":"https://observability.mcp.cloudflare.com/mcp"}'

Troubleshooting Cloudflare in Claude Code

  • Inspect claude mcp list, then Cloudflare MCP Server's connection to observability.mcp.cloudflare.com in /mcp. Complete Claude Code authentication only for a trusted service.
  • Cloudflare MCP Server: check http connectivity to observability.mcp.cloudflare.com from Claude Code; a stdio command is not a replacement for this endpoint.
  • Transport mismatch: Cloudflare's catalog lists stdio; the displayed Claude Code configuration uses http.
  • Known limitation: Some capabilities require a paid Cloudflare Workers plan.
  • Known limitation: Long tool chains can exceed client context limits.
  • Known limitation: SSE remains available but is deprecated.
  • General Claude Code troubleshooting lives in the /clients/claude-code guide.

Cloudflare MCP Server — details. Claude Code guide

Frequently asked questions

Register Cloudflare MCP Server with the displayed claude mcp add-json --scope project command, or merge the JSON into .mcp.json at the repository root.