远程无认证MCP服务器

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

  • by elizabethsiegle
  • 更新于
在 GitHub 查看 elizabethsiegle/remote-mcp-server-authless-wnba-vote

使用说明

基本能力

产品定位

远程无认证MCP服务器,用于在Cloudflare Workers上部署MCP服务。

核心功能

  • 无需认证即可部署和使用的远程MCP服务器。
  • 支持自定义工具添加。
  • 可通过Cloudflare AI Playground或本地MCP客户端连接。

适用场景

  • 快速部署MCP服务器用于开发和测试。
  • 通过远程MCP服务器使用自定义工具。
  • 与Cloudflare AI Playground或Claude Desktop集成。

工具列表

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

使用教程

使用依赖

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

安装教程

  1. 使用以下命令创建MCP服务器:
npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless
  1. 部署到Cloudflare Workers:

调试方式

  1. 连接Cloudflare AI Playground:
    • 访问 https://playground.ai.cloudflare.com/
    • 输入部署的MCP服务器URL(如remote-mcp-server-authless.<your-account>.workers.dev/sse)
  2. 连接Claude Desktop:
    • 按照Anthropic的快速入门指南操作。
    • 在Claude Desktop中,进入Settings > Developer > Edit Config。
    • 更新配置为:
{
  "mcpServers": {
    "calculator": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "http://localhost:8787/sse"  // 或 remote-mcp-server-authless.your-account.workers.dev/sse
      ]
    }
  }
}
  • 重启Claude。