Cloudflare Observability MCP Server
Connect Cloudflare Observability to your AI agents with the Cloudflare Observability MCP server.
Updated
What is Cloudflare Observability MCP?
The Cloudflare Observability MCP server is a Model Context Protocol server that connects Cloudflare Observability to AI agents and assistants as a set of tools. With it connected, an agent can work with Cloudflare Observability (debug apps via logs and analytics) directly — instead of you copying data in and out by hand.
It is a remote MCP server that uses OAuth, so you point your client at the server URL, authorize once, and the Cloudflare Observability tools become available to the model.
Connect the Cloudflare Observability MCP server
Connect Cloudflare Observability MCP to Claude Code
- 1
Add the server
Use `claude mcp add` with the Cloudflare Observability MCP server URL (or its `npx` command), following the official docs.
- 2
Authorize
Complete authentication (OAuth) so Claude Code can call the server.
- 3
Verify
Ask Claude to use a Cloudflare Observability tool to confirm the connection is live.
Connect Cloudflare Observability MCP to Cursor
- 1
Open MCP settings
In Cursor, go to Settings → MCP → Add new server.
- 2
Add Cloudflare Observability
Provide the Cloudflare Observability MCP server URL or command and complete authentication.
- 3
Test
Reference Cloudflare Observability from chat to confirm Cursor can reach the tools.
Sample use cases
An SRE monitors edge error rates across Cloudflare zones
The agent queries Cloudflare analytics for 5xx error spikes, identifies the affected zone and origin, and posts an alert with request samples to the ops channel.
A performance engineer tracks page load times at the edge
It pulls TTFB and cache-hit ratios from Cloudflare's analytics API, compares against the weekly baseline, and flags routes with degraded performance.
A security analyst reviews WAF event trends
The agent queries Cloudflare firewall events for the past 24 hours, groups blocked requests by rule ID and source country, and generates a daily threat summary.
A DevOps lead validates a Cloudflare Workers deployment
After deploying a new Worker version, the agent monitors error rates and latency for the route over the next hour, confirming the rollout is healthy.
A cost analyst tracks bandwidth usage across zones
It reads Cloudflare bandwidth metrics daily, compares against the plan quota, and warns the team when usage is projected to exceed the threshold.
An incident responder investigates a traffic anomaly
The agent pulls request counts, unique IPs, and geographic distribution from Cloudflare analytics to determine if a spike is a DDoS attempt or a legitimate traffic surge.
A caching engineer audits cache performance by content type
It queries cache-hit ratios segmented by content type (HTML, JS, images), identifies under-cached assets, and recommends cache rule adjustments.
Using Cloudflare Observability MCP with Gamut
On Gamut, the Cloudflare Observability MCP server becomes a tool your agents use inside an automated, event-driven workflow — triggered by an event or a schedule, acting through Cloudflare Observability and your other connected MCP servers, with the connection managed by Gamut rather than a local config file.
Frequently asked questions
What is the Cloudflare Observability MCP server?
It is a Model Context Protocol server that exposes Cloudflare Observability to AI agents as tools so they can work with it (debug apps via logs and analytics).
How do I connect the Cloudflare Observability MCP server?
Point your MCP client (Claude, Cursor, or Gamut) at the Cloudflare Observability MCP server URL and complete authentication (OAuth). See the official documentation for the exact URL and scopes.
Can I use Cloudflare Observability MCP with Gamut?
Yes — Gamut supports the Cloudflare Observability MCP server, so your agents can use it as a tool in automated, triggered workflows.
What does Cloudflare Observability include?
Cloudflare Observability encompasses analytics, logging, and monitoring features across Cloudflare's network — including request analytics, WAF events, Workers metrics, and DNS query data.
Can I export Cloudflare logs to my own analytics platform?
Yes. Cloudflare Logpush delivers logs to destinations like S3, R2, Splunk, Datadog, and BigQuery in near-real-time for custom analysis and long-term retention.
Is Cloudflare Observability available on the free plan?
Basic analytics (traffic, caching, security overview) are available on all plans. Advanced features like Logpush, detailed WAF analytics, and extended data retention require paid plans.
How does the Cloudflare Observability MCP server work?
The MCP server gives AI agents access to Cloudflare analytics, firewall events, and performance metrics through standardized tools, replacing manual dashboard checks with automated queries.