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.

Cloudflare MCP Server 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"}'

Cloudflare in Claude Code: http checks

  • 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.
Catalog transports
stdio

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.

Claude Code's mcp-server-cloudflare example uses http. The Cloudflare MCP Server catalog lists stdio; these instructions follow the stored configuration instead.

Claude Code connects Cloudflare MCP Server to observability.mcp.cloudflare.com using url.