MCP.so
ログイン
サーバー

Building a Remote MCP Server on Cloudflare (Without Auth)

@fergusrobertson

概要

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

This example enables you to deploy a remote Model Context Protocol (MCP) server on Cloudflare Workers without requiring authentication. It is intended for developers who want a quick, auth‑free MCP server for experimentation or internal use.

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

Deploy it by clicking the “Deploy to Workers” button or via the command npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. After deployment, customize tools inside src/index.ts using this.server.tool(...) and connect MCP clients using the deployed URL.

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

  • Deploy a remote MCP server on Cloudflare Workers.
  • No authentication required for access.
  • Easily customizable by adding tools in the init() method.
  • Ready integration with Cloudflare AI Playground.
  • Works with local clients via the mcp-remote proxy.

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

  • Quickly deploy a remote MCP server for testing or prototyping.
  • Connect MCP tools from Cloudflare AI Playground without auth.
  • Use the server with Claude Desktop through a local proxy.

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

What is an MCP server and why would I deploy one on Cloudflare Workers?

An MCP server exposes tools over the Model Context Protocol. Deploying it on Cloudflare Workers allows remote access without managing your own infrastructure.

How do I customize my MCP server’s tools?

Define each tool inside the init() method of src/index.ts using this.server.tool(...).

How do I connect this server to Cloudflare AI Playground?

Go to https://playground.ai.cloudflare.com/, enter your deployed SSE URL (e.g., remote-mcp-server-authless.<your-account>.workers.dev/sse), and start using the tools.

How do I connect this server to Claude Desktop?

Use the npx mcp-remote proxy and configure Claude’s settings with the deployed SSE URL (or a localhost URL for testing). Restart Claude to enable the tools.

What dependencies or runtime are required?

The server runs on Cloudflare Workers; local development requires Node.js and npm for the Cloudflare CLI. The mcp-remote proxy requires Node.js to run locally.

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