From 1245e13663fd41f72fdf62e62ef8b4cf7ddf999c Mon Sep 17 00:00:00 2001 From: Rafael Zendron Date: Tue, 16 Jun 2026 19:52:30 -0300 Subject: [PATCH] docs: add Claude Code connection guide (#39) Add a dedicated section for connecting the Cloudflare MCP server to Claude Code, including both CLI and manual .mcp.json configuration methods. --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index 365764a..f1fb178 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,29 @@ Create a [Cloudflare API token](https://dash.cloudflare.com/profile/api-tokens) > **Note:** API tokens with **Client IP Address Filtering** enabled are not currently supported. +### Claude Code + +Add the Cloudflare MCP server to Claude Code using the CLI: + +```bash +claude mcp add cloudflare-api --transport http https://mcp.cloudflare.com/mcp +``` + +Or manually create/edit `.mcp.json` in your project root: + +```json +{ + "mcpServers": { + "cloudflare-api": { + "type": "http", + "url": "https://mcp.cloudflare.com/mcp" + } + } +} +``` + +After adding the server, restart Claude Code and you'll be prompted to authorize via Cloudflare OAuth on first use. + ### Add to Agent | Setting | Value |