Remote MCP Server (Authless)
by immber
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 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 designed to run on Cloudflare Workers. It enables you to expose tools and functionalities to MCP clients, such as the Cloudflare AI Playground and Claude Desktop, without requiring authentication.
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, you can connect to it from the Cloudflare AI Playground by entering the server URL. You can also connect from local MCP clients like Claude Desktop using the mcp-remote proxy.
Key features of Remote MCP Server (Authless)
Authentication-less deployment
Cloudflare Workers integration
Integration with Cloudflare AI Playground
Compatibility with local MCP clients (e.g., Claude Desktop)
Customizable tools via
src/index.ts
Use cases of Remote MCP Server (Authless)
Exposing custom tools to AI models
Integrating with the Cloudflare AI Playground
Connecting local MCP clients to remote services
Building serverless AI applications
Experimenting with MCP without authentication overhead
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 use Cloudflare Workers?
Why use Cloudflare Workers?
Cloudflare Workers provide a serverless environment that's easy to deploy and scale.
How do I add my own tools?
How do I add my own tools?
You can add tools by defining them within the init()
method of src/index.ts
using this.server.tool(...)
.
How do I find my MCP server URL?
How do I find my MCP server URL?
After deploying to Cloudflare Workers, your URL will be similar to remote-mcp-server-authless.<your-account>.workers.dev/sse
.
Is this server secure without authentication?
Is this server secure without authentication?
This example is designed for development and experimentation. For production environments, consider adding authentication and authorization mechanisms.