Building a Remote MCP Server on Cloudflare (Without Auth)

by Germiquere

153 downloads
Not rated
GitHub

About

# 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. ## Get started: [![Deploy to…

Details

Author
Germiquere
Downloads
153
Categories
Developer Tools, Other, Cloud Service

- Deploy a remote MCP server on Cloudflare Workers
- No authentication required
- Add custom tools via this.server.tool(...)
- Connect directly from Cloudflare AI Playground
- Connect from Claude Desktop using mcp-remote proxy

Deploy using the “Deploy to Workers” button or the CLI command npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. Customize tools inside the init() method of src/index.ts. Connect from the Cloudflare AI Playground (enter your deployed SSE URL) or from Claude Desktop via the mcp-remote proxy.

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.

This will deploy your MCP server to a URL like:remote-mcp-server-authless.<your-account>.workers.dev/sse

Alternatively, you can use the command line below to get the remote MCP Server created on your local machine:

npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless

To add your owntoolsto the MCP server, define each tool inside theinit()method ofsrc/index.tsusingthis.server.tool(...).

You can connect to your MCP server from the Cloudflare AI Playground, which is a remote MCP client:
- Go to
[https://playground.ai.cloudflare.com/
- Enter your deployed MCP server URL (remote-mcp-server-authless.<your-account>.workers.dev/sse)
- You can now use your MCP tools directly from the playground!

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.