Building a Remote MCP Server on Cloudflare (Without Auth)
@MCP-Mirror
Mirror of
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. It is intended for developers who want to quickly set up a remote MCP server with no auth, hosted on Cloudflare’s global infrastructure.
How to use Building a Remote MCP Server on Cloudflare (Without Auth)?
Deploy using the "Deploy to Workers" button on the README or by running 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 your deployed SSE URL, or connect Claude Desktop via the mcp-remote proxy with npx mcp-remote.
Key features of Building a Remote MCP Server on Cloudflare (Without Auth)
- Deploy remote MCP server without authentication
- One‑click deploy via Cloudflare Workers button
- Add custom tools with
this.server.tool() - Connect directly to Cloudflare AI Playground
- Access from Claude Desktop using mcp‑remote proxy
- SSE endpoint at
/sse
Use cases of Building a Remote MCP Server on Cloudflare (Without Auth)
- Quickly deploy MCP tools accessible from remote clients without auth
- Integrate MCP server with Cloudflare AI Playground
- Use MCP tools from Claude Desktop via a local proxy
- Rapidly prototype MCP servers on Cloudflare Workers
FAQ from Building a Remote MCP Server on Cloudflare (Without Auth)
How do I deploy the server?
Use the "Deploy to Workers" button on the README or run npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless.
How do I add custom tools?
Define each tool inside the init() method of src/index.ts using this.server.tool(...).
How do I connect to Cloudflare AI Playground?
Go to https://playground.ai.cloudflare.com/ and enter your deployed MCP server URL (e.g., remote-mcp-server-authless.<your-account>.workers.dev/sse).
How do I connect Claude Desktop?
Use the mcp-remote proxy by adding the configuration to Claude Desktop’s settings under mcpServers, specifying command: "npx" and args: ["mcp-remote", "<your-sse-url>"].
Does the server require authentication?
No, this example deploys a remote MCP server without authentication.