Proton Drive CLI MCP
io.github.borealstack由 GitHub 账号 borealstack 发布v0.1.2更新于 Oct 25, 2026
Manage Proton Drive from MCP clients through Proton's official CLI without exposing credentials.
概览
让助手通过 Proton 官方 CLI 管理 Proton Drive 的文件、文件夹和共享,自身不接触 Proton 凭据。
- 可以做什么
- 检查环境与登录:诊断 CLI、缺失时安装、启动或取消浏览器登录、查看认证状态、退出登录,以及读取 CLI 版本和帮助。浏览与传输文件:列出文件夹、查看路径信息、创建文件夹、上传和下载文件,并以异步任务方式执行长任务、查询状态和取消。读写小型文本文件。变更条目:重命名、复制、移动、移入回收站、恢复、永久删除和清空回收站。管理共享:查看共享状态、邀请或移除成员、设置或移除公开链接。处理邀请:列出、接受或拒绝收到的共享邀请。
- 适用场景
- 当你希望 AI 客户端操作 Proton Drive 账户中的文件时使用,例如列出文件夹、上传报告、读取或更新小型文本笔记、管理共享,同时让登录和加密留在 Proton 自己的工具中。
- 运行要求
- 通过 npx 以 stdio 在本地运行,需要 Node.js 22 或更高版本。需要已安装官方 Proton Drive CLI,或能从 Proton 下载索引安装,这需要网络访问。登录需要浏览器完成 Proton 登录流程。可选环境变量如 PROTON_DRIVE_CLI_PATH 和 PROTON_DRIVE_CLI_AUTO_INSTALL 用于调整 CLI 查找与安装。
安装
在 SourceWeft 中
- 打开 控制台中的 Proton Drive CLI MCP,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Proton Drive CLI MCP
Manage Proton Drive from Claude, Codex, VS Code/Copilot, and any MCP client through Proton's official CLI. Authentication and encrypted Drive behavior stay with Proton's tooling.
[npm version] [npm downloads] [MCP stdio] [Claude MCPB] [Codex plugin] [Node.js 22+] [OpenSSF Scorecard]
Install | First Run | Tools | Safety | Tool Reference | Latest Release
Why This Exists
AI agents can already run shell commands, but Drive operations should not depend
on prompt-crafted command lines. This server exposes Proton Drive as typed MCP
tools while delegating the sensitive parts to Proton's official proton-drive
CLI.
[!NOTE] This project is an independent interoperability wrapper. It is not affiliated with Proton AG.
Install
Add the server to an MCP client as a local stdio server:
The command is a stdio server. If you run it directly in a terminal, no prompt or banner is expected; it waits for MCP JSON-RPC messages on stdin.
Client Shortcuts
First Run
Start with diagnosis. The server will report whether the official CLI is found,
whether the managed install path exists, which version is available, and whether
the CLI can access /my-files.
If the CLI is missing, run setup:
If authentication is missing, start the browser login flow:
[!TIP] The server does not request or store Proton credentials. Login, session storage, and encrypted Drive behavior remain delegated to Proton's official CLI.
Requirements
- Node.js 22+ for the published package.
- Bun 1.3+ for repository development and Bun test coverage.
- The official Proton Drive CLI, or network access to Proton's CLI download index for managed install.
- Browser access for the official Proton login flow.
The CLI is resolved in this order:
PROTON_DRIVE_CLI_PATH- The managed user-local install path
proton-driveorproton-drive.exein the current directory or common download pathsproton-driveonPATH- Managed install from Proton's CLI download index
Useful environment switches:
What Agents Can Do
Full schemas and examples are in docs/TOOLS.md.
Common Agent Workflows
Uses proton_drive_list with bounded output and pagination metadata.
Uses proton_drive_upload_async followed by proton_drive_job_status.
Uses proton_drive_read_text and proton_drive_write_text for small UTF-8
files. Full binary or large-file work should use proton_drive_download and
proton_drive_upload.
Safety Model
This project is designed so the MCP layer can orchestrate Drive work without becoming a credential broker.
[!IMPORTANT]
proton_drive_deleteandproton_drive_empty_trashare permanent operations. Preferproton_drive_trashfirst unless the user explicitly asks to delete.
Release Channels
Release assets include:
- npm package tarball
- MCPB bundle
SHA256SUMS- Sigstore JSON attestation bundle
Develop Locally
Run the development server through Bun:
Run real-account smoke checks only when you intentionally want to touch a logged-in Proton Drive account. Keep generated smoke artifacts local and out of git.
Project Map
References
- Proton: Using Proton Drive CLI
- Proton blog: Introducing Proton Drive CLI
- Official Proton Drive CLI README
- Model Context Protocol TypeScript SDK
Help Discovery
If this project helps you connect Proton Drive to an MCP client, star the repository so other users can find the maintained official-CLI wrapper: borealstack/proton-drive-cli-mcp.
来源:README.md,提交 bbc3209
工具
0版本历史
1- v0.1.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分