Cloudflare MCP
@shashankboosi
About Cloudflare MCP
Build an MCP server and deploy it to cloudflare workers
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"cloudflare-mcp": {
"command": "npx",
"args": [
"@modelcontextprotocol/inspector"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Cloudflare MCP?
Cloudflare MCP is a template repository for creating and deploying a Model Context Protocol (MCP) server on Cloudflare Workers. It is intended for developers who want to build custom MCP servers that run on Cloudflare’s edge network and can be integrated with AI agents.
How to use Cloudflare MCP?
To get started, run npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless to create a new project from the template. Navigate into the project directory and run npm start to run the server locally. For production, deploy with npm run deploy, which publishes the server as a Cloudflare Worker with an SSE endpoint.
Key features of Cloudflare MCP
- Creates a new MCP server using a Cloudflare-provided template
- Runs locally with a single
npm startcommand - Deploys to Cloudflare Workers with
npm run deploy - Supports testing via MCP Inspector and Cloudflare Playground
- Uses SSE transport for remote MCP communication
- Requires only Node.js, Wrangler CLI, and a Cloudflare account
Use cases of Cloudflare MCP
- Build custom MCP servers to expose tools and resources to AI agents
- Deploy MCP servers at the edge for low-latency access
- Rapidly prototype and test MCP tools using Cloudflare’s developer tools
- Integrate Cloudflare Workers’ capabilities (e.g., KV, D1, AI) into MCP toolkits
FAQ from Cloudflare MCP
What are the prerequisites for using Cloudflare MCP?
You need Node.js (version 18 or later), the Wrangler CLI (npm install -g wrangler), and a Cloudflare account for deployments.
How do I test my MCP server locally?
Run npm start to start the server, then use npx @modelcontextprotocol/inspector to inspect and test your tools and resources. You can also connect to the server using the Cloudflare Playground at https://playground.ai.cloudflare.com/.
Where is the MCP server deployed?
It deploys to Cloudflare Workers at a URL like https://my-mcp-server.<your-account>.workers.dev/sse, using Server-Sent Events (SSE) as the transport protocol.
Does the template include authentication?
The template is labeled “authless”, meaning no built-in authentication is included. Users may need to add their own authentication layer for production use.
More Cloud & Infrastructure MCP servers
Lambda MCP Server Demo (Streamable HTTP)
mikegc-awsCreates a simple MCP tool server with "streaming" HTTP.
MCP Gateway
mcp-ecosystem🧩 MCP Gateway - A lightweight gateway service that instantly transforms existing MCP Servers and APIs into MCP servers with zero code changes. Features Docker deployment and management UI, requiring no infrastructure modifications.
AWS Model Context Protocol (MCP) Server
alexei-ledA lightweight service that enables AI assistants to execute AWS CLI commands (in safe containerized environment) through the Model Context Protocol (MCP). Bridges Claude, Cursor, and other MCP-aware AI tools with AWS CLI for enhanced cloud infrastructure management.
Sample Serverless MCP Servers
aws-samplesSample implementations of AI Agents and MCP Servers running on AWS Serverless compute
Query | MCP server for Supabase
alexander-zuevQuery MCP enables end-to-end management of Supabase via chat interface: read & write query executions, management API support, automatic migration versioning, access to logs and much more.
Comments