MCP.so
登录

Building a Remote MCP Server on Cloudflare (Without Auth)

@shlomobamberger

基本信息

分类

开发工具

传输方式

stdio

作者

shlomobamberger

关于 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 template lets you deploy a remote MCP (Model Context Protocol) server on Cloudflare Workers that does not require authentication. It is aimed at developers who want to quickly set up a server with custom tools accessible from remote MCP clients like the Cloudflare AI Playground or local applications via a proxy.

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 in your terminal. Customize tools inside the init() method of src/index.ts using this.server.tool(...). Connect to the Cloudflare AI Playground by entering the deployed SSE URL, or connect Claude Desktop by configuring a mcp-remote proxy in claude_desktop_config.json.

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

  • Deployable with one click or a CLI command.
  • No authentication required for remote access.
  • Custom tools defined via the this.server.tool() method.
  • Uses SSE transport on Cloudflare Workers.
  • Works with Cloudflare AI Playground as a remote client.
  • Local clients can connect using the mcp-remote proxy.

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

  • Deploy a remote MCP server for AI assistants without setting up auth.
  • Build and test custom tools accessible from the Cloudflare AI Playground.
  • Connect Claude Desktop to a remote MCP server through a local proxy.
  • Rapid prototyping of MCP‑based tools in a serverless environment.

常见问题

1

How do I deploy the server?

Use the "Deploy to Workers" button or run `npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless`.

2

How do I add custom tools?

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

3

How do I connect to Cloudflare AI Playground?

Go to [playground.ai.cloudflare.com](https://playground.ai.cloudflare.com/), enter your deployed MCP server URL (ending in `/sse`), and the tools become available.

4

How do I connect Claude Desktop?

Install the `mcp-remote` npm package and configure Claude Desktop’s `claude_desktop_config.json` to use `npx mcp-remote <your-sse-url>`.

5

Does the server require authentication?

No, this example is explicitly designed without authentication to simplify deployment and testing.

评论

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