Remote MCP Server
by elizabethsiegle
This example provides a way to deploy a remote MCP server on Cloudflare Workers without requiring authentication. It allows connecting to the server from the Cloudflare AI Playground or local MCP clients like Claude Desktop.
Last updated: N/A
What is Remote MCP Server?
This is a remote Model Context Protocol (MCP) server that can be deployed on Cloudflare Workers. It allows you to expose tools and functionalities to MCP clients like the Cloudflare AI Playground and Claude Desktop without requiring authentication.
How to use Remote MCP Server?
- Deploy the server to Cloudflare Workers using the provided 'Deploy to Workers' button or the command line.
- 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 by using the
mcp-remote
proxy and updating the Claude Desktop configuration.
Key features of Remote MCP Server
Authentication-less deployment
Easy deployment to Cloudflare Workers
Customizable with user-defined tools
Integration with Cloudflare AI Playground
Integration with local MCP clients (e.g., Claude Desktop)
Use cases of Remote MCP Server
Exposing custom tools to AI models
Creating a remote interface for specific functionalities
Connecting local applications to remote AI services
Building AI-powered applications on Cloudflare Workers
Experimenting with MCP protocol and tools
FAQ from Remote MCP Server
What is MCP?
What is MCP?
MCP stands for Model Context Protocol, a standard for connecting tools and models.
What is Cloudflare Workers?
What is Cloudflare Workers?
Cloudflare Workers is a serverless platform 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 add your own tools by defining them 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, the URL will be in the format remote-mcp-server-authless.<your-account>.workers.dev/sse
.
Why is authentication not required?
Why is authentication not required?
This example is designed for simplicity and demonstration purposes. In a production environment, you should implement proper authentication and authorization mechanisms.