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 分