使用说明
基本能力
产品定位
远程无认证MCP服务器是一个部署在Cloudflare Workers上的服务,旨在提供无需认证的MCP工具访问能力。
核心功能
- 无需认证即可部署和访问MCP服务器。
- 支持通过Cloudflare AI Playground或本地MCP客户端连接和使用MCP工具。
- 允许用户自定义MCP工具。
适用场景
- 快速部署和测试MCP工具。
- 在无需认证的环境中使用MCP工具。
- 通过Cloudflare AI Playground或本地客户端访问MCP工具。
工具列表
- 支持自定义MCP工具,用户可以在
src/index.ts的init()方法中定义工具。
使用教程
使用依赖
无特殊依赖,只需Node.js和npm环境。
安装教程
- 使用以下命令创建远程MCP服务器:
npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless
- 部署到Cloudflare Workers后,服务器URL将类似于:
remote-mcp-server-authless.<your-account>.workers.dev/sse
调试方式
-
连接Cloudflare AI Playground:
- 访问 https://playground.ai.cloudflare.com/
- 输入部署的MCP服务器URL。
-
连接Claude Desktop:
- 按照Anthropic's Quickstart指南操作。
- 在Claude Desktop的设置中更新配置为:
{
"mcpServers": {
"calculator": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:8787/sse" // or remote-mcp-server-authless.your-account.workers.dev/sse
]
}
}
}
- 重启Claude后即可使用工具。
