Remote MCP Server (Authless)
by sanketgawas-toast
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 various MCP clients like the Cloudflare AI Playground and Claude Desktop.
Last updated: N/A
What is Remote MCP Server (Authless)?
This is an example of a remote Model Context Protocol (MCP) server that can be deployed on Cloudflare Workers. It allows 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)?
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
Easy deployment to Cloudflare Workers
Integration with Cloudflare AI Playground
Compatibility with local MCP clients (e.g., Claude Desktop)
Customizable tools via the
init()
method
Use cases of Remote MCP Server (Authless)
Exposing custom tools to LLMs
Integrating external services with LLMs
Creating a remote interface for AI models
Developing AI-powered applications with remote tool access
FAQ from Remote MCP Server (Authless)
What is MCP?
What is MCP?
MCP stands for Model Context Protocol. It's a protocol that allows LLMs to interact with external tools.
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 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, your MCP server will be available at a URL like: remote-mcp-server-authless.<your-account>.workers.dev/sse
.
Can I add authentication to this server?
Can I add authentication to this server?
This example is specifically for an authentication-less server. Adding authentication would require modifying the code to handle user authentication and authorization.