# Cloudflare

Connects Cloudflare OpenAPI to your coding assistant to search endpoints and run JavaScript API requests.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · 199 installs
- Author: cloudflare
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://smithery.ai/server/cloudflare
- Updated: 2026-02-21
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/cloudflare

## What it does

This server runs at the remote endpoint `https://cloudflare.run.tools`. It exposes two tools: `search` and `execute`. The `search` tool navigates the OpenAPI specification with pre-resolved references. Covered areas include Workers, R2 storage, browser-rendering, and security rulesets.

The `execute` tool runs JavaScript against the Cloudflare API using `cloudflare.request()`. This helper handles GET, POST, PUT, PATCH, and DELETE calls. Execution follows a strict sequence. The assistant must look up the exact route via `search` before writing any request code.

## Requirements
- Remote server: `https://cloudflare.run.tools`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http cloudflare https://cloudflare.run.tools
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add cloudflare --url https://cloudflare.run.tools
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "cloudflare": {
            "url": "https://cloudflare.run.tools"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "cloudflare": {
            "type": "http",
            "url": "https://cloudflare.run.tools"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http cloudflare https://cloudflare.run.tools
```

## When to use it
- lookup routes in the Cloudflare OpenAPI specification
- run JavaScript queries via `cloudflare.request()`
- automate configuration for Workers and R2 storage
- inspect parameters for browser-rendering and security rulesets

## Example prompts
- Search the Cloudflare OpenAPI spec for Workers endpoints
- Run a GET request with `cloudflare.request()` to fetch current rulesets
- Find available API routes for browser-rendering

## Similar
- [Cloudflare Workers Bindings](https://affpapa.org/en/nevibecode/mcp/cloudflare-workers-bindings.md) — MCP server · 115 installs
- [cloudflare-development](https://affpapa.org/en/nevibecode/skills/cloudflare-development.md) — skill · 737 installs
- [cloudflare-manager](https://affpapa.org/en/nevibecode/skills/cloudflare-manager.md) — skill · 414 installs
- [cloudflare-knowledge](https://affpapa.org/en/nevibecode/skills/cloudflare-knowledge.md) — skill · 139 installs
- [cloudflare-deploy](https://affpapa.org/en/nevibecode/skills/githubcomopenaiskills-cloudflare-deploy.md) — skill · ★ 7191 repo stars
- [pp-cloudflare](https://affpapa.org/en/nevibecode/skills/pp-cloudflare.md) — skill · 169 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
