Step 0: Get set up
By the end you will be able to:
- Log in to Wrangler and see your own account
- Connect your coding agent to live Cloudflare docs and this event’s MCP server
- Have your agent deploy and delete a throwaway Worker to prove the whole chain works
Checking your assignment… If it cannot load, ask a host and continue with the guide.
The account id and hostname below are placeholders. They appear here once a host assigns you to a team and an account.
- Account
shown here once your account is ready- Account id
YOUR_ACCOUNT_ID- Demo hostname
YOUR_HOSTNAME
Use the Cloudflare account on your card (also on the Workspace page). No account yet? Ask a host: you can read on, but you can't deploy until it is ready.
Why it matters
- Your time is short. Nobody's first hour should go on a Node install or a blocked login.
- Do it once. It takes about ten minutes. The laptop part is also on Get ready, which is open before the day, so you can do it early.
- Every later step gets smaller. Each one becomes a small change to something that already works.
The concepts
Four things, in this order:
- Your laptop: Node and Wrangler (the Cloudflare CLI), logged in with the email your Cloudflare invitation went to.
- Your own account: everyone builds in their own Cloudflare account (one per person, not per team), so nobody can touch anyone else's work and every example in this guide works unchanged. A host invites you; only the account id and your demo hostname differ from person to person.
- Your coding agent: pointed at live Cloudflare docs, so it writes against what exists today instead of memory.
- This event's MCP server (
https://build-stockholm.events-cloudflare.com/mcp): the brief, the Idea Gallery and the steps, as tools your coding agent can call. Nothing here is required for the build: docs, forms and submit all work in the browser.
Do it
1. Laptop
- Node.js 22.12 or newer (nodejs.org) and a terminal (Terminal or iTerm on macOS, PowerShell on Windows).
- A laptop you can install npm packages on. Nothing to install globally: everything runs through
npx.
node -v # v22.12 or higher
npx wrangler --version # confirms npx and npm registry access
npx wrangler login # opens a browser tab: pick your own account if asked, then Allow
npx wrangler whoami # prints your email and the accounts you can use
Once you have accepted your invitation (check your inbox for it, and accept it with the same email), wrangler whoami lists your own account: its name and id are on your card, above and on the Workspace page. You may see other accounts too; that is normal, and you pin yours in wrangler.jsonc in Step 1.
Clear old settings first if you ever used another Cloudflare account from this terminal. An old CLOUDFLARE_API_TOKEN overrides your login and only works for the account it was made for, and an old CLOUDFLARE_ACCOUNT_ID points commands at the wrong place. Also look in your shell profile and in any .env file.
unset CLOUDFLARE_ACCOUNT_ID CLOUDFLARE_API_TOKEN
2. Your coding agent
Already use Claude Code, Cursor, Windsurf, GitHub Copilot, OpenCode or Codex? Paste this in:
What your agent will do
- Reads Cloudflare's setup instructions from that page.
- Installs Cloudflare's skills and MCP servers for your agent, the way your agent expects them.
Key ideas to understand
- Skill: instructions your agent loads when a task matches, for example how to build and deploy a Worker.
- MCP server: a service your agent can call as tools, here the live Cloudflare docs and API.
- Why it matters: your agent writes code against what Cloudflare offers today, not what it remembers from training.
The prompt ends by asking your agent to explain what it did. More in The concepts.
Fetch https://developers.cloudflare.com/agent-setup/prompt.md When you are done, tell me in three lines what you installed and what each one is for.
Paste it into your coding agent: the terminal, the IDE panel or the desktop app all work.
Per-agent guides: developers.cloudflare.com/agent-setup.
3. The event MCP server
Add it to your agent's MCP config. This is the common mcpServers shape (Cursor, Claude Desktop); other tools word it differently:
{
"mcpServers": {
"build-stockholm": {
"url": "https://build-stockholm.events-cloudflare.com/mcp"
}
}
}
In Claude Code, run claude mcp add --transport http build-stockholm https://build-stockholm.events-cloudflare.com/mcp instead. In any other tool, ask your agent to add the MCP server at that URL.
Tools: get_brief, list_ideas, get_idea, get_platform_guide, get_step, get_my_kit, get_shield_steps, scope_my_project, search_cloudflare_docs, ask_mentor, check_my_deploys, submit_project. None of them writes anything: submit_project only checks a draft, and you submit on the Submit page.
Check it worked
Ask your coding agent:
What your agent will do
- Creates a tiny Worker in a new folder,
hello-world, with your account id in itswrangler.jsonc. - Checks with
wrangler whoamithat your login can reach that account, and stops if it cannot. - Deploys it, opens its address, then deletes it again.
Key ideas to understand
- Worker: your code running on Cloudflare's network.
wrangler deployuploads it; your agent will be one. account_idinwrangler.jsonc: pins the account every command in that folder acts on. Without it, Wrangler can pick any account you belong to.workers.dev: the address a Worker gets when it has no route of its own. Your account already has a subdomain there; the starter keeps it off and uses your own hostname.
The prompt ends by asking your agent to explain these in your own code. More in The concepts.
In a new empty folder called hello-world, create a Cloudflare Worker named hello-world that returns "Hello from Build with Cloudflare Stockholm!". Use my own account: put "account_id": "<ACCOUNT ID FROM MY CARD>" in its wrangler.jsonc, run `npx wrangler whoami`, and stop if that account is not listed. Then deploy it, open the URL it prints, and delete it again with `npx wrangler delete`. When you are done, teach it back to me in under 200 words: what you changed and where (file and line), then one sentence each on these ideas as they apply to my code: Worker; account_id in wrangler.jsonc; workers.dev. End with one short question I can answer to check I understood.
Paste it into your coding agent: the terminal, the IDE panel or the desktop app all work.
Paste your real account id in place of the placeholder. The explicit account_id matters: a coding agent that creates a new folder also creates a new wrangler.jsonc, and without it Wrangler can pick any account you belong to.
wrangler whoamilists your own account.- The agent deploys the Worker, you see it answer, then it deletes it. Works? You are set.
Stuck?
npmhangs or errors. Usually a corporate laptop blocking the npm registry. Try a phone hotspot, or ask a host before the day.- The
wrangler loginpop-up is blocked. Wrangler also prints the login address in the terminal: copy it into another browser. Ask a host if that does not work either. wrangler whoamidoes not list your own account. You have not accepted your account invitation yet: check your inbox, or open Get ready to see where a host has got to. Then runnpx wrangler loginagain with the same email. Still missing? Tell a host.- Wrangler says your account has no workers.dev subdomain, or tries to register one. The hosts gave every account one (named after the account), so this means Wrangler is looking at a different account: check
account_idinwrangler.jsoncagainst your card and runnpx wrangler whoami. If the account is right and it still has none, open Workers & Pages in the dashboard once (that creates it), then ask the agent to deploy again. Do not let the agent pick and register a name for you. The starter does not need it: it keepsworkers.devoff and uses your own hostname. - A command ran in the wrong account. Check
account_idin that folder'swrangler.jsonc, then the clear-old-settings commands above. Delete anything you created in the wrong account. - No coding agent, or it cannot reach the MCP server. Skip it: nothing blocks your build without it.
Go further
| Server | URL | What for |
|---|---|---|
| Cloudflare API | https://mcp.cloudflare.com/mcp | The whole Cloudflare API via search()/execute(), AI Gateway logs included |
| Cloudflare Docs | https://docs.mcp.cloudflare.com/mcp | Up-to-date developer docs |
| Agents SDK Docs | https://agents.cloudflare.com/mcp | Building the agent itself |
| Browser Run | https://browser.mcp.cloudflare.com/mcp | Fetch pages, markdown, screenshots |
Full list: Cloudflare's MCP servers.
Setup done?
Checking your team…
Next: Step 1: Launch your first agent.
Need help? Raise a hand for a host, or ask the Mentor dock (it escalates to a host when unsure).