Deploy a no-auth remote MCP server on Cloudflare Workers for AI tool integration and testing
This example enables you to deploy a non-authenticated remote Model Context Protocol (MCP) server on Cloudflare Workers, facilitating easy integration with various AI applications.
The Remote MCP Server on Cloudflare allows developers and AI model integrators to create a publicly accessible endpoint for their models or tools. This server adheres to the MCP protocol, ensuring seamless interaction with clients like Claude Desktop, Continue, Cursor, and more, without requiring authentication.
The core focus of this remote MCP server lies in its ability to provide an unauthenticated service on Cloudflare Workers. This setup is ideal for scenarios where rapid deployment and broad accessibility are necessary. Key capabilities include:
init()
method in src/index.ts
.mcp-remote
proxy to link local clients like Claude Desktop.The architecture leverages Cloudflare Workers for hosting, ensuring minimal latency and high performance. The implementation of the protocol focuses on:
this.server.tool(...)
method within init()
.MCP uses a publish-subscribe model for handling asynchronous communication (using Server-Sent Events, SSE). This diagram illustrates the flow:
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
Users can quickly launch the server by clicking this button:
After deployment, your URL will resemble: remote-mcp-server-authless.<your-account>.workers.dev/sse
.
Alternatively, install the server on a local machine with:
npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless
remote-mcp-server-authless.<your-account>.workers.dev/sse
) in the connection dialog.Follow the steps provided by Anthropic:
{
"mcpServers": {
"calculator": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:8787/sse"
]
}
}
}
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ✅ | ✅ | Full Support |
Cursor | ❌ | ✅ | ❌ | Tools Only |
While the server is designed for ease of use, some advanced configurations are available:
API_KEY
.Example configuration:
{
"mcpServers": {
"[server-name]": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-[name]"],
"env": {
"API_KEY": "your-api-key"
}
}
}
}
Q: Can I deploy this server on other platforms?
Q: Does this server support authentication?
Q: How does this impact privacy and security?
Q: Can I integrate existing applications with this server?
Q: How can I manage multiple servers efficiently?
Contributors are encouraged to follow these guidelines:
Explore more resources and tools related to the Model Context Protocol:
By leveraging this remote MCP server, developers can significantly enhance the capabilities of their AI applications through seamless integration with various tools and data sources.
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration