Deploy a no-auth remote MCP server on Cloudflare Workers with custom tools and easy integration options
This documentation outlines how to build and deploy an Authless Model Context Protocol (MCP) server on Cloudflare Workers, providing a robust solution for integrating various AI applications such as Claude Desktop with specific data sources and tools.
The Remote Authless MCP Server enables seamless integration of various AI applications with remote data sources and tools through a standardized protocol. Unlike traditional servers that might require authentication and complex setup, this server focuses on simplicity and ease of deployment using Cloudflare Workers, which allows for quicker turnaround times in setting up new services.
This MCP server leverages the flexibility and scalability of Cloudflare Workers to create a remote service that can be easily connected by multiple AI clients. Key features include:
The architecture of this remote MCP server is built around the Model Context Protocol, ensuring compatibility across multiple AI clients. The implementation details include:
this.server.tool()
interface.The following example demonstrates how to define a tool within the MCP server:
init() {
this.server.tool('calculator', (request) => {
// Tool logic here
});
}
To deploy this Authless MCP Server, you can use either the provided GitHub action or manually via the command line. Here’s how:
Follow these steps to quickly set up your MCP server using the Cloudflare deployment button:
remote-mcp-server-authless.<your-account>.workers.dev/sse
.Alternatively, you can clone and deploy the server manually using npm commands:
Run the following command:
npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless
Navigate to your project directory and open src/index.ts
to define additional tools.
By integrating this Authless MCP Server, developers can enhance their AI applications with real-time data processing capabilities. Here are some practical use cases:
For instance, deploying an API handler like weather
that fetches current weather conditions using a third-party service and then sends the results back through SSE can be achieved as follows:
init() {
this.server.tool('weather', (request) => {
// Fetch weather data from API
return { temperature: /* fetched temperature */ };
});
}
The remote Authless MCP Server is compatible with several AI clients, including Claude Desktop. To connect your server to Claude Desktop, follow these steps:
remote-mcp-server-authless.<your-account>.workers.dev/sse
).Configure your MCP client to connect to a remote tool like this:
{
"mcpServers": {
"calculator": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:8787/sse" // or `remote-mcp-server-authless.<your-account>.workers.dev/sse`
]
}
}
}
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | Full Support | ✔️ | ✔️ | ✅ |
Continue | Full Support | ✔️ | ➜ | ✅ |
Cursor | Tools Only | ✔️ | ➜ | ❌ |
For advanced users, the server can be configured to use environment variables for security and flexibility. The typical configuration might look like this:
{
"mcpServers": {
"[server-name]": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-[name]"],
"env": {
"API_KEY": "your-api-key"
}
}
}
}
init()
method using the this.server.tool(...)
API.Contributions to improve or extend functionality are always welcome. If you're interested in contributing, please follow the guidelines provided in the CONTRIBUTING.md
file within the repository.
For more information on Model Context Protocol and its ecosystem, refer to these resources:
By leveraging this Authless MCP Server, developers can build robust AI applications with minimal barriers to integration and increased flexibility.
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
subgraph Core Services
server[MCP Server]
tool[Tool]
remote[Remote Tool]
end
subgraph MCP Nodes
a[AI Application] --> b[Bridge]
b --> server
server --> tool&remote
end
This comprehensive documentation guides developers through the process of deploying and integrating an Authless MCP Server for AI applications, focusing on its core features, architecture, and practical use cases.
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