Deploy a no-auth remote MCP server on Cloudflare Workers with easy tools integration and cloud AI Playground access
This example provides instructions for deploying an unauthenticated remote Model Context Protocol (MCP) server to Cloudflare Workers, enabling seamless integration between AI applications and various data sources or tools.
The Remote Authless MCP Server facilitates the connection of cloud-based AI applications like Claude Desktop, Continue, Cursor, and more to a specific set of tools through an unsecured channel. Deployed on Cloudflare Workers, this server introduces minimal overhead while allowing developers to focus on integrating custom tools without security concerns inherent in authenticated services.
The Remote Authless MCP Server is designed to be lightweight yet highly functional. Key features include:
init()
method in src/index.ts
, making it easy to integrate with existing tool sets or APIs.The architecture of this MCP server involves several key components:
this.server.tool(...)
.The protocol implementation adheres closely to the Model Context Protocol's specifications, ensuring seamless integration across compatible clients.
[](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/ai/tree/main/demos/remote-mcp-authless)
This will deploy your MCP server to a URL like: remote-mcp-server-authless.<your-account>.workers.dev/sse
.
npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless
This command initializes a local environment where you can test and modify your MCP server before deploying it.
Imagine an AI trading bot that needs real-time stock prices to make informed decisions. By integrating with the Remote Authless MCP Server, the bot could fetch live market data from various sources and incorporate them into its decision-making process automatically.
graph TD
A[Trading Bot] -->|Fetch Real-Time Stock Prices| B[MCP Protocol]
B --> C[Remote Authless MCP Server]
C --> D[Stock Price Service]
A travel planning application can use the Remote Authless MCP Server to fetch weather forecasts from different APIs, providing users with accurate and up-to-date information. This service ensures that the application remains reliable even as external data sources change.
graph TD
A[Travel Planner] -->|Fetch Weather Forecasts| B[MCP Protocol]
B --> C[Remote Authless MCP Server]
C --> D[Weather Forecast API]
Integration with MCP clients like Claude Desktop, Continue, and Cursor involves setting up the client to communicate with your deployed server. The provided configuration code snippet below is an example of how to set up a remote connection.
{
"mcpServers": {
"calculator": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:8787/sse" // or remote-mcp-server-authless.your-account.workers.dev/sse
]
}
}
}
Update the "args"
array with the correct URL of your deployed MCP server and any necessary command-line parameters.
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | Fully Compatible | ✅ | ✅ | Full Support |
Continue | Fully Compatible | ✅ | ✅ | Full Support |
Cursor | Limited Functionality (No Prompts) | ✅ | ❌ | Tools Only |
For advanced users and production environments, consider implementing additional security measures such as:
init()
method using this.server.tool(...)
, customizing their behavior as needed.Contributions are welcome! If you're interested in contributing, please follow these steps:
For more information on Model Context Protocol and compatible tools, visit the official documentation:
Join the community to connect with other developers building MCP solutions:
By following these guidelines and utilizing this Remote Authless MCP Server, you can enhance your AI applications with seamless tool integrations, providing a powerful foundation for innovative solutions.
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