Remote MCP Server (Authless) logo

Remote MCP Server (Authless)

by awpthorp

This example demonstrates how to deploy a remote MCP server on Cloudflare Workers without requiring authentication. It allows you to connect to the server from 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 that can be deployed on Cloudflare Workers. It allows you to expose custom tools to MCP-compatible clients without requiring authentication.

How to use Remote MCP Server (Authless)?

You can deploy the server using the 'Deploy to Workers' button or via the command line using npm create cloudflare@latest. After deployment, you can connect to it from the Cloudflare AI Playground or local MCP clients like Claude Desktop by providing the server's URL.

Key features of Remote MCP Server (Authless)

  • Authentication-less deployment

  • Easy deployment to Cloudflare Workers

  • Integration with Cloudflare AI Playground

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

  • Customizable tools via the init() method

Use cases of Remote MCP Server (Authless)

  • Exposing custom tools to LLMs

  • Creating a remote interface for AI models

  • Integrating custom functionality with Cloudflare AI Playground

  • Enabling LLM access to external services

  • Building AI-powered applications with custom tools

FAQ from Remote MCP Server (Authless)

What is MCP?

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

How do I add tools to the server?

You can add tools by defining them within the init() method of src/index.ts using this.server.tool(...).

How do I find my deployed server URL?

The deployed server URL will be similar to remote-mcp-server-authless.<your-account>.workers.dev/sse.

Can I use this with other MCP clients?

Yes, you can use this server with any MCP-compatible client. The README provides examples for Cloudflare AI Playground and Claude Desktop.

Is authentication supported?

This example is specifically for an authentication-less setup. For production environments, consider adding authentication.