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
| Agent | Description | Guide |
|---|---|---|
| Claude Code | Terminal-based coding agent by Anthropic. Full codebase understanding, command execution, git operations, multi-file editing. | Setup guide |
| Codex | Lightweight open-source terminal agent by OpenAI. File read/write, command execution, web browsing, sandboxed environment. | Setup guide |
| OpenCode | Open-source terminal agent with a rich TUI that works with 75+ LLMs. Made by Anomaly. | Setup guide |
IDE agents
| Agent | Description | Guide |
|---|---|---|
| Cursor | AI-first IDE built on VS Code with multi-file Composer edits and background agents. | Setup guide |
| Windsurf | Agentic IDE with Cascade context engine and Flows for multi-step tasks. | Setup guide |
| GitHub Copilot | Editor 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:
| Server | URL | Description |
|---|---|---|
| Workers Bindings | https://bindings.mcp.cloudflare.com/mcp | Build Workers with storage, AI, and compute primitives |
| Workers Builds | https://builds.mcp.cloudflare.com/mcp | Insights and management for Workers Builds |
| Observability | https://observability.mcp.cloudflare.com/mcp | Debug with application logs and analytics |
| Container Sandbox | https://containers.mcp.cloudflare.com/mcp | Spin up a sandbox development environment |
| Browser Rendering | https://browser.mcp.cloudflare.com/mcp | Fetch web pages, convert to markdown, take screenshots |
| AI Gateway | https://ai-gateway.mcp.cloudflare.com/mcp | Search 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"
}
}
}
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.