# Connect the Cloudflare MCP server to Unblocked to give AI agents live Workers context

URL: https://getunblocked.com/integrations/cloudflare/

Unblocked connects to Cloudflare’s MCP server so AI coding agents can query your Workers logs, invocations, and metrics live — then its Context Engine reconciles what they find with the code, pull requests, and conversations behind it.

---

## Cloudflare integration details

- **Category:** Cloud Infrastructure
- **Live-queried data:** Workers logs, invocations, metrics
- **Supported products:** Cloudflare Workers · Workers Logs
- **Works with:** Claude Code, Cursor, Devin, GitHub Copilot, Codex, OpenCode, VS Code — via one MCP server connection
- **Maintained by:** Cloudflare · verified by Unblocked
- **Content reviewed:** October 19, 2026
- **Website:** <https://www.cloudflare.com>

## What the Cloudflare integration adds

Debugging a Cloudflare Worker usually means leaving the editor for the Cloudflare dashboard to read invocation logs, then working out which deploy changed what. Cloudflare’s MCP server exposes those Workers logs and metrics to AI agents, and Unblocked connects to it once so every agent can ask about a Worker without its own Cloudflare setup.

This is a third-party MCP server: Cloudflare hosts and maintains it, and Unblocked connects to it as a verified MCP server. Nothing is ingested or indexed — Unblocked calls the read-only tools you select at the moment a question needs them, so answers reflect your Workers as they are now.

Wiring Cloudflare’s MCP server straight into an agent gives it raw log queries. Unblocked’s Context Engine reasons across those results and your other sources — following an error spike to the deploy, the pull request, and the Slack thread behind it — and returns one cited answer.

Once connected, any MCP-compatible coding agent — Claude Code, Cursor, Devin, GitHub Copilot, Codex — reaches Cloudflare context through a single Unblocked MCP server connection.

### What you get

- **Live Workers logs and metrics** — Agents query invocation logs, errors, and metrics as they are right now, through Cloudflare’s own MCP server rather than an index built hours ago.
- **One connection for every agent** — Connect Cloudflare to Unblocked once. Claude Code, Cursor, Codex, and GitHub Copilot reach it through the Unblocked MCP server, with no per-agent Cloudflare configuration.
- **Read-only, tool-level control** — Only read-only tools are offered, and you choose which of them Unblocked may call. Change the selection anytime from Settings → Data Sources.
- **Context Engine reasoning** — Cloudflare results are reconciled with your code, pull requests, incidents, and conversations, so an error in a Worker leads to the change behind it — with citations.

## How to connect Cloudflare to Unblocked

Prerequisites:

- An Unblocked account (free to start).
- A Cloudflare account with Workers Logs enabled on the Workers you want to query, and permission to authorize an OAuth app for that account.
- An MCP-compatible coding agent (Claude Code, Cursor, Devin, etc.) to use the context in your editor.

### Step 1: Connect Cloudflare to Unblocked

1. In Unblocked, go to Settings → Data Sources → Connect another data source, and under Cloud Infrastructure select Cloudflare.
2. The Cloudflare MCP server URL is filled in for you. Choose OAuth, click Connect, and sign in to Cloudflare to authorize Unblocked.
3. Once Unblocked discovers the server’s tools, select the read-only tools it may use and click Save Settings.

### Step 2: Install the Unblocked MCP server

On macOS or Linux, one command auto-detects and configures the supported agents on your machine:

```bash
curl -fsSL https://getunblocked.com/install-mcp.sh | bash
```

On Windows, or when you prefer remote MCP, add the server manually using the configuration below or follow the manual install guide: <https://docs.getunblocked.com/unblocked-mcp/mcp-overview>

Claude Code — add the remote server, then run /mcp in Claude Code, select unblocked, and log in via OAuth:

```bash
claude mcp add -s user --transport http unblocked https://getunblocked.com/api/mcpsse
```

Cursor — open View: Open MCP Settings → Add Custom MCP, add the server, then click Connect to authenticate via OAuth:

```json
{
  "mcpServers": {
    "unblocked": {
      "url": "https://getunblocked.com/api/mcpsse"
    }
  }
}
```

Any MCP-compatible client (Devin, Codex, VS Code, Claude Desktop, and others) can connect to the remote server with OAuth: `https://getunblocked.com/api/mcpsse`

## Cloudflare MCP server tools

Cloudflare hosts and maintains this MCP server. Unblocked calls only the read-only tools you select, at the moment a question needs them:

- **`query_worker_observability`** — Queries Workers Observability to list log events, calculate metrics, and find specific invocations across your Workers.
- **`observability_keys`** — Lists the fields available in your Workers logs — metadata, Worker-specific, and custom logged fields — so queries filter on real field names.
- **`observability_values`** — Finds the values a field takes, so a query can filter on the exact Worker, status, or custom value it needs.

## Connect Cloudflare to Claude Code, Cursor, and other AI agents

To give Claude Code, Cursor, GitHub Copilot, Codex, or another MCP-compatible AI coding agent access to Cloudflare context, connect Cloudflare to Unblocked and add the single Unblocked MCP server to your agent.

Unblocked acts as the MCP context layer for your Cloudflare data, searching Workers logs, invocations, and metrics alongside your other connected sources and returning cited results through these tools:

- **`context_research`** — Researches a question across your connected sources and calls the Cloudflare tools you selected when Workers logs or metrics are relevant, returning a synthesized answer with citations.
- **`context_get_urls`** — Fetches the full content behind URLs your agent encounters across connected sources — Jira, Linear, Notion, Confluence, Slack, GitHub, and more.

## Questions to ask an AI agent about Cloudflare

Questions you (or your agent) can ask Unblocked about your Cloudflare data:

- "Why did errors on the api-gateway Worker spike yesterday, and which pull request shipped just before?"
- "Which Worker used the most CPU time this week, and who last changed it?"
- "Compare error rates between the production and staging Workers since the last deploy."
- "What do the logs for this failed invocation say, and is there a Slack thread or ticket about it?"

## Cloudflare integration FAQ

### What is the Cloudflare MCP server?

The Cloudflare MCP server is a remote Model Context Protocol server, hosted and maintained by Cloudflare, that lets AI agents query Workers Observability — the logs, invocations, and metrics of your Cloudflare Workers. Unblocked connects to it as a verified MCP server, so every agent reaches it through one Unblocked connection.

### How do I connect the Cloudflare MCP server to Claude Code or Cursor?

Connect Cloudflare to Unblocked once, then add the single Unblocked MCP server to Claude Code, Cursor, Codex, GitHub Copilot, or any MCP-compatible agent. Every agent reaches Cloudflare through Unblocked, so none of them needs its own Cloudflare MCP configuration.

### Who maintains the Cloudflare MCP server?

Cloudflare hosts and maintains it. Unblocked lists it as a verified MCP server and connects to it like any custom MCP server, calling only the read-only tools you select.

### Does Unblocked index my Cloudflare logs?

No. Nothing from Cloudflare is ingested or indexed. Unblocked calls Cloudflare’s tools while it answers a question, so results reflect your Workers at that moment.

### Can Unblocked change my Cloudflare configuration?

No. Only read-only tools are available for selection, and Unblocked excludes any tool that might modify data.

### How is this different from connecting Cloudflare’s MCP server directly to my agent?

A direct connection gives one agent raw log queries. Through Unblocked, every agent shares one connection, and the Context Engine reasons across Cloudflare results and your code, pull requests, docs, and conversations — resolving conflicts and returning a cited answer instead of raw results.

## Related integrations

- [Datadog](https://getunblocked.com/integrations/datadog/) — Incidents, logs, metrics, monitors, and hosts from Datadog — referenced in answers so investigations connect symptoms to recent changes.
- [Sentry](https://getunblocked.com/integrations/sentry/) — Issues, errors, and events from Sentry — connected to the code and pull requests behind them for faster root-cause analysis.
- [Grafana](https://getunblocked.com/integrations/grafana/) — Metrics, logs, and dashboards from Grafana’s verified MCP server, queried live while Unblocked answers — nothing is ingested or indexed.
- [GitHub](https://getunblocked.com/integrations/github/) — Repositories, pull requests, issues, discussions, and full code history — indexed, kept in sync on every push, and cited in answers.

## Get started with Unblocked

- Start a free trial: <https://getunblocked.com/dashboard/get-started>
- Pricing: <https://getunblocked.com/pricing/>
- All integrations: <https://getunblocked.com/integrations/>
