Cloudflare API MCP Server
Manage Cloudflare DNS, CDN, Workers, and security settings through your AI agent.
Quick Answer
- 1. The Cloudflare API MCP server lets Claude, Cursor, and VS Code interact with the Cloudflare API API through natural language.
- 2. Setup: Add the config to
claude_desktop_config.json, set your API Key variables, and restart. - 3. 3 operations available including List zones, List DNS records, Create DNS record.
- 4. Quality score: 66/99 — fair source quality and documentation coverage.
Overview
Category: Cloud Infrastructure
Auth: API Key
Endpoints: 3
Transport: STDIO
Command: npx -y @cloudflare/mcp-server
Spec: v4.0
Setup time: ~2 min (auth required)
Environment Variables
CLOUDFLARE_API_TOKENExample: your_cloudflare_api_token
One-Click Install
Copy the snippet for your MCP client and paste it in — zero editing required.
Claude Desktop
Add to claude_desktop_config.json
{
"mcpServers": {
"cloudflare": {
"command": "npx",
"args": [
"-y",
"@cloudflare/mcp-server"
],
"env": {
"CLOUDFLARE_API_TOKEN": "your_cloudflare_api_token"
}
}
}
}Cursor
Settings → MCP Servers → Add
{
"mcpServers": {
"cloudflare": {
"url": "https://mcpbridge.org/config/cloudflare.json"
}
}
}Saves as .cursor/mcp.json in the download. Move it to your project root.
VS Code
Use with MCP extension
{
"mcpServers": {
"cloudflare": {
"url": "https://mcpbridge.org/config/cloudflare.json"
}
}
}MCP Server Configuration
Add this to your claude_desktop_config.json or Cursor MCP settings.
{
"mcpServers": {
"cloudflare": {
"command": "npx",
"args": ["-y","@cloudflare/mcp-server"],
"env": {
"CLOUDFLARE_API_TOKEN": "your_cloudflare_api_token"
}
}
}
}What You Can Build
With the Cloudflare API MCP server, your AI assistant can:
- Access 3 API operations through natural language
- Read, create, and modify cloud infrastructure resources without writing HTTP requests
- Chain multiple operations in a single conversation for complex workflows
- Combine with other MCP servers for cross-tool automation
Endpoints
/zonesList zones
/zones/{zone_id}/dns_recordsList DNS records
/zones/{zone_id}/dns_recordsCreate DNS record
Authentication
This API requires API Key authentication.
Set the required environment variables in your MCP client before using this server. Refer to the Cloudflare API API documentation to obtain credentials.
Required environment variables:
CLOUDFLARE_API_TOKEN
Spec Version
Version: 4.0
Spec version published with the OpenAPI document. Config auto-updates when the spec changes.
Page last updated: June 13, 2026
Quality Score
- +Official source (+30)
- +Has documentation (+12)
- +Auth type defined (+8)
- +OpenAPI spec available (+8)
- +3 endpoints (+8)
Build with Cloudflare API
Get everything you need in one bundle: MCP config, cursor rules, and framework integration for Cloudflare API.
View Cloudflare Edge Stack→Read the Guide
Step-by-step walkthrough for setting up and using the Cloudflare API MCP server.
Cloudflare APIMCP Setup Guide →This listing is verified by the API owner.
Similar APIs
Other APIs in the Cloud Infrastructure category.
Supabase API
Manage Supabase projects, databases, authentication, and storage through your AI agent.
API KeyVercel API
Deploy projects, manage domains, and monitor deployments through your AI agent.
Bearer TokenDigitalOcean API
# Introduction The DigitalOcean API allows you to manage Droplets and resources within the DigitalOcean cloud in a simple, programmatic way using conventional HTTP requests. All of the functionality that you are familiar with in the DigitalOcean control panel is also available through the API, all
AWS Migration Hub
<p>The AWS Migration Hub API methods help to obtain server and application migration status and integrate your resource-specific migration tool by providing a programmatic interface to Migration Hub.</p> <p>Remember that you must set your AWS Migration Hub home region before you call any of these AP