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.
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?
- 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 usingbunx wrangler secret put
. 4. Create new MCP tools by adding methods to theMyWorker
class insrc/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?
What is MCP?
MCP stands for Model Control Protocol. It's a protocol for agents to interact with tools.
What is Cloudflare Workers?
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?
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?
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?
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.