Servers
Building a Remote MCP Server on Cloudflare (Without Auth)
@sverze
Overview
What is Building a Remote MCP Server on Cloudflare (Without Auth)?
This example lets you deploy a remote Model Context Protocol (MCP) server on Cloudflare Workers that does not require any authentication. It is intended for developers who want to quickly expose MCP tools over the internet without managing access control.
How to use Building a Remote MCP Server on Cloudflare (Without Auth)?
Deploy the server with the one‑click Cloudflare button or via the command line (npm create cloudflare@latest). Customize it by adding tools inside the init() method of src/index.ts using this.server.tool(...). Connect remote MCP clients (such as Cloudflare AI Playground or Claude Desktop with the mcp-remote proxy) by pointing them to the deployed SSE endpoint.
Key features of Building a Remote MCP Server on Cloudflare (Without Auth)
- Deploy an MCP server without any authentication.
- One‑click deployment using the Cloudflare “Deploy to Workers” button.
- Customize tools directly in
src/index.tsviathis.server.tool(...). - Connect from the Cloudflare AI Playground as a remote MCP client.
- Works with local MCP clients through the
mcp-remoteproxy.
Use cases of Building a Remote MCP Server on Cloudflare (Without Auth)
- Rapidly prototype and test MCP tools without setting up authentication.
- Expose MCP tools for use in