Arlet
Cloudflare

Connect Cloudflare to Codex

Search, read and write Cloudflare from Codex. 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 Codex

  1. 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. 2

    In your terminal, run codex mcp add arlet --url https://mcp.arlet.dev/mcp/ to add Arlet as an MCP server.

  3. 3

    Codex detects OAuth support and opens your browser. Sign in with Google and click Allow on the consent screen.

  4. 4

    Once connected, both the CLI and the IDE extension can call Arlet tools (the configuration is shared).

If the browser does not open, run codex mcp login arlet to redo the authentication.

What you can do

Cloudflare tools that Codex can call.

  • docs

    Search Cloudflare's developer documentation.

  • search

    Query the Cloudflare API specification with JavaScript to find endpoints.

  • execute

    Call 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

Use Cloudflare with other AI clients