Skip to main content
Glama

Cloudflare API MCP Server

by zueai
cache.ts414 B
import { Cloudflare } from "cloudflare" export async function purgeEverything(env: Env, zoneId: string) { const client = new Cloudflare({ apiKey: env.CLOUDFLARE_API_KEY, apiEmail: env.CLOUDFLARE_API_EMAIL }) const response = await client.cache.purge({ zone_id: zoneId, purge_everything: true }) return { content: [ { type: "text", text: JSON.stringify(response, null, 2) } ] } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zueai/cloudflare-api-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server