← All connection guides

How to connect Claude Code to Cloudflare

Connect Claude Code to Cloudflare, authorize access, and verify the connection using the official setup.

Free guide · Updated

Based on official documentation · Checked

Ask your agent

Copy the prompt and paste it into your assistant.

Quick answer

Connect Claude Code to Cloudflare using the official Cloudflare setup described below, authorize the account, then check access with a read-only request.

Before you start

Install Claude Code and sign in to an account with access to the intended Cloudflare workspace or projects. Review the permissions requested during authorization; connecting a tool can expose account data or allow changes depending on the integration.

Add the connection

Start Claude Code in your project, then add the Cloudflare marketplace and plugin using these commands inside Claude Code, one after another.

/plugin marketplace add cloudflare/skills
/plugin install cloudflare@cloudflare

Authorize the account

The plugin registers Cloudflare MCP servers and skills. When a Cloudflare tool first requests access, sign in through OAuth and review the permissions before granting them.

Practice

Check the connection

  1. Ask Claude to list Cloudflare resources you have permission to view without creating or changing anything.

Output: The result matches data visible in your Cloudflare account.

Troubleshooting and disconnecting

If tools are missing, check the server or plugin status in Claude Code, restart the session if necessary and confirm you authorized the correct Cloudflare account. If access is denied, check your workspace membership and permissions. To disconnect, remove or disable the server or plugin in the client and revoke its authorization in Cloudflare when appropriate. Avoid pasting access tokens into public files.

Sources

Read the primary material