cloud189-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@cloud189-mcp check my cloud189 quota and list my root folders"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
cloud189-mcp — 天翼云盘 MCP 服务器 + DSH 插件
一个包两用:既是本地 stdio MCP 服务器(Claude Desktop / Cursor / 任意 MCP 宿主),也是 DSH(DeepSeek Harness)插件(带 dsh.bundle)。零运行时依赖,Node ≥ 18.17。
能力:列目录、搜索、取下载直链、上传、建目录、删除(进回收站)、回收站列表/恢复/清空、查配额。
与
cloud189-sync共用同一个会话文件(.c189_session.json),不重做扫码登录:复用已有登录态;PC 密钥失效时用typed_cookies免密重签(和c189_keepalive.py一套逻辑),不需要密码。
双通道(实测结论)
通道 | appKey | 载体 | 实测能用 |
PC 签名 |
|
| 列目录、搜索、下载直链、上传三步、删除、回收站列表/恢复、配额 |
网页 cookie |
|
| 建目录(PC appKey 建目录返回 |
签名原文:SessionKey=<key>&Operate=<GET|POST|PUT>&RequestURI=<pathname>&Date=<UTC>,HMAC-SHA1 后转大写十六进制;RequestURI 只取路径。
两个必须知道的坑(已入代码):
PC 通道可以删除、不能建目录(
createFolder.action→checkWriteRight() ... has no right)。云盘 id 是 19 位整数,超过 JS 安全整数:直接
JSON.parse会静默改掉末几位,上传会报invalid uploadFileId、删除会找不到文件。本包在解析前把 16 位以上的整数先转成字符串(parseJsonSafe)。
Related MCP server: netdisk-organizer-mcp
安装与配置
npx -y cloud189-mcp --session F:/Ai/Deepseek/sync/.c189_session.json # 发布后
node src/index.js --session F:/Ai/Deepseek/sync/.c189_session.json # 本地源码MCP 宿主配置:
{
"mcpServers": {
"cloud189": {
"command": "npx",
"args": ["-y", "cloud189-mcp"],
"env": { "CLOUD189_SESSION_PATH": "F:/Ai/Deepseek/sync/.c189_session.json" }
}
}
}会话文件查找顺序:--session > CLOUD189_SESSION_PATH > ~/.cloud189/session.json。
DSH(DeepSeek Harness)
同一个包里已带 dsh.bundle.patch → cordis.patch.yml,DSH 读它后加载 lib/index.js,把 10 个工具通过 ctx.tools.register 注册成原生工具(与 dsh-email 同一套插件形状:name / inject=['tools'] / apply)。默认用当前 Node 跑包内的 src/index.js,不需要 PATH、不需要另装。
# 先备份 profile 四件套,装完重启并核会话数
dsh plugin --profile desktop add cloud189-mcp@0.2.0 # npm 发布后
dsh plugin --profile desktop add file:F:/Ai/Deepseek/_cloud189-mcp # 本地目录覆盖配置(profile 的 cordis.patch.yml):
- id: cloud189-mcp
config:
sessionPath: 'F:/Ai/Deepseek/sync/.c189_session.json'
# command: node
# args: ['F:/Ai/Deepseek/_cloud189-mcp/src/index.js']工具清单(10 个)
工具 | 作用 | 通道 | 可恢复 |
| 列目录( | PC | — |
| 按文件名关键词搜索 | PC | — |
| 取单文件临时下载直链(不下载内容) | PC | — |
| 上传本机文件(支持秒传) | PC | — |
| 删除文件/目录(默认进回收站) | PC | ✅ 可恢复 |
| 查回收站(分页) | PC | — |
| 从回收站恢复 | PC | — |
| 清空回收站(不可恢复) | PC | ❌ 需 |
| 新建目录 | 网页 cookie | — |
| 总容量 / 已用 / 剩余 | PC | — |
删除安全设计:
默认只进回收站,
cloud189_recycle_restore随时拉回;清空回收站不可恢复,工具层强卡
confirm="EMPTY_RECYCLE_BIN",不传就报错拒绝(单测已覆盖);没有把“删除”做成“上传后自动覆盖/移动”的隐形行为,写操作只做你明确点名的事。
本地验证(2026-11-26,公司 Windows 机,Node v20.18.1)
验证项 | 结果 | 证据 |
协议单测(含删除闸门、10 工具清单) | 9/9 通过 |
|
stdio 端到端:初始化 → 10 工具 → 列目录 → 配额 → 搜索 → 上传 → 删除 → 回收站 → 恢复 → 再删除 | 13/13 通过 |
|
DSH 壳: | 全部通过 |
|
上传/删除单文件探针 | 上传成功 + 删除返回“成功” |
|
网页通道全链路(ego 登录态收割 cookie 后):建目录 → 上传进去 → 删除 → 回收站 → 网页恢复 → 回到原目录 → 清理 | 12/12 符合预期 |
|
实测数字:根目录 14 个子目录;容量 12.02 TB、已用 213.42 GB、剩余 11.81 TB;测试文件上传后能在列表看到、删除后消失、回收站能找回、恢复后回到原目录。
未验证项(如实说明)
cloud189_mkdir/cloud189_recycle_restore已真实跑通(2026-11-26 23:33,网页 cookie 从 ego 浏览器现取):建目录拿到folderId=823371289213440063,上传后删除、回收站能查到、网页通道恢复后文件回到原目录。网页 cookie 怎么来的:ego 浏览器(用户已登录)→ CDP
Network.getAllCookies取出.e.189.cn的SSON/LT/OPENINFO与.cloud.189.cn系列,按域合并回.c189_session.json(脚本verify/ego-harvest.mjs,只打印数量不打印值)。登录态会过期,过期后这些工具会明确报错而不是静默失败。一个已踩到的坑:PC 签名通道根本没有
/restoreFile.action(实测 404,返回{status:404,error:"Not Found"})。早期实现把这佯当成了res_code=0的成功,所以恢复改走网页通道/api/open/recycleFile/restoreFile.action,并且pcJson已加固:没有res_code且 HTTP ≥400 / 带error的响应一律报错。cloud189_recycle_empty故意未实测:不可恢复操作(会清掉回收站里所有东西,不只是测试文件),不在验证阶段跑;闸门逻辑由单测覆盖。删除后立即列同一目录可能仍看到它:云盘侧有短暂最终一致性(
web-live.json里list-after-delete仍为 1),回收站里已经能查到,稍后刷新即消失。大目录/深层目录未加分页与递归:
listFiles一次返回;cloud189_list的path逐级解析,层数多时较慢。
安全边界
会话文件含登录态:
.gitignore已排除*.session.json、.c189_session.json、verify/;不要提交、不要上云。不发遥测;只访问
cloud.189.cn/api.cloud.189.cn/download.cloud.189.cn/upload.cloud.189.cn。上传同名产生副本而不是覆盖(云盘侧行为)。
License
MIT,见 LICENSE。
Available Tools
10 toolscloud189_deleteA
删除云端文件或目录(默认移入回收站,可用 cloud189_recycle_restore 恢复)。fileType 默认 0(文件),目录传 1。
Inputs: fileId (required), fileType.
cloud189_download_linkA
为单个文件获取临时下载直链(签名地址短时有效),不下载文件本身。
Inputs: fileId (required).
cloud189_listA
列出天翼云盘某个目录下的子目录与文件(包含 id、名称、大小、修改时间)。不传参数则列根目录。
Inputs: path, limit, folderId.
cloud189_mkdirA
在云端创建目录(需要网页 cookie 通道;网页会话失效时返回明确的登录提示,而不是默默失败)。
Inputs: name (required), parentId.
cloud189_quotaA
查询云盘容量与已用空间(走 PC 签名通道,不依赖网页会话)。
Inputs: no named parameters.
cloud189_recycle_emptyA
清空回收站(不可恢复)。必须显式传 confirm="EMPTY_RECYCLE_BIN",否则拒绝执行。
Inputs: confirm (required).
cloud189_recycle_listB
列出回收站里的文件与目录(分页),用于确认删除结果或找回。
Inputs: pageNum, pageSize.
cloud189_recycle_restoreB
从回收站恢复指定的文件/目录(需要回收站里的 fileId)。
Inputs: fileId (required).
cloud189_searchA
在天翼云盘内按文件名关键词搜索(在指定目录及其子孙中搜)。
Inputs: keyword (required), path, limit, folderId.
cloud189_uploadA
上传本机文件到云端目录(三步签名上传,支持秒传)。同名文件会新建副本,不覆盖不删除。
Inputs: localPath (required), parentId, remoteName.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool has a clearly distinct resource and action: listing, searching, uploading, creating directories, deleting, quota checking, download-link generation, and three distinct recycle-bin operations. There is little risk of confusing tools like cloud189_delete and cloud189_recycle_empty because their scopes and safety semantics are explicitly described.
All tools use a consistent cloud189_ prefix with snake_case verbs/nouns. The recycle operations also follow a predictable prefix pattern: cloud189_recycle_list, cloud189_recycle_restore, cloud189_recycle_empty.
Ten tools is well-scoped for a cloud-drive MCP server. Each tool covers a meaningful operation, and even the recycle-bin operations are justified by the delete workflow rather than being redundant extras.
The surface covers core lifecycle operations: browse, search, upload, create directory, delete, download link, quota, and recycle-bin restore/empty. Minor gaps remain for common operations such as rename, move/copy, and batch or folder-level download links, but agents can work around most of these.
Maintenance
Related MCP Connectors
Cloud file relay: chunked uploads, folders, share links, inline text reads, ZIP packing.
Browse, upload, download, copy, move and share files in your own S3-compatible buckets.
Transfer and sync files between 19 cloud storages (Yandex, Google, VK, Telegram, S3)
Search, read and cite documents. Add, replace and delete files with write access. OAuth required.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceExposes cloud drive file search, read/write, sharing, tagging, and more via the standardized MCP protocol, enabling AI clients like Claude Desktop and Cursor to interact with 一粒云 storage.-
- FlicenseNot gradedqualityCmaintenanceEnables intelligent organization and retrieval of Baidu Netdisk files through semantic scanning, event clustering, and structured queries. Adds safety with protected moves, undo history, and customizable profiles, building on the official Baidu Netdisk MCP data layer.2-
- AlicenseBqualityCmaintenanceEnables AI agents to browse, search, and download files from Shanghai Jiao Tong University's cloud drive after QR-code login, without handling account passwords.82MIT
- AlicenseAqualityBmaintenanceEnables AI assistants to manage Baidu Netdisk through local login: QR-code sign-in, listing, creating, moving, renaming and copying files, plus background uploads and downloads. Transfer tasks persist across sessions with pause/resume and real breakpoint continuation, without exposing cookies or passwords to the model.15MIT