mcpField
R
Remote MCP Server on Cloudflare

Remote MCP Server on Cloudflare

远程服务
github.com/bestK云与基础设施182 周前更新
代码仓库

关于 Remote MCP Server on Cloudflare

这是一个部署在 Cloudflare 上的远程 MCP 服务示例,README 提供访问链接及通过 Wrangler 部署的命令。具体工具和数据能力未作说明。

主要功能

  1. 01Cloudflare 部署示例
  2. 02提供 MCP 配置片段

适用场景

  1. 01参考 Wrangler 部署 MCP 服务
  2. 02在客户端配置 SSE 服务地址

MCP 相关

该项目是远程 MCP 服务,示例配置中的服务地址为 http://localhost:8787/sse。

配置

远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。

服务地址http://localhost:8787/sse
一键复制安装命令
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。

工具

详细介绍

Cloudflare 上的远程 MCP 服务

README 配图

你可以通过此链接访问:https://note.linkof.link/13a9p7.html

mcp.json

{
    "mcpServers": {
        "tiny-server": {
            "url": "http://localhost:8787/sse"
        }
    }
}

部署到 Cloudflare

tiny-ser-mcp-server  🍣 master via  v20.17.0 🐏 26GiB/32GiB | 16GiB/19GiB  took 12s
🕙 17:50:29 ➜ npm run deploy

> [email protected] deploy
> wrangler deploy


 ⛅️ wrangler 4.6.0
------------------

🌀 Building list of assets...
🌀 Starting asset upload...
No files to upload. Proceeding with deployment...
Total Upload: 432.56 KiB / gzip: 83.32 KiB
Your worker has access to the following bindings:
- Durable Objects:
  - MCP_OBJECT: MyMCP
- Assets:
  - Binding: ASSETS

✘ [ERROR] A request to the Cloudflare API (/accounts/xxx/workers/scripts/tiny-ser-mcp-server) failed.

  In order to use Durable Objects, you must switch to a paid plan at
  https://dash.cloudflare.com/xxx/workers/plans. [code: 10084]

  If you think this is a bug, please open an issue at:
  https://github.com/cloudflare/workers-sdk/issues/new/choose


评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。