remote-mcp-server-authless
在 Cloudflare 上构建远程 MCP 服务器(无需认证)
此示例允许您在 Cloudflare Workers 上部署一个无需认证的无状态远程 MCP 服务器。它实现了 MCP 2026-07-28 规范,同时保持与普通工具调用的旧版客户端兼容。
开始使用:
这将把您的 MCP 服务器部署到一个类似以下的 URL:remote-mcp-server-authless.<your-account>.workers.dev/mcp
或者,您也可以使用下面的命令行在本地机器上创建远程 MCP 服务器:
npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authlessRelated MCP server: Remote MCP Server (Authless)
自定义 MCP 服务器
要向 MCP 服务器添加您自己的工具,请在 src/index.ts 中 createServer() 函数创建的 McpServer 上使用 server.registerTool(...) 注册每个工具。
连接到 Cloudflare AI Playground
您可以从 Cloudflare AI Playground(一个远程 MCP 客户端)连接到您的 MCP 服务器:
输入您已部署的 MCP 服务器 URL(
remote-mcp-server-authless.<your-account>.workers.dev/mcp)现在您可以直接在 Playground 中使用您的 MCP 工具!
将 Claude Desktop 连接到您的 MCP 服务器
您也可以使用 mcp-remote 代理 从本地 MCP 客户端连接到您的远程 MCP 服务器。
要将 Claude Desktop 连接到您的 MCP 服务器,请按照 Anthropic 的快速入门指南 操作,在 Claude Desktop 中进入设置 > 开发者 > 编辑配置。
使用以下配置进行更新:
{
"mcpServers": {
"calculator": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:8787/mcp" // or remote-mcp-server-authless.your-account.workers.dev/mcp
]
}
}
}重启 Claude,您应该会看到工具变为可用。
This server cannot be deployed
Related MCP Connectors
Remote streamable-HTTP MCP server running on a single Cloudflare Worker. Your assistant gets live Airbnb, Amazon, Booking.com, Google Flights, Maps and Reddit data, social search on X, Instagram and TikTok, the Meta Ad Library, and image/video generation without any keys. Connect your own accounts to let it send WhatsApp or Telegram messages, work an IMAP inbox, manage Meta Ads campaigns and publish to X and LinkedIn. OAuth 2.1 with PKCE; stored credentials are AES-256-GCM encrypted.
9 remote MCP servers on Cloudflare Workers for AI agents. Free tier + Pro API keys.
Cloudflare Workers MCP server: ai-agent-scratchpad
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceA remote MCP server deployable on Cloudflare Workers without authentication, allowing custom tool definitions and connections to MCP clients like Cloudflare AI Playground or Claude Desktop.-
- FlicenseNot gradedqualityCmaintenanceA remote MCP server deployable on Cloudflare Workers without authentication, enabling custom tool definitions and connections via SSE to clients like Cloudflare AI Playground or Claude Desktop.-
- FlicenseNot gradedqualityCmaintenanceA stateless remote MCP server on Cloudflare Workers without authentication, supporting custom tool registration and integration with MCP clients like Cloudflare AI Playground and Claude Desktop.-
- FlicenseNot gradedqualityCmaintenanceA stateless remote MCP server deployed on Cloudflare Workers without authentication, implementing the MCP 2026-07-28 specification and supporting custom tools. Can be connected to Cloudflare AI Playground and local MCP clients like Claude Desktop via mcp-remote proxy.-