Cloudflare GraphQL — Claude Code MCP server: what it does
Cloudflare GraphQL — an MCP server that fetches analytics from Cloudflare via GraphQL API. Useful when you need traffic metrics, request counts, or security events from Cloudflare zones in an agent conversation.
no license updated 2026-10-29
Open on GitHubWhat Cloudflare GraphQL does
The server connects to Cloudflare's GraphQL API and lets the agent query analytics: traffic volume, request counts, response codes, security events. Under the hood is a GraphQL client that sends requests to Cloudflare's endpoint and returns results to the agent.
Requires a Cloudflare API token with analytics read permissions. The server will not start without a token.
Returns raw GraphQL data: the agent can build a report, plot a chart in code, or compare metrics across periods.
What it helps with
- fetch traffic metrics from a Cloudflare zone
- query request counts and response codes for a period
- retrieve Web Application Firewall events
- compare analytics across two zones
- build a security report from Cloudflare data
Example prompts for the agent
- Show traffic for the last 24 hours for zone
example.com - Fetch HTTP response codes for the past week from Cloudflare analytics
- How many requests did WAF block yesterday?
How to install Cloudflare GraphQL
Install
The MCP registry has no launch command for it: see the repository README
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Cloudflare GraphQL
How to install Cloudflare GraphQL in Claude Code?
Add the server to your Claude Code MCP configuration, specify the path to the server executable, and pass your Cloudflare API token via an environment variable or parameter.
What does Cloudflare GraphQL do?
Connects to Cloudflare's GraphQL API and allows the agent to query analytics: traffic, requests, response codes, and security events from Cloudflare zones.
What does Cloudflare GraphQL require to work?
A Cloudflare API token with analytics read permissions. The server will not start without a token.