cloudflare-api-mcp logo

cloudflare-api-mcp

by zueai

This is a lightweight Model Control Protocol (MCP) server deployed on Cloudflare Workers. It allows agents like Cursor to interface with the Cloudflare REST API.

View on GitHub

Last updated: N/A

What is cloudflare-api-mcp?

cloudflare-api-mcp is a Model Control Protocol (MCP) server that acts as an intermediary between agents (like Cursor) and the Cloudflare REST API. It's built using Cloudflare Workers and provides a way to programmatically manage Cloudflare resources.

How to use cloudflare-api-mcp?

  1. Install using the automated install script: bun create mcp --clone https://github.com/zueai/cloudflare-api-mcp. 2. Add the MCP server to your agent (e.g., Cursor). 3. Upload your Cloudflare API key and email to your worker secrets using bunx wrangler secret put. 4. Create new MCP tools by adding methods to the MyWorker class in src/index.ts.

Key features of cloudflare-api-mcp

  • Lightweight

  • Cloudflare Workers based

  • MCP compliant

  • Extensible with custom tools

  • Automated installation

Use cases of cloudflare-api-mcp

  • Automating Cloudflare DNS management

  • Integrating Cloudflare API with AI agents

  • Creating custom Cloudflare management tools

  • Programmatically managing Cloudflare resources

  • Building workflows that interact with the Cloudflare API

FAQ from cloudflare-api-mcp

What is MCP?

MCP stands for Model Control Protocol. It's a protocol for agents to interact with tools.

What is Cloudflare Workers?

Cloudflare Workers is a serverless platform that allows you to run code on Cloudflare's edge network.

How do I add new tools?

Add methods to the MyWorker class in src/index.ts. Each function will automatically become an MCP tool.

What are the required secrets?

You need to upload your Cloudflare API key and email to your worker secrets.

Where can I find the list of available tools?

See src/index.ts for the current list of tools. Every method in the class is an MCP tool.