Skip to main content

Arm Your Agent

Connect your AI coding agent to Cloudflare so it can create resources, read live docs, and deploy on your behalf. Do this once, before the build block starts.

Prerequisites

If you completed Pre-flight, you already have Node 18+ and a Wrangler login. If not, do that first — this page assumes it.

Quick setup

Already have an agent? Paste this into it to install Cloudflare's agent tooling in one step:

Fetch https://developers.cloudflare.com/agent-setup/prompt.md

This works with Claude Code, Cursor, Windsurf, GitHub Copilot, OpenCode, and Codex.

Pick your agent

If you don't have one yet, pick one below.

Terminal agents

AgentDescriptionGuide
Claude CodeTerminal-based coding agent by Anthropic. Full codebase understanding, command execution, git operations, multi-file editing.Setup guide
CodexLightweight open-source terminal agent by OpenAI. File read/write, command execution, web browsing, sandboxed environment.Setup guide
OpenCodeOpen-source terminal agent with a rich TUI that works with 75+ LLMs. Made by Anomaly.Setup guide

IDE agents

AgentDescriptionGuide
CursorAI-first IDE built on VS Code with multi-file Composer edits and background agents.Setup guide
WindsurfAgentic IDE with Cascade context engine and Flows for multi-step tasks.Setup guide
GitHub CopilotEditor extension and CLI with agent mode, workspace context, and native PR integration.Setup guide

Manual MCP setup

If the quick setup doesn't work for your agent, add these MCP servers manually.

Cloudflare API (full platform access)

Gives your agent access to the entire Cloudflare API — over 2,500 endpoints — through search() and execute() tools.

{
"mcpServers": {
"cloudflare-api": {
"url": "https://mcp.cloudflare.com/mcp"
}
}
}

You'll authorize via OAuth when you first connect.

Cloudflare Documentation

Up-to-date developer docs context for your agent:

{
"mcpServers": {
"cloudflare-docs": {
"url": "https://docs.mcp.cloudflare.com/mcp"
}
}
}

Agents SDK Docs

If you're building an AI agent (today's build task asks you to):

{
"mcpServers": {
"agents-sdk": {
"url": "https://agents.cloudflare.com/mcp"
}
}
}

Other Cloudflare MCP servers

Pick the ones relevant to your build:

ServerURLDescription
Workers Bindingshttps://bindings.mcp.cloudflare.com/mcpBuild Workers with storage, AI, and compute primitives
Workers Buildshttps://builds.mcp.cloudflare.com/mcpInsights and management for Workers Builds
Observabilityhttps://observability.mcp.cloudflare.com/mcpDebug with application logs and analytics
Container Sandboxhttps://containers.mcp.cloudflare.com/mcpSpin up a sandbox development environment
Browser Renderinghttps://browser.mcp.cloudflare.com/mcpFetch web pages, convert to markdown, take screenshots
AI Gatewayhttps://ai-gateway.mcp.cloudflare.com/mcpSearch logs, inspect prompts and responses

For the full list, see Cloudflare's MCP servers in the official docs.

Our event server — agenthack

This event runs its own MCP server, purpose-built for today: it can hand your agent the brief, your industry's playbook, cheat-sheet snippets, and it can submit your project for you when you're done.

{
"mcpServers": {
"agenthack": {
"url": "https://agenthack.events-cloudflare.com/mcp"
}
}
}
Landing before the build block

The tool list is being built out across the next few milestones. If you connect before it's fully wired, every tool responds honestly — either with real data or a clear "not available yet," never a silent failure or a made-up answer. Nothing here blocks your build: the docs pages, forms, and submit flow all work without it.

Verify it works

Ask your agent to create and deploy a Hello World Worker:

Create a new Cloudflare Worker that returns "Hello from Agent Hack Stockholm!" and deploy it.

If that works, you're armed. Head to Scope next to turn your team's pain point into a build spec — or jump to Level Up now if you want to read about the primitives before you're rushing.