About Cloudflare MCP
Cloudflare MCP is a workshop repository for creating an MCP server and deploying it to Cloudflare Workers. It covers local startup, testing with MCP inspector, and deployment with Wrangler.
Key features
- 01Create a server from a Cloudflare template
- 02Run the server locally
- 03Test with MCP inspector
- 04Deploy to Cloudflare Workers
Use cases
- 01Start an MCP server project
- 02Test a server during development
- 03Deploy a server to a Workers URL
MCP support
The repository guides users through creating and deploying an MCP server. The deployed server is available at a Cloudflare Workers URL.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMECloudflare MCP
This repository contains the code to create an MCP server and deploy it on Cloudflare workers
Pre-requisites
Before starting this workshop, please ensure you have the following installed:
- Node.js (version 18 or later) - Download
- Wrangler CLI - Install with
npm install -g wrangler - A Cloudflare account for deployments
Getting started
-
Create a new MCP Server using the Cloudflare template
npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless -
Navigate to the project directory
cd my-mcp-server -
Run this MCP Server locally You can start your MCP Server by running the following command:
npm start
Testing
Test your MCP Server using MCP inspector To test your MCP Server, you can use the MCP inspector:
npx @modelcontextprotocol/inspector
You will see the inspector with all the tools as seen below

You can also use cloudflare playground which is a platform provided by cloudflare to connect an MCP server
Deploying
You can deploy this server to cloudflare workers with a single command, the first time you might be needed to establish a connection to workers via wrangler but it is straight forward
npm run deploy
This will deploy your MCP server to a Cloudflare Workers URL like:
https://my-mcp-server.<your-account>.workers.dev/sse
Credits
Thanks to Ricky Robinett from Cloudflare for connecting these amazing technolgies to showcase, how easy it is to deploy our own
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.