Remote MCP Server (Authless)
by joegulags
This example provides a way to deploy a remote 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 designed to run on Cloudflare Workers. It enables you to expose tools to MCP clients like the Cloudflare AI Playground and Claude Desktop without requiring 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-less deployment
Cloudflare Workers compatibility
Customizable tools
Integration with Cloudflare AI Playground
Integration with local MCP clients (e.g., Claude Desktop)
Remote access to MCP server
Use cases of Remote MCP Server (Authless)
Exposing custom tools to AI models
Connecting local AI clients to remote tools
Building AI-powered applications with custom functionality
Experimenting with MCP without authentication overhead
Providing a sandbox environment for testing MCP tools
FAQ from Remote MCP Server (Authless)
What is MCP?
What is MCP?
MCP stands for Model Context Protocol. It's a protocol for connecting AI models with external tools and data sources.
Why use a remote MCP server?
Why use a remote MCP server?
A remote MCP server allows you to decouple the AI model from the tools it uses, enabling greater flexibility and scalability.
How do I add my own tools?
How do I add my own tools?
You can add your own tools by defining them within the init()
method of src/index.ts
using this.server.tool(...)
.
Is authentication required?
Is authentication required?
This example is designed to be authentication-less for simplicity. However, you can add authentication if needed.
What is Cloudflare Workers?
What is Cloudflare Workers?
Cloudflare Workers is a serverless execution environment that allows you to run code on Cloudflare's global network.