MCP.so
登录

Building a Remote MCP Server on Cloudflare (Without Auth)

@Kepsondiaz

关于 Building a Remote MCP Server on Cloudflare (Without Auth)

暂无概览

基本信息

分类

开发工具

运行时

node

传输方式

stdio

发布者

Kepsondiaz

配置

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

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

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

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

This example allows you to deploy a remote MCP (Model Context Protocol) server on Cloudflare Workers that does not require authentication. It is intended for developers who want to quickly create and host MCP tools accessible from remote clients.

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

Deploy the server 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 inside the init() method of src/index.ts using this.server.tool(...). Connect to it from Cloudflare AI Playground by entering the deployed SSE URL, or from Claude Desktop by configuring the mcp-remote proxy with the same URL.

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

  • Deploys to Cloudflare Workers with a single click or command.
  • No authentication required for client connections.
  • Easily add custom tools via this.server.tool(...).
  • Works with Cloudflare AI Playground as a remote MCP client.
  • Compatible with Claude Desktop via the mcp-remote proxy.

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

  • Hosting AI agent tools accessible over the internet without auth.
  • Experimenting with remote MCP clients like Cloudflare AI Playground.
  • Integrating custom server-side logic into Claude Desktop workflows.
  • Rapid prototyping of MCP-based tool servers on a global edge network.

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

How do I deploy the server?

Use the Deploy to Workers button or run the npm create cloudflare command with the provided template. This will create a new project and deploy it to a URL like remote-mcp-server-authless.<your-account>.workers.dev/sse.

How do I add my own tools?

Inside the init() method of src/index.ts, define each tool using this.server.tool(...). Refer to the Cloudflare documentation on MCP tools for details.

How do I connect to Cloudflare AI Playground?

Go to https://playground.ai.cloudflare.com/, enter your deployed SSE URL, and the tools will be available directly in the playground.

How do I connect to Claude Desktop?

Install the mcp-remote proxy via npm, then add a configuration entry in Claude Desktop pointing to your server's SSE URL. Restart Claude to see the tools.

Does this server require authentication?

No, the server is built without authentication, making it suitable for testing and development.

评论

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