cloudflare-api-mcp logo

cloudflare-api-mcp

by amxv

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

View on GitHub

Last updated: N/A

What is cloudflare-api-mcp?

cloudflare-api-mcp is an MCP server that enables agents to interact with the Cloudflare REST API. It's built using create-mcp and deployed on Cloudflare Workers, providing a serverless environment for managing Cloudflare resources programmatically.

How to use cloudflare-api-mcp?

  1. Use the automated install script to clone and deploy the server. 2. Add the server to your agent's MCP settings. 3. Upload your Cloudflare API key and email as worker secrets. 4. Create new MCP tools by adding methods to the MyWorker class in src/index.ts.

Key features of cloudflare-api-mcp

  • Lightweight

  • Serverless

  • Cloudflare API Integration

  • Extensible with custom tools

  • Automated deployment

Use cases of cloudflare-api-mcp

  • Automating Cloudflare DNS record management

  • Programmatically managing Cloudflare firewall rules

  • Integrating Cloudflare services with AI agents

  • Creating custom Cloudflare management tools

  • Automated deployment and configuration of Cloudflare resources

FAQ from cloudflare-api-mcp

What is MCP?

MCP stands for Model Control Protocol. It's a protocol for agents to interface with servers and execute commands.

What is create-mcp?

create-mcp is a tool for bootstrapping MCP servers.

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 information is needed to deploy?

You need a Cloudflare API key and email address associated with your Cloudflare account.

Where can I find more information about Cloudflare API?

You can find more information in the Cloudflare API Documentation: https://developers.cloudflare.com/api/