Building a Remote MCP Server on Cloudflare (Without Auth)
@apewrench
Overview
What is Building a Remote MCP Server on Cloudflare (Without Auth)?
This example allows you to deploy a remote MCP server that doesn't require authentication on Cloudflare Workers.
How to use Building a Remote MCP Server on Cloudflare (Without Auth)?
Deploy via the "Deploy to Workers" button or run npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. Customize tools inside the init() method of src/index.ts using this.server.tool(...). Connect to Cloudflare AI Playground by entering the deployed SSE URL, or to Claude Desktop via the mcp-remote proxy in the client configuration.
Key features of Building a Remote MCP Server on Cloudflare (Without Auth)
- Deploy a remote MCP server without authentication
- Built on Cloudflare Workers infrastructure
- Add custom tools via the
init()method - Connect to Cloudflare AI Playground directly
- Use with Claude Desktop via
mcp-remoteproxy - Deploy with one click or npm command
Use cases of Building a Remote MCP Server on Cloudflare (Without Auth)
- Host a remote MCP server without requiring authentication
- Integrate custom MCP tools with Cloudflare AI Playground
- Connect a remote MCP server to local clients like Claude Desktop
- Quickly prototype and deploy MCP tools on Cloudflare Workers
FAQ from Building a Remote MCP Server on Cloudflare (Without Auth)
What does this MCP server do?
It deploys a remote MCP server on Cloudflare Workers that does not require authentication.
How do I deploy it?
Use the "Deploy to Workers" button or run npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless.
How can I customize the server?
Add tools inside the init() method of src/index.ts using this.server.tool(...).
How do I connect to it from Cloudflare AI Playground?
Go to https://playground.ai.cloudflare.com/, enter your deployed SSE URL (e.g., remote-mcp-server-authless.<your-account>.workers.dev/sse), and use your tools directly.
How do I connect to it from Claude Desktop?
Use the mcp-remote proxy in Claude Desktop's MCP server configuration, pointing to your SSE endpoint.