drio
Open app

cloudflare-api-mcp

Source

Lightweight MCP server to give your Cursor Agent access to the Cloudflare API.

Catalog onlyCatalog onlySTDIO

Overview

cloudflare-api-mcp is a lightweight Model Control Protocol (MCP) server that allows agents, such as Cursor, to interface with the Cloudflare REST API.

To use cloudflare-api-mcp, clone the repository, deploy it to your Cloudflare account, and configure it with your Cloudflare API key and email.

  • Lightweight MCP server for Cloudflare API access - Easy installation and deployment process - Ability to create new MCP tools by adding methods to the server
  1. Automating DNS record management through Cloudflare.
  2. Integrating Cloudflare API functionalities into custom applications.
  3. Enhancing Cursor's capabilities with Cloudflare API tools.

Add to your AI client

Use these steps to connect cloudflare-api-mcp in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "cloudflare-api-mcp-zueai": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-cloudflare-api-mcp-zueai"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "cloudflare-api-mcp-zueai": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-cloudflare-api-mcp-zueai"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "cloudflare-api-mcp-zueai": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-cloudflare-api-mcp-zueai"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "cloudflare-api-mcp-zueai": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-cloudflare-api-mcp-zueai"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "cloudflare-api-mcp-zueai": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-cloudflare-api-mcp-zueai"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "cloudflare-api-mcp-zueai": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-cloudflare-api-mcp-zueai"
      ]
    }
  }
}

FAQ

Is cloudflare-api-mcp free to use?

Yes! It is open-source and free to use.

Can I add my own tools to the MCP server?

Yes! You can create new MCP tools by adding methods to the MyWorker class in the source code.

What programming language is used in cloudflare-api-mcp?

The project is developed in TypeScript.

cloudflare-api-mcp — MCP Registry