cloudflare-api-mcp

Author:@amxv
View on GitHub

Overview

cloudflare-api-mcp is a Model Control Protocol (MCP) server that lets your Cursor AI Agent interact directly with the Cloudflare API.

To get started, run the automated setup script. It will clone the worker and deploy it to your Cloudflare account. Next, upload your Cloudflare API key and email as worker secrets, then add the server to Cursor using the MCP command.

Its key features include interfacing with the Cloudflare REST API, providing tools for managing DNS records, purging cache, and listing zones. Setup is simple using Cloudflare Workers.

Common use cases are managing DNS records for websites, automating cache purges for dynamic content, and listing or managing multiple Cloudflare zones.

It is free to use as it runs on Cloudflare Workers. The project is built with TypeScript. To add new tools, you can extend the MyWorker class in src/index.ts.