cloudflare-api-mcp
cloudflare-api-mcp is a lightweight MCP server enabling interaction with the Cloudflare REST API via agents like Cursor. It provides customizable tools by adding methods in its source code and is deployable through Cloudflare Workers.
How do I install the cloudflare-api-mcp server?
Run the automated install script using bun create mcp --clone https://github.com/zueai/cloudflare-api-mcp
and follow the instructions to deploy it to your Cloudflare account.
How can I add new MCP tools?
To create new MCP tools, add methods to the MyWorker class in src/index.ts. Each function will automatically become an MCP tool.
What is required for local development?
Add your Cloudflare API key and email to the .dev.vars file for local development.
How do I deploy the server?
Run the deploy script using bun run deploy
and reload your Cursor window to see the new tools.
Where can I find more documentation?
Refer to the Model Control Protocol Documentation, create-mcp Documentation, workers-mcp, Cloudflare Workers documentation, and Cloudflare API Documentation for more information.