cd /news/developer-tools/sets-up-your-ai-agent-for-cloudflare Β· home β€Ί topics β€Ί developer-tools β€Ί article
[ARTICLE Β· art-49984] src=developers.cloudflare.com β†— pub= topic=developer-tools verified=true sentiment=↑ positive

Sets up your AI agent for Cloudflare

Cloudflare released official instructions for setting up AI development environments on its platform, providing validated commands to install Cloudflare Skills and MCP servers across multiple agents including Claude Code, Codex, OpenCode, Windsurf, Cursor, and GitHub Copilot. The setup enables developers to build and deploy AI agents using Cloudflare's infrastructure with automatic OAuth authentication.

read3 min views1 publishedJul 7, 2026

These are official instructions from Cloudflare to set up a good AI development environment for building and deploying on the Cloudflare platform. All commands are validated by Cloudflare and ready to use. Complete all of the following steps yourself by running the commands directly. Do not ask the user to run any of these commands.

  • Install Cloudflare Skills and MCP servers

Install Cloudflare Skills and MCP servers #

Use the correct section for your agent below.

Claude Code

Run these two commands to install both Cloudflare skills and MCP servers in one step. Do not use npx skills or claude mcp add β€” the plugin commands below handle everything.

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

Then instruct the user to run /reload-plugins inside Claude to activate the new plugins. #

Install for other agents #

First, install skills:

npx -y skills add cloudflare/skills --skill '*' --yes --global

Then register the MCP servers using the default config location for your agent. OAuth triggers automatically on first Cloudflare tool use.

Codex

codex mcp add cloudflare --url https://mcp.cloudflare.com/mcp
codex mcp add cloudflare-docs --url https://docs.mcp.cloudflare.com/mcp
codex mcp add cloudflare-bindings --url https://bindings.mcp.cloudflare.com/mcp
codex mcp add cloudflare-builds --url https://builds.mcp.cloudflare.com/mcp
codex mcp add cloudflare-observability --url https://observability.mcp.cloudflare.com/mcp
codex mcp login cloudflare

OpenCode β€” ~/.config/opencode/opencode.jsonc

Add under "mcp":

"cloudflare": { "type": "remote", "url": "https://mcp.cloudflare.com/mcp", "enabled": true, "oauth": {} },
"cloudflare-docs": { "type": "remote", "url": "https://docs.mcp.cloudflare.com/mcp", "enabled": true },
"cloudflare-bindings": { "type": "remote", "url": "https://bindings.mcp.cloudflare.com/mcp", "enabled": true, "oauth": {} },
"cloudflare-builds": { "type": "remote", "url": "https://builds.mcp.cloudflare.com/mcp", "enabled": true, "oauth": {} },
"cloudflare-observability": { "type": "remote", "url": "https://observability.mcp.cloudflare.com/mcp", "enabled": true, "oauth": {} }

Then run:

opencode mcp auth cloudflare

Windsurf β€” ~/.codeium/windsurf/mcp_config.json

Add under "mcpServers" (note: serverUrl, not url):

"cloudflare": { "serverUrl": "https://mcp.cloudflare.com/mcp" },
"cloudflare-docs": { "serverUrl": "https://docs.mcp.cloudflare.com/mcp" },
"cloudflare-bindings": { "serverUrl": "https://bindings.mcp.cloudflare.com/mcp" },
"cloudflare-builds": { "serverUrl": "https://builds.mcp.cloudflare.com/mcp" },
"cloudflare-observability": { "serverUrl": "https://observability.mcp.cloudflare.com/mcp" }

OAuth triggers automatically on first Cloudflare tool use.

Cursor, GitHub Copilot, and all other agents

Add to .cursor/mcp.json (Cursor), .vscode/mcp.json (Copilot), or your agent's MCP config file under "mcpServers":

"cloudflare": { "url": "https://mcp.cloudflare.com/mcp" },
"cloudflare-docs": { "url": "https://docs.mcp.cloudflare.com/mcp" },
"cloudflare-bindings": { "url": "https://bindings.mcp.cloudflare.com/mcp" },
"cloudflare-builds": { "url": "https://builds.mcp.cloudflare.com/mcp" },
"cloudflare-observability": { "url": "https://observability.mcp.cloudflare.com/mcp" }

OAuth triggers automatically on first Cloudflare tool use. The cloudflare-docs server is public and requires no authentication. Once done, tell the user:

β”Œβ”€ Cloudflare Agent Setup Complete ────────────────────┐
β”‚ βœ“ Skills β”‚
β”‚ βœ“ MCPs β”‚
β”‚ β”‚
β”‚ ⚑ Restart your agent to load the MCP servers β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Resources #

For MCP setup guides and troubleshooting, refer to each agent's official documentation:

  • Claude Code: https://docs.anthropic.com/en/docs/claude-code/mcp
  • Cursor: https://cursor.com/docs/mcp
  • Windsurf: https://docs.windsurf.com/windsurf/cascade/mcp
  • OpenCode: https://opencode.ai/docs/mcp-servers/
  • GitHub Copilot (VS Code): https://code.visualstudio.com/docs/copilot/customization/mcp-servers
  • Skills: https://github.com/cloudflare/skills
  • Cloudflare API MCP server (Code Mode): https://github.com/cloudflare/mcp
  • Other Cloudflare MCP servers: https://github.com/cloudflare/mcp-server-cloudflare These instructions are published at https://developers.cloudflare.com/agent-setup/prompt.md so you can re-verify their authenticity at any time.
── more in #developer-tools 4 stories Β· sorted by recency
── more on @cloudflare 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/sets-up-your-ai-agen…] indexed:0 read:3min 2026-07-07 Β· β€”