Remote MCP Server on Cloudflare (Authless)
by mlaurel
This example provides a way to deploy a remote Model Context Protocol (MCP) server on Cloudflare Workers without requiring authentication. It allows you to connect to the server from various MCP clients like the Cloudflare AI Playground and Claude Desktop.
Last updated: N/A
What is Remote MCP Server on Cloudflare (Authless)?
This is a remote MCP server implementation designed to run on Cloudflare Workers. It enables you to expose tools and functionalities to MCP-compatible clients like Cloudflare AI Playground and Claude Desktop without needing authentication.
How to use Remote MCP Server on Cloudflare (Authless)?
- Deploy the server to Cloudflare Workers using the provided 'Deploy to Workers' button or the command line tool.
- Customize the server by adding your own tools within the
init()
method ofsrc/index.ts
. - Connect to the server from the Cloudflare AI Playground by entering the deployed server URL.
- Connect to the server from Claude Desktop using the mcp-remote proxy and updating the Claude Desktop configuration file.
Key features of Remote MCP Server on Cloudflare (Authless)
Authentication-less deployment
Easy deployment to Cloudflare Workers
Customizable with user-defined tools
Integration with Cloudflare AI Playground
Compatibility with Claude Desktop via mcp-remote
Use cases of Remote MCP Server on Cloudflare (Authless)
Exposing custom tools to AI models in the Cloudflare AI Playground
Integrating custom tools with Claude Desktop for enhanced functionality
Creating a serverless MCP endpoint for various AI applications
Rapid prototyping of MCP-based AI integrations
FAQ from Remote MCP Server on Cloudflare (Authless)
What is MCP?
What is MCP?
MCP stands for Model Context Protocol, a standard for connecting AI models with external tools and data sources.
What is Cloudflare Workers?
What is Cloudflare Workers?
Cloudflare Workers is a serverless execution environment that allows you to deploy and run code on Cloudflare's global network.
How do I add my own tools to the MCP server?
How do I add my own tools to the MCP server?
You can define each tool inside the init()
method of src/index.ts
using this.server.tool(...)
.
How do I find my deployed MCP server URL?
How do I find my deployed MCP server URL?
After deploying to Cloudflare Workers, your MCP server will be accessible at a URL like remote-mcp-server-authless.<your-account>.workers.dev/sse
.
What is mcp-remote?
What is mcp-remote?
mcp-remote is a proxy that allows local MCP clients like Claude Desktop to connect to remote MCP servers.