MCP.so
ログイン
サーバー

Building a Remote MCP Server on Cloudflare (Without Auth)

@jchandani

概要

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

This example allows you to deploy a remote MCP server on Cloudflare Workers that does not require authentication. It is for developers who want to serve MCP tools remotely and connect them to clients like Cloudflare AI Playground or Claude Desktop.

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

Deploy using the “Deploy to Workers” button or run npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. After deployment, connect to Cloudflare AI Playground by entering the SSE URL, or to Claude Desktop by configuring the mcp-remote proxy in the Claude Desktop settings.

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

  • Deploy a remote MCP server without authentication.
  • Add custom tools via this.server.tool(...) in src/index.ts.
  • Connect directly to Cloudflare AI Playground as a remote MCP client.
  • Connect to Claude Desktop using the mcp-remote proxy.
  • Deploy with a single button or CLI command.

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

  • Deploy a public MCP server without user authentication.
  • Expose custom MCP tools accessible from remote clients.
  • Test MCP tools in the Cloudflare AI Playground.
  • Use remote MCP tools within Claude Desktop.

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

What is the deployment URL format?

The server is deployed to a URL like remote-mcp-server-authless.<your-account>.workers.dev/sse.

How do I add custom tools to the server?

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

How do I connect to Cloudflare AI Playground?

Go to https://playground.ai.cloudflare.com/, enter your deployed MCP server URL (ending in /sse), and start using the tools.

How do I connect to Claude Desktop?

Use the mcp-remote proxy by adding a configuration entry in Claude Desktop’s settings with "command": "npx" and "args": ["mcp-remote", "<your-sse-url>"].

Does this server require authentication?

No, this server is explicitly built without authentication.

タグ

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