Connect Cloudflare to Claude Code
Search, read and write Cloudflare from Claude Code. Arlet links the two through one MCP connection and takes care of keys and authentication.
Arlet makes Cloudflare's official MCP server (Code Mode) available from the AI client you already use. Signing in and choosing the permissions to grant completes the connection.
This server covers the whole Cloudflare API. The AI first searches the API specification and docs to find the right endpoint, then calls it, which lets it operate DNS, Workers, R2, D1, KV and more within the permissions you granted.
How to connect Cloudflare to Claude Code
- 1
In the Arlet dashboard, open Integrations β Add an integration and choose Cloudflare. Sign in with Link Cloudflare, name the connection and click Create.
- 2
In your terminal, run claude mcp add --transport http arlet https://mcp.arlet.dev/mcp/ to add Arlet as an MCP server.
- 3
Start Claude Code, run /mcp, select arlet and click Authenticate.
- 4
Your browser opens. Sign in with Google and click Allow on the consent screen. The connection is complete.
The connection is per user and works across every project on the same machine.
What you can do
Cloudflare tools that Claude Code can call.
docsSearch Cloudflare's developer documentation.
searchQuery the Cloudflare API specification with JavaScript to find endpoints.
executeCall the discovered endpoints with JavaScript to run Cloudflare API requests.
The tool list follows what Cloudflare's official MCP server provides and may change.
Example uses
Review and change DNS
List a zone's records and add or change them as instructed.
Audit settings
Read cache and security settings through the API and tabulate them per zone.
Operate Workers, R2 and D1
List Workers and their deployments, and inspect R2 buckets and D1 databases.
Look it up, then do it
Check the procedure in the docs and apply the setting through the API in one go.
Prompts you can use as-is
- List the DNS records for example.com
- Add a TXT record _acme-challenge with value abc123 to example.com
- Tabulate the SSL mode and cache level for every zone I manage
- List my R2 buckets with their creation dates
