MCP.so
ログイン
サーバー

Building a Remote MCP Server on Cloudflare (Without Auth)

@hackhit

概要

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

This example lets you deploy a remote MCP (Model Context Protocol) server on Cloudflare Workers that does not require authentication. It is aimed at developers who need a simple, publicly accessible MCP server for testing or prototyping.

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

Deploy by clicking the "Deploy to Workers" button or by running npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. Customize tools inside the init() method of src/index.ts using this.server.tool(...). Connect from Cloudflare AI Playground or from local MCP clients like Claude Desktop via the mcp-remote proxy.

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

  • No authentication required – anyone can connect.
  • Deploys on Cloudflare Workers (serverless).
  • Easy one‑click deployment from GitHub.
  • Customize tools via standard MCP tool definitions.
  • Connect directly from Cloudflare AI Playground.
  • Connect from Claude Desktop using mcp-remote proxy.

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

  • Expose MCP tools publicly without setting up authentication.
  • Test MCP tools interactively in Cloudflare AI Playground.
  • Use a remote MCP server with Claude Desktop via a local proxy.
  • Quickly prototype a serverless MCP server for experimentation.

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

Does this MCP server require authentication?

No. The server is specifically designed to be auth‑less; it does not enforce any authentication.

How do I deploy this MCP server?

You can deploy it by clicking the "Deploy to Workers" button on the GitHub page or by running the npm create cloudflare@latest command with the provided template.

How do I add custom tools to the server?

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

How can I connect Claude Desktop to this remote MCP server?

Use the mcp-remote proxy. In Claude Desktop’s configuration, set the command to npx mcp-remote and provide your server’s SSE URL.

How do I test the server from Cloudflare AI Playground?

Go to Cloudflare AI Playground, enter your deployed MCP server URL (ending in /sse), and then use the tools directly in the playground.

タグ

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