{"slug": "sets-up-your-ai-agent-for-cloudflare", "title": "Sets up your AI agent for Cloudflare", "summary": "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.", "body_md": "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.\nComplete all of the following steps yourself by running the commands directly. Do not ask the user to run any of these commands.\n- Install Cloudflare Skills and MCP servers\n---\n## Install Cloudflare Skills and MCP servers\nUse the correct section for your agent below.\n### Claude Code\nRun 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.\n```\nclaude plugin marketplace add cloudflare/skills\nclaude plugin install cloudflare@cloudflare\n```\nThen instruct the user to run `/reload-plugins` inside Claude to activate the new plugins.\n---\n## Install for other agents\nFirst, install skills:\n```\nnpx -y skills add cloudflare/skills --skill '*' --yes --global\n```\nThen register the MCP servers using the default config location for your agent. OAuth triggers automatically on first Cloudflare tool use.\n### Codex\n```\ncodex mcp add cloudflare --url https://mcp.cloudflare.com/mcp\ncodex mcp add cloudflare-docs --url https://docs.mcp.cloudflare.com/mcp\ncodex mcp add cloudflare-bindings --url https://bindings.mcp.cloudflare.com/mcp\ncodex mcp add cloudflare-builds --url https://builds.mcp.cloudflare.com/mcp\ncodex mcp add cloudflare-observability --url https://observability.mcp.cloudflare.com/mcp\ncodex mcp login cloudflare\n```\n### OpenCode — `~/.config/opencode/opencode.jsonc`\nAdd under `\"mcp\"`:\n``` json\n\"cloudflare\": { \"type\": \"remote\", \"url\": \"https://mcp.cloudflare.com/mcp\", \"enabled\": true, \"oauth\": {} },\n\"cloudflare-docs\": { \"type\": \"remote\", \"url\": \"https://docs.mcp.cloudflare.com/mcp\", \"enabled\": true },\n\"cloudflare-bindings\": { \"type\": \"remote\", \"url\": \"https://bindings.mcp.cloudflare.com/mcp\", \"enabled\": true, \"oauth\": {} },\n\"cloudflare-builds\": { \"type\": \"remote\", \"url\": \"https://builds.mcp.cloudflare.com/mcp\", \"enabled\": true, \"oauth\": {} },\n\"cloudflare-observability\": { \"type\": \"remote\", \"url\": \"https://observability.mcp.cloudflare.com/mcp\", \"enabled\": true, \"oauth\": {} }\n```\nThen run:\n```\nopencode mcp auth cloudflare\n```\n### Windsurf — `~/.codeium/windsurf/mcp_config.json`\nAdd under `\"mcpServers\"` (note: `serverUrl`, not `url`):\n``` json\n\"cloudflare\": { \"serverUrl\": \"https://mcp.cloudflare.com/mcp\" },\n\"cloudflare-docs\": { \"serverUrl\": \"https://docs.mcp.cloudflare.com/mcp\" },\n\"cloudflare-bindings\": { \"serverUrl\": \"https://bindings.mcp.cloudflare.com/mcp\" },\n\"cloudflare-builds\": { \"serverUrl\": \"https://builds.mcp.cloudflare.com/mcp\" },\n\"cloudflare-observability\": { \"serverUrl\": \"https://observability.mcp.cloudflare.com/mcp\" }\n```\nOAuth triggers automatically on first Cloudflare tool use.\n### Cursor, GitHub Copilot, and all other agents\nAdd to `.cursor/mcp.json` (Cursor), `.vscode/mcp.json` (Copilot), or your agent's MCP config file under `\"mcpServers\"`:\n``` json\n\"cloudflare\": { \"url\": \"https://mcp.cloudflare.com/mcp\" },\n\"cloudflare-docs\": { \"url\": \"https://docs.mcp.cloudflare.com/mcp\" },\n\"cloudflare-bindings\": { \"url\": \"https://bindings.mcp.cloudflare.com/mcp\" },\n\"cloudflare-builds\": { \"url\": \"https://builds.mcp.cloudflare.com/mcp\" },\n\"cloudflare-observability\": { \"url\": \"https://observability.mcp.cloudflare.com/mcp\" }\n```\nOAuth triggers automatically on first Cloudflare tool use.\nThe `cloudflare-docs` server is public and requires no authentication.\nOnce done, tell the user:\n```\n┌─ Cloudflare Agent Setup Complete ────────────────────┐\n│ ✓ Skills │\n│ ✓ MCPs │\n│ │\n│ ⚡ Restart your agent to load the MCP servers │\n└──────────────────────────────────────────────────────┘\n```\n---\n## Resources\nFor MCP setup guides and troubleshooting, refer to each agent's official documentation:\n- Claude Code: `https://docs.anthropic.com/en/docs/claude-code/mcp`\n- Cursor: `https://cursor.com/docs/mcp`\n- Windsurf: `https://docs.windsurf.com/windsurf/cascade/mcp`\n- OpenCode: `https://opencode.ai/docs/mcp-servers/`\n- GitHub Copilot (VS Code): `https://code.visualstudio.com/docs/copilot/customization/mcp-servers`\n- Skills: `https://github.com/cloudflare/skills`\n- Cloudflare API MCP server (Code Mode): `https://github.com/cloudflare/mcp`\n- Other Cloudflare MCP servers: `https://github.com/cloudflare/mcp-server-cloudflare`\nThese instructions are published at `https://developers.cloudflare.com/agent-setup/prompt.md` so you can re-verify their authenticity at any time.", "url": "https://wpnews.pro/news/sets-up-your-ai-agent-for-cloudflare", "canonical_source": "https://developers.cloudflare.com/agent-setup/prompt.md", "published_at": "2026-07-07 19:36:52+00:00", "updated_at": "2026-07-07 20:01:10.133691+00:00", "lang": "en", "topics": ["developer-tools", "ai-agents", "ai-infrastructure"], "entities": ["Cloudflare", "Claude Code", "Codex", "OpenCode", "Windsurf", "Cursor", "GitHub Copilot"], "alternates": {"html": "https://wpnews.pro/news/sets-up-your-ai-agent-for-cloudflare", "markdown": "https://wpnews.pro/news/sets-up-your-ai-agent-for-cloudflare.md", "text": "https://wpnews.pro/news/sets-up-your-ai-agent-for-cloudflare.txt", "jsonld": "https://wpnews.pro/news/sets-up-your-ai-agent-for-cloudflare.jsonld"}}