MCP.so
登录

Building a Remote MCP Server on Cloudflare (Without Auth)

@kbruck97

基本信息

分类

开发工具

传输方式

stdio

作者

kbruck97

关于 Building a Remote MCP Server on Cloudflare

暂无概览

Building a Remote MCP Server on Cloudflare 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "calculator": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "http://localhost:8787/sse"
      ]
    }
  }
}

Building a Remote MCP Server on Cloudflare 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

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

Building a Remote MCP Server on Cloudflare (Without Auth) is a template for deploying a remote Model Context Protocol (MCP) server on Cloudflare Workers that does not require authentication. It is intended for developers who want to expose MCP tools via SSE from a globally distributed, serverless environment.

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 from the command line. Customize tools by editing the init() method in src/index.ts using this.server.tool(...). Connect to clients like Cloudflare AI Playground (by entering the deployed URL) or Claude Desktop (via the mcp-remote proxy and a JSON configuration).

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

  • Deploys a remote MCP server on Cloudflare Workers
  • No authentication required for incoming connections
  • Uses Server-Sent Events (SSE) transport
  • One-click deploy via the Workers button
  • Customizable by adding tools in the init() method
  • Compatible with Cloudflare AI Playground and Claude Desktop (via proxy)

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

  • Exposing custom MCP tools over the public internet without managing authentication
  • Integrating with Cloudflare AI Playground for interactive experimentation
  • Connecting remote MCP tools to local desktop clients like Claude Desktop
  • Prototyping or internal tooling where auth is not yet needed
  • Learning how to build and deploy MCP servers on the Workers platform

常见问题

1

What exactly does this server do?

It provides a remote MCP server that runs on Cloudflare Workers and communicates via SSE. You define tools inside `src/index.ts`, and they become accessible to any MCP client that reaches the deployed URL.

2

How do I deploy this server?

Click the “Deploy to Workers” button in the README, or use `npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless` locally. After deployment, the server is available at a URL like `remote-mcp-server-authless.<your-account>.workers.dev/sse`.

3

How can I connect it to Claude Desktop?

Install the `mcp-remote` npm package, then add a JSON configuration entry in Claude Desktop pointing to your server’s SSE URL: `npx mcp-remote <your-url>/sse`. Restart Claude to see the tools.

4

Does this server support authentication?

No, the server intentionally does not require authentication. It is meant for scenarios where auth is not needed, such as local development or deployments behind other authentication layers.

5

What transport protocol does it use?

The server uses Server-Sent Events (SSE) as the transport protocol, accessible at the `/sse` endpoint of the deployed Workers URL.

评论

开发工具 分类下的更多 MCP 服务器