# Cloudflare GraphQL Analytics (verified)

GraphQL analytics API. Query zone, account, and network analytics data from Cloudflare.

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add cloudflare/graphql

# Browse available tools
npx -y @smithery/cli@latest tool list cloudflare/graphql

# Get full schema for a tool
npx -y @smithery/cli@latest tool get cloudflare/graphql accounts_list

# Call a tool
npx -y @smithery/cli@latest tool call cloudflare/graphql accounts_list '{}'
```

## Direct MCP Connection

Endpoint: `https://cloudflare-graphql.run.tools`

## Tools (10)

- `accounts_list` — List all accounts in your Cloudflare account
- `set_active_account` — Set active account to be used for tool calls that require accountId
- `zones_list` — List all zones under a Cloudflare account
- `zone_details` — Get details for a specific Cloudflare zone
- `graphql_schema_search` — Search the Cloudflare GraphQL API schema for types, fields, and enum values matching a keyword
- `graphql_schema_overview` — Fetch the high-level overview of the Cloudflare GraphQL API schema
- `graphql_type_details` — Fetch detailed information about a specific GraphQL type (dataset)
- `graphql_complete_schema` — Fetch the complete Cloudflare GraphQL API schema (combines overview and important type details)
- `graphql_query` — Execute a GraphQL query against the Cloudflare API
- `graphql_api_explorer` — Generate a Cloudflare GraphQL API Explorer link

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get cloudflare/graphql <tool-name>
```
