mcp

MCP.Pizza Chef: cloudflare

Cloudflare is the company many businesses use to host websites, store files, manage domain names, and block online attacks. This tool connects your AI assistant to your Cloudflare account so you can check on your sites, spin up new storage, update domain records, and review traffic numbers just by describing what you want in plain words. It works inside any AI assistant that lets you add this kind of outside connection. You'll need a Cloudflare account, and you can sign in through a quick authorization screen or create your own account token for automated setups.

Coding
Data

Use This MCP server To

List all the websites running on my Cloudflare account Create a new storage space for my files Point my domain name to a new address Check how much traffic my website got this week Turn on extra protection to block suspicious visitors Set up caching so my site loads faster Find and fix a broken domain record

README

Cloudflare MCP Server

A token-efficient MCP server for the entire Cloudflare API. 2500 endpoints in 1k tokens, powered by Code Mode.

Token Comparison

Approach Tools Token cost Context used (200K)
Raw OpenAPI spec in prompt — ~2,000,000 977%
Native MCP (full schemas) 2,594 1,170,523 585%
Native MCP (minimal — required params only) 2,594 244,047 122%
Code mode 3 ~1,100 0.5%

Get Started

MCP URL: https://mcp.cloudflare.com/mcp

Option 1: OAuth (Recommended)

Just connect to the MCP server URL - you'll be redirected to Cloudflare to authorize and select permissions.

Example JSON Configuration
{
  "mcpServers": {
    "cloudflare-api": {
      "type": "http",
      "url": "https://mcp.cloudflare.com/mcp"
    }
  }
}

Option 2: API Token

For CI/CD, automation, or if you prefer managing tokens yourself.

Create a Cloudflare API token with the permissions you need. Both user tokens and account tokens are supported. For account tokens, include the Account Resources : Read permission so the server can auto-detect your account ID.

Note: API tokens with Client IP Address Filtering enabled are not currently supported.

mcp FAQ

Can I use this to update my website's settings without logging into Cloudflare's dashboard?
Yes — you can ask your AI assistant to change domain records, turn on security features, or check a site's status, and it applies those changes directly to your Cloudflare account.
Can I use this to see how much traffic my website is getting?
Yes — you can ask for recent visitor and traffic numbers for any site connected to your Cloudflare account, and the assistant pulls the numbers for you.
Do I need a Cloudflare account already set up?
Yes. This tool connects to an existing Cloudflare account — it manages the sites, storage, and settings you already have rather than creating a new account for you.
Do I need to create a special key or token to connect?
Not necessarily. The simplest way is to sign in through a quick authorization screen when you connect, though you can also create your own access token if you want more control over what it's allowed to do.
How hard is this to set up?
It's about as simple as it gets — you add one web address to your AI assistant's connection settings, then sign in and approve access when prompted.
Which AI apps can I use this with?
Any AI assistant that lets you add an outside connection or tool of this kind. Check your assistant's settings for an option like "add connection," "add tool," or "add integration."
Will this let my AI assistant make changes without asking me first?
That depends on your AI assistant's own settings — most let you review or approve actions before they happen, so check your assistant for a confirmation option.
Can I limit what this is allowed to do in my Cloudflare account?
Yes — if you connect using your own access token instead of the quick sign-in, you can limit it to only the permissions you choose, such as read-only access or access to a single site.