远程MCP无认证服务器

该服务是一个部署在Cloudflare Workers上的远程MCP服务器,无需认证即可使用。它允许用户通过Cloudflare AI Playground或本地MCP客户端(如Claude Desktop)连接和使用自定义工具。

  • by radup
  • 更新于
在 GitHub 查看 radup/remote-mcp-server-authless

使用说明

基本能力

产品定位

远程MCP无认证服务器是一个部署在Cloudflare Workers上的服务,提供无需认证的MCP服务器功能,支持自定义工具和远程连接。

核心功能

  • 无需认证的远程MCP服务器
  • 支持自定义工具
  • 可通过Cloudflare AI Playground或本地MCP客户端连接

适用场景

  • 快速部署和测试MCP工具
  • 通过Cloudflare AI Playground远程使用MCP工具
  • 本地MCP客户端(如Claude Desktop)连接远程MCP服务器

工具列表

  • 自定义工具:用户可以在src/index.ts的init()方法中通过this.server.tool(...)定义自己的工具。

使用教程

使用依赖

无特别依赖,只需Node.js环境。

安装教程

  1. 使用以下命令创建远程MCP服务器:
npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless
  1. 部署到Cloudflare Workers后,服务器URL将类似于:remote-mcp-server-authless.<your-account>.workers.dev/sse

调试方式

  1. 连接到Cloudflare AI Playground:

    • 访问 https://playground.ai.cloudflare.com/
    • 输入部署的MCP服务器URL
    • 即可在Playground中使用MCP工具
  2. 连接到Claude Desktop:

    • 按照Anthropic's Quickstart操作
    • 在Claude Desktop中进入Settings > Developer > Edit Config
    • 更新配置为:
{
  "mcpServers": {
    "calculator": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "http://localhost:8787/sse"  // or remote-mcp-server-authless.your-account.workers.dev/sse
      ]
    }
  }
}
  • 重启Claude即可使用工具