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 中前往 Settings > Developer > Edit Config。
使用以下配置进行更新:
{
"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 installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
9 remote MCP servers on Cloudflare Workers for AI agents. Free tier + Pro API keys.
Cloudflare Workers MCP server: ai-model-router
Cloudflare Workers MCP server: ai-agent-scratchpad
Cloudflare Workers MCP server: agent-workflow-engine
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceDeploys a remote MCP server on Cloudflare Workers without authentication, enabling tool-based AI interactions from clients like Claude Desktop and AI Playground.
- FlicenseNot gradedqualityCmaintenanceDeploys a remote MCP server on Cloudflare Workers without authentication, allowing custom tools to be used from clients like AI Playground or Claude Desktop.
- FlicenseNot gradedqualityCmaintenanceDeploys a stateless, authentication-free remote MCP server on Cloudflare Workers, enabling custom tool registration and seamless connection from clients like Cloudflare AI Playground or Claude Desktop via mcp-remote.
- FlicenseNot gradedqualityBmaintenanceDeploys a stateless remote MCP server on Cloudflare Workers without authentication, enabling MCP tool calls from clients like Claude Desktop and Cloudflare AI Playground.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sontran-gh/remote-mcp-server-authless'
If you have feedback or need assistance with the MCP directory API, please join our Discord server