Building a Remote MCP Server on Cloudflare (Without Auth)
@spontaneous-order
Overview
What is Building a Remote MCP Server on Cloudflare (Without Auth)?
Building a Remote MCP Server on Cloudflare (Without Auth) is an example that allows you to deploy a remote MCP server without authentication on Cloudflare Workers. It is intended for developers who want to expose MCP tools over the internet using Cloudflare’s serverless platform.
How to use Building a Remote MCP Server on Cloudflare (Without Auth)?
Deploy using the “Deploy to Workers” button from the README, or run npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless locally. To customize, add tools inside the init() method of src/index.ts using this.server.tool(...). Connect clients by providing the deployed SSE URL (e.g., remote-mcp-server-authless.<your-account>.workers.dev/sse).
Key features of Building a Remote MCP Server on Cloudflare (Without Auth)
- Deploy a remote MCP server on Cloudflare Workers without authentication.
- Customizable by adding tools via
this.server.tool(...)insrc/index.ts. - Connects to Cloudflare AI Playground as a remote MCP client.
- Connects to local clients like Claude Desktop using
mcp-remoteproxy. - One‑click deployment using Cloudflare’s “Deploy to Workers” button.
- Also deployable via npm create cloudflare with a template.
Use cases of Building a Remote MCP Server on Cloudflare (Without Auth)
- Exposing MCP tools to the public internet without requiring user authentication.
- Testing and prototyping remote MCP servers with a zero‑configuration deploy.
- Integrating with Cloudflare AI Playground for interactive tool usage.
- Connecting remote MCP servers to local desktop clients such as Claude Desktop.
FAQ from Building a Remote MCP Server on Cloudflare (Without Auth)
How do I deploy this MCP server?
Click the “Deploy to Workers” button in the README, which will deploy to a URL like remote-mcp-server-authless.<your-account>.workers.dev/sse. Alternatively, use the command npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless to create a local project.
How do I add custom tools to the MCP server?
Each tool is defined inside the init() method of src/index.ts using this.server.tool(...). Refer to Cloudflare’s tools documentation for details.
How do I connect to Cloudflare AI Playground?
Go to https://playground.ai.cloudflare.com/, enter your deployed MCP server’s SSE URL, and you can then use the MCP tools directly from the playground.
How do I connect Claude Desktop to the MCP server?
Use the mcp-remote proxy (npx mcp-remote). In Claude Desktop’s configuration (Settings > Developer > Edit Config), add an entry with command npx and args including mcp-remote and the server’s SSE URL. Restart Claude to see the tools.
Does this server require authentication?
No. The server is explicitly built to work without authentication. It is a “remote MCP server without auth” as described in the README.