在 Cloudflare 上构建远程 MCP 服务器(无需身份验证)
此示例允许您部署不需要在 Cloudflare Workers 上进行身份验证的远程 MCP 服务器。
开始:
这会将您的 MCP 服务器部署到类似以下 URL: remote-mcp-server-authless.<your-account>.workers.dev/sse
或者,您可以使用下面的命令行在本地计算机上创建远程 MCP 服务器:
自定义您的 MCP 服务器
要将您自己的工具添加到 MCP 服务器,请在src/index.ts
的init()
方法中使用this.server.tool(...)
定义每个工具。
连接到 Cloudflare AI Playground
您可以从 Cloudflare AI Playground(一个远程 MCP 客户端)连接到您的 MCP 服务器:
- 前往https://playground.ai.cloudflare.com/
- 输入您部署的 MCP 服务器 URL (
remote-mcp-server-authless.<your-account>.workers.dev/sse
) - 您现在可以直接从游乐场使用您的 MCP 工具!
将 Claude Desktop 连接到您的 MCP 服务器
您还可以使用mcp-remote 代理从本地 MCP 客户端连接到远程 MCP 服务器。
要从 Claude Desktop 连接到您的 MCP 服务器,请按照Anthropic 的快速入门,并在 Claude Desktop 中转到设置 > 开发人员 > 编辑配置。
使用此配置进行更新:
重新启动 Claude,您就会看到工具可用。
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
与 Stripe 集成的远程 MCP 服务器实现,使 AI 助手能够与 Stripe API 交互以实现支付处理功能。
Related MCP Servers
- -securityAlicense-qualityA server that integrates with Stripe for handling payments, customers, and refunds through the Model Context Protocol, providing a secure API to manage financial transactions.Last updated -39PythonMIT License
Armor Crypto MCPofficial
AsecurityAlicenseAqualityAn MCP server providing unified access to blockchain operations, bridging, swapping, and crypto trading strategies for AI agents.Last updated -20194PythonGPL 3.0- -securityAlicense-qualityAn MCP server that allows AI assistants to utilize human capabilities by sending requests to humans and receiving their responses through a Streamlit UI.Last updated -42PythonMIT License
YepCode MCP Serverofficial
-securityAlicense-qualityAn MCP server that enables AI platforms to interact with YepCode's infrastructure, allowing LLM-generated scripts to run on YepCode and turning YepCode processes into powerful tools that AI assistants can use directly.Last updated -928TypeScriptMIT License