Cursor + Cloudflare
import { Steps, LinkCard } from "/components";
import AgentHeader from "/components/agent-setup/AgentHeader.astro";
import PlatformAccess from "/components/agent-setup/PlatformAccessSection.astro";
import ExamplePromptsList from "/components/agent-setup/ExamplePromptsList.astro";
import RandomPrompt from "/components/agent-setup/RandomPrompt.astro";
import TipsList from "/components/agent-setup/TipsList.astro";
import FAQList from "/components/agent-setup/FAQList.astro";
import FAQItem from "/components/agent-setup/FAQItem.astro";
import TroubleshootingList from "/components/agent-setup/TroubleshootingList.astro";
import TroubleshootingItem from "/components/agent-setup/TroubleshootingItem.astro";
import BuildAgentsCallout from "/components/agent-setup/BuildAgentsCallout.astro";
import OtherAgents from "/components/agent-setup/OtherAgents.astro";
Quick start
1. **Install Cursor** Download Cursor for macOS, Windows, or Linux from the [Cursor downloads page](https://cursor.com/downloads). For additional information, see the [Cursor installation guide](https://cursor.com/docs/get-started/installation).
2. **Install the Cloudflare plugin**
In Cursor, run the following command or install from the [Cursor Marketplace](https://cursor.com/marketplace/cloudflare). This installs Cloudflare Skills and registers the Cloudflare MCP servers.
```txt
/add-plugin cloudflare
```
3. **Try a prompt**
For example:
<RandomPrompt />
Cloudflare platform access
Example prompts
Tips
- The Cloudflare API MCP server uses Code Mode — Cursor writes JavaScript against a typed API to reach any of 2,500+ endpoints in ~1,000 tokens.
- Add
@wrangler.jsoncor@cloudflare.config.tsto your Composer prompts so Cursor sees your current bindings when generating or modifying code.
FAQ
All three work together. Skills give Cursor persistent Cloudflare knowledge loaded into every Composer prompt. The Cloudflare API MCP server handles platform operations (DNS, WAF, R2 buckets, Zero Trust). Wrangler runs local dev and Workers-specific commands. The bundled `wrangler` Skill teaches Cursor when to reach for which. For tasks across the whole Cloudflare API, Cursor can also use the [Cloudflare CLI](/cf/), `cf`. Yes. The [Cloudflare CLI](/cf/), `cf`, is in beta and covers the whole Cloudflare API and prints JSON output. Install it with `npm install -g cf`, sign in with `cf auth login`, and tell Cursor to prefer it in your project rules or `AGENTS.md`. Refer to [Use cf with AI agents](/cf/agents/). Install the Skills plugin (from the Cursor Marketplace, or Settings > Rules > Add Rule > Remote Rule with `cloudflare/skills`). The first time Cursor calls a Cloudflare tool, you will be redirected to authorize via OAuth and choose permissions. Yes. Ask Composer to deploy your project. Cursor runs `wrangler deploy` or `cf deploy` in the integrated terminal, depending on how the project is configured, and can also call the API MCP server for managed deploys and resource creation.Troubleshooting
Verify your `.cursor/mcp.json` configuration is valid JSON. Restart Cursor after making changes to the MCP config. Point the agent directly at developers.cloudflare.com/llms.txt for a directory of every product, ordevelopers.cloudflare.com/<product>/llms.txt
for a product-specific index.
Add Workers documentation to your project
context. Use @-mentions to reference `wrangler.jsonc` or `cloudflare.config.ts`.
Build agents on Cloudflare
Other agents
谢谢你的反馈!