Remote MCP Server (Authless)
by Half-Dozen
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 clients like Cloudflare AI Playground and Claude Desktop.
Last updated: N/A
What is Remote MCP Server (Authless)?
This is a remote MCP server designed to be deployed on Cloudflare Workers. It enables you to expose tools to MCP clients such as Cloudflare AI Playground and Claude Desktop, allowing them to interact with these tools remotely.
How to use Remote MCP Server (Authless)?
You can deploy the server using the 'Deploy to Workers' button or via the command line using npm create cloudflare@latest
. After deployment, customize the server by adding tools within the init()
method of src/index.ts
. Connect to the server from Cloudflare AI Playground by entering the deployed URL. For Claude Desktop, use the mcp-remote
proxy and update the configuration file with the server's URL.
Key features of Remote MCP Server (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 (Authless)
Exposing custom tools to AI models
Creating a remote interface for interacting with tools
Building AI-powered applications using serverless functions
Extending the functionality of Cloudflare AI Playground
Integrating custom tools into Claude Desktop
FAQ from Remote MCP Server (Authless)
What is an MCP server?
What is an MCP server?
MCP stands for Model Context Protocol. It's a protocol that allows AI models to interact with external tools and services.
Why deploy an MCP server on Cloudflare Workers?
Why deploy an MCP server on Cloudflare Workers?
Cloudflare Workers provides a serverless environment that is easy to deploy and scale, making it ideal for hosting MCP servers.
How do I add my own tools to the MCP server?
How do I add my own tools to the MCP server?
You can add tools by defining them within the init()
method of src/index.ts
using this.server.tool(...)
.
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.
What if my account name is different from the default?
What if my account name is different from the default?
Replace <your-account>
with your actual Cloudflare account name in the deployed URL.