Remote MCP Server (Authless) logo

Remote MCP Server (Authless)

by apples2gotoday

This example provides a way to deploy a remote MCP server on Cloudflare Workers without requiring authentication. It allows you to connect to the server from the Cloudflare AI Playground or local MCP clients like Claude Desktop.

View on GitHub

Last updated: N/A

What is Remote MCP Server (Authless)?

This is a remote Model Context Protocol (MCP) server designed to run on Cloudflare Workers. It allows you to expose tools and functionalities to MCP clients, such as the Cloudflare AI Playground and Claude Desktop, without requiring authentication.

How to use Remote MCP Server (Authless)?

  1. Deploy the server to Cloudflare Workers using the provided 'Deploy to Workers' button or the command line.
  2. Customize the server by adding your own tools within the init() method of src/index.ts.
  3. Connect to the server from the Cloudflare AI Playground by entering the deployed server URL.
  4. Connect to the server from local MCP clients like Claude Desktop using the mcp-remote proxy and updating the client's configuration.

Key features of Remote MCP Server (Authless)

  • Authentication-free deployment

  • Cloudflare Workers integration

  • Customizable tools

  • Compatibility with Cloudflare AI Playground

  • Compatibility with local MCP clients (e.g., Claude Desktop)

Use cases of Remote MCP Server (Authless)

  • Exposing custom tools to AI models

  • Integrating external services with AI models

  • Creating a remote interface for AI model interactions

  • Building AI-powered applications with custom functionalities

  • Experimenting with different AI model integrations

FAQ from Remote MCP Server (Authless)

What is MCP?

MCP stands for Model Context Protocol. It's a protocol for connecting AI models with external tools and services.

What is Cloudflare Workers?

Cloudflare Workers is a serverless execution environment that allows you to run code on Cloudflare's global network.

How do I add my own tools to the MCP server?

You can add your own 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?

After deploying to Cloudflare Workers, your MCP server will be accessible at a URL like remote-mcp-server-authless.<your-account>.workers.dev/sse.

Why is authentication not required?

This example is designed for simplicity and experimentation. In a production environment, you should implement proper authentication and authorization mechanisms.