Remote MCP Server (Authless)
by djaman
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 the Cloudflare AI Playground or local MCP clients like Claude Desktop.
Last updated: N/A
What is Remote MCP Server (Authless)?
This is a remote Model Context Protocol (MCP) server that can be deployed on Cloudflare Workers. It enables you to expose tools and functionalities to MCP clients like the Cloudflare AI Playground and Claude Desktop without needing authentication.
How to use Remote MCP Server (Authless)?
- 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 local MCP clients like Claude Desktop using the
mcp-remote
proxy and updating the client's configuration.
Key features of Remote MCP Server (Authless)
Authentication-free deployment
Cloudflare Workers integration
Customizable tools
Compatibility with Cloudflare AI Playground
Compatibility with local MCP clients (e.g., Claude Desktop)
Use cases of Remote MCP Server (Authless)
Exposing custom tools to AI models
Connecting local applications to remote AI services
Building AI-powered workflows
Creating a serverless AI tool ecosystem
FAQ from Remote MCP Server (Authless)
What is MCP?
What is MCP?
MCP stands for Model Context Protocol, a standard for connecting AI models with external tools and services.
Why deploy on Cloudflare Workers?
Why deploy on Cloudflare Workers?
Cloudflare Workers provides a serverless environment for deploying and scaling applications with ease.
How do I add my own tools?
How do I add my own tools?
You can add tools by defining them inside the init()
method of src/index.ts
using this.server.tool(...)
.
Can I use this with other MCP clients?
Can I use this with other MCP clients?
Yes, you can connect to this server from any MCP client that supports remote connections, typically through a proxy like mcp-remote
.
Is this server secure without authentication?
Is this server secure without authentication?
Since this server is deployed without authentication, it is important to consider the security implications. Only expose tools that are safe to be accessed publicly. Consider adding authentication for production environments.