Deploy a no-auth remote MCP server on Cloudflare Workers with easy setup and integration options
This example allows you to deploy a remote Model Context Protocol (MCP) server that doesn't require authentication on Cloudflare Workers.
The Remote Authless MCP Server enables developers and AI application users to connect their applications with specific data sources or tools through the standardized Model Context Protocol. By deploying this server, you can integrate your AI workflows more securely and efficiently without user authentication—a crucial feature for many use cases.
The server supports a wide range of functionalities required by various AI applications such as Claude Desktop, Continue, Cursor, and others. It enables these clients to interact with the server using the Model Context Protocol (MCP), which acts like a USB-C port in devices for seamless data exchange.
The architecture includes several key components:
init()
method in src/index.ts
.graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Data Source/Tool]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
graph TD
A[Client] --> B[MCP Server]
B --> C[Context Provider]
C --> D[Tool/Server]
D --> E[Data Output]
A -->|Config| F[API Key]
style A fill:#e9ddff
style B fill:#f1eee9
style C fill:#eafffa
style D fill:#ffe0db
style E fill:#fcf7d0
To quickly get started, you can use the following options:
This will deploy your MCP server to a URL like: remote-mcp-server-authless.<your-account>.workers.dev/sse
Alternatively, you can use the command line below to get the remote MCP Server created on your local machine:
npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless
The server is compatible with the following MCP clients:
These AI applications can easily connect to your deployed remote MCP server using predefined settings or by customizing their MCP client configurations.
| MCP Client | Resources | Tools | Prompts | Status |
|------------|-----------|-------|---------|---------|
| Claude Desktop | ✅ | ✅ | ✅ | Full Support |
| Continue | ✅ | ✅ | ✅ | Full Support |
| Cursor | ❌ | ✅ | ❌ | Tools Only |
To connect to your remote MCP server from Claude Desktop, follow these steps:
{
"mcpServers": {
"calculator": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:8787/sse" // or remote-mcp-server-authless.your-account.workers.dev/sse
]
}
}
}
Restart Claude and you should see the tools become available.
Explore more about Model Context Protocol at modelcontextprotocol.io.
How do I connect my AI application to the remote MCP server?
Can the Remote Authless MCP Server be used with other clients besides those listed in the compatibility matrix?
Is my data secure when using this server?
How do I troubleshoot common issues with remote MCP servers?
What are best practices for tool development in this context?
By deploying a Remote Authless MCP Server, you can significantly enhance the capabilities of AI applications while maintaining security and efficiency.
Learn to connect to MCP servers over HTTP with Python SDK using SSE for efficient protocol communication
Python MCP client for testing servers avoid message limits and customize with API key
Explore community contributions to MCP including clients, servers, and projects for seamless integration
Next-generation MCP server enhances documentation analysis with AI-powered neural processing and multi-language support
Powerful GitLab MCP Server enables AI integration for project management, issues, files, and collaboration automation
SingleStore MCP Server for database querying schema description ER diagram generation SSL support and TypeScript safety