MCP.so
ログイン
サーバー

Building a Remote MCP Server on Cloudflare (Without Auth)

@mcc

概要

What is Building a Remote MCP Server on Cloudflare (Without Auth)?

This example deploys a remote MCP (Model Context Protocol) server on Cloudflare Workers without requiring authentication. It is intended for developers who want a quick, public MCP server that can be used with remote MCP clients like Cloudflare AI Playground or local clients via a proxy.

How to use Building a Remote MCP Server on Cloudflare (Without Auth)?

Deploy by clicking the "Deploy to Workers" button or running npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. Customize tools by editing the init() method in src/index.ts using this.server.tool(...). Connect via the Cloudflare AI Playground by entering the deployed SSE URL, or via Claude Desktop using the mcp-remote proxy and a JSON configuration.

Key features of Building a Remote MCP Server on Cloudflare (Without Auth)

  • Deploy an MCP server on Cloudflare Workers with one click.
  • No authentication required for client connections.
  • Uses Server-Sent Events (SSE) as transport.
  • Easily add custom tools by editing a single file.
  • Works with remote MCP clients like Cloudflare AI Playground.
  • Can be used with local clients via the mcp-remote proxy.

Use cases of Building a Remote MCP Server on Cloudflare (Without Auth)

  • Quickly expose MCP tools to the internet without setting up authentication.
  • Connect MCP tools to Cloudflare AI Playground for testing and experimentation.
  • Use remote MCP tools from Claude Desktop by proxying through a local mcp-remote instance.

FAQ from Building a Remote MCP Server on Cloudflare (Without Auth)

What dependencies do I need to run this?

You need Node.js and npm (or a Cloudflare account for the one-click deploy). The template includes Cloudflare Workers dependencies.

How do I add my own tools?

Define each tool inside the init() method of src/index.ts using this.server.tool(...). See the Cloudflare MCP tools documentation for details.

How do I connect Claude Desktop to this remote server?

Use the mcp-remote npm package. Add an entry to Claude Desktop's MCP configuration with the command npx mcp-remote <your SSE URL>.

Where does the server data live?

The MCP server runs on Cloudflare Workers (edge network). No data persistence is described in the README; tools handle their own state.

What transport and authentication does it use?

It uses SSE transport and explicitly does not require authentication. The server is publicly accessible via its Workers URL.

タグ

「開発者ツール」の他のコンテンツ