MCP.so
登录

Building a Remote MCP Server on Cloudflare (Without Auth)

@rita3ko

基本信息

分类

开发工具

传输方式

stdio

作者

rita3ko

关于 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)?

This example demonstrates how to deploy a remote MCP server that requires no authentication on Cloudflare Workers. It is intended for developers who want to quickly stand up an MCP server and connect it to remote MCP clients like the Cloudflare AI Playground or Claude Desktop.

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. This creates a server at a URL like remote-mcp-server-authless.<account>.workers.dev/sse. Customize by adding tools inside the init() method of src/index.ts using this.server.tool(...).

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

  • Deployable with one click to Cloudflare Workers
  • No authentication required for client connections
  • Supports custom tool definitions via MCP tool API
  • Uses Server-Sent Events (SSE) transport
  • Works with Cloudflare AI Playground and Claude Desktop (via mcp-remote proxy)

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

  • Quickly prototyping MCP tools without setting up authentication
  • Connecting a lightweight MCP server to the Cloudflare AI Playground
  • Integrating MCP tools into local desktop clients like Claude Desktop
  • Testing remote MCP server functionality in a serverless environment

常见问题

1

How does this differ from an authenticated MCP server?

This server intentionally omits authentication, making setup simpler but less secure. It is intended for development/testing or internal use where auth is not required.

2

What are the runtime requirements?

The server runs on Cloudflare Workers. Deployment requires a Cloudflare account and optionally Node.js/npm for local creation via the CLI.

3

Where does the MCP server's data live?

The server itself is stateless; any tool state or data is handled inside the Cloudflare Worker’s runtime and is not persisted beyond a request unless explicitly stored by a tool.

4

What transport protocol does this server use?

The server communicates over Server-Sent Events (SSE) at the `/sse` endpoint.

5

Can I add authentication later?

The README covers only the no-auth version. Adding authentication would require modifying the worker and is outside the scope of this example.

评论

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