Listed from the MCP registry; nobody on Odel publishes it.
Unofficial MCP server for Proton Drive and Photos, driving the official Proton Drive CLI.
Runs on your machine from its package; the steps are below.
At most: moves money, runs code or commands, deletes data, or sends messages for you.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
npx -y proton-drive-mcp
MCP client config
{
"mcpServers": {
"proton-drive": {
"command": "npx",
"args": [
"-y",
"proton-drive-mcp"
]
}
}
} ____ ____ ___ _____ ___ _ _ ____ ____ _____ _______
| _ \| _ \ / _ \_ _/ _ \| \ | | | _ \| _ \|_ _\ \ / / ____|
| |_) | |_) | | | || || | | | \| | | | | | |_) || | \ \ / /| _|
| __/| _ <| |_| || || |_| | |\ | | |_| | _ < | | \ V / | |___
|_| |_| \_\\___/ |_| \___/|_| \_| |____/|_| \_\___| \_/ |_____|
MCP server and CLI · Full Proton Drive control for Claude
Unofficial community project, not affiliated with or endorsed by Proton AG. Proton and Proton Drive are trademarks of Proton AG. This server only drives the official Proton Drive CLI and never handles your password or session. See the threat model for what it protects and what reaches your AI provider.
Give Claude Desktop (or any MCP client) full access to your Proton Drive and Proton Photos: list folders, upload and download files, invite collaborators, manage sharing, handle trash, and manage photo albums — all with end-to-end encryption intact. The same capabilities are available as a full CLI for scripting, backups, and cron.
Related projects: the same author's Proton Mail Bridge MCP server handles Proton Mail. It is a separate server on purpose: mail and Drive need different permissions, so you can grant a model one without the other.
proton-drive auth login.npx -y proton-drive-mcp init. It finds the proton-drive CLI, runs the same checks as doctor, tells you the exact next step if something is wrong (for example proton-drive auth login), and prints the ready-to-paste Claude Desktop config and claude mcp add line. Add --write to put the Claude Desktop entry in place (dry run by default, timestamped backup first, other servers untouched). Or connect manually, either way:
proton-drive-mcp-<version>.mcpb from the latest release and set proton-drive CLI path to the output of which proton-drive.npm install -g proton-drive-mcp, then proton-drive-cli doctor, then proton-drive-cli setup-claude-desktop --write. (setup-claude-desktop refuses to run from a temporary npx cache, so install globally first.) Fully quit and restart Claude Desktop afterwards.claude mcp add --env PROTON_DRIVE_BIN="$(which proton-drive)" proton-drive -- npx -y proton-drive-mcpdrive_search)drive_usage)drive_find_duplicates)drive_sharing_audit)drive_bulk_move / drive_bulk_trash preview first, nothing changes until you approve)PROTON_DRIVE_MODE=readonly and PROTON_DRIVE_REMOTE_ROOTS=/my-files/<folder>, plus an audit log (guard layer, secure setup).PROTON_DRIVE_INDEX=1 keeps a plaintext local copy of file names so searches are instant after a restart (details); PROTON_DRIVE_TOOL_TIER=core exposes a smaller tool set.| Status | |
|---|---|
| Proton Drive CLI | Built against 0.8.0 (all 32 scriptable commands covered). 0.9.0 (SDK js 0.22.2) was live-tested for file operations (list, info, tree, search, read, download, upload, mkdir, rename, move, trash), sharing reads and the audit, and photo and album reads; sharing changes, album and photo writes, and other versions are untested. Run proton-drive-cli doctor after upgrading the CLI. |
| Node.js | 22 or newer |
| macOS | Live-tested. Built-in Vision OCR. |
| Linux | The test suite runs on Ubuntu in CI; not live-tested against a real account. |
| Windows | Not supported |
Ask: "Give /my-files/Documents a checkup." Claude calls drive_checkup and reports a score from 0 to 100 and what it found: exact-duplicate candidates and the space they waste, empty folders, large old files, public links without a known expiry, items shared with other accounts, sensitive-looking names inside shared items, and what sits in the trash. Say "Do it" for the safe part and the flow continues:
drive_cleanup with path and fixes (duplicates, empty-folders) returns a plan and changes nothing. The server, not the assistant, builds the list from a fresh, complete scan: Claude names no files, the copy that is kept is never on the list, and items that are shared, under a shared folder or link, or whose name is already in the trash are left out and reported under skipped.confirmed: true the server shows you the exact list in its own approval dialog, for each item the path that goes to the trash and, on the next line, the copy that is kept (/my-files/Documents/Inbox/2024-03 (1).pdf then keeps: /my-files/Documents/Invoices/2024-03.pdf), and applies it only if you approve and Drive has not changed since. It uses the same batched trash call as drive_bulk_trash: everything goes to the trash, nothing is deleted. Up to 50 items per call, so the dialog lists every item with its kept copy (each path with up to 600 characters, unusual characters shown as escapes); remaining says how many are left and Claude calls again.U7K2-M9XD. Say "undo that" and Claude calls drive_undo. The server asks you to approve again (always, also for a plain restore), then puts each item back in its original folder and checks every one by its id.drive_undo also covers drive_bulk_trash, drive_trash, drive_bulk_move, drive_move and drive_rename; these now record what they change (see Undo). The MCP prompt drive-checkup (argument path) runs the whole flow. On the command line: proton-drive-cli checkup [path] and proton-drive-cli undo.
Privacy.
namesInResult); a finding page shows up to 200 names; a cleanup plan shows at most 10 sample lines.drive_cleanup for verify, which downloads candidates to a private temporary folder, hashes them and deletes them.Honest limits.
drive_cleanup leaves such items out; drive_trash and drive_bulk_trash still trash them but mark them not undoable in the result.verify, drive_cleanup only acts on groups with the same claimed hash and size where nothing is shared; anything shared needs verify: true, which downloads and compares sha256.drive_checkup walks the folder like drive_usage does: on a big drive the first call can answer partial: true; call it again. Point it at one folder, or enable the persistent index.drive_cleanup needs a complete, fresh listing and refuses otherwise: when the whole walk would need more than 300 folder listings (the cap on listing calls for one walk, not per folder), when a folder cannot be listed, or when an entry comes back without an id. Its walk has no time limit and it never reads the saved index, so on a big folder the plan can take longer than your client waits (a client timeout can hit before the plan returns): point it at a subfolder. Only one bulk apply (drive_cleanup, drive_undo apply, drive_bulk_trash, drive_bulk_move) runs at a time: a second one that arrives meanwhile is refused at once with "nothing was changed" (in human and strict mode without a dialog; in model mode a dialog may already have been shown before the call reached the lock, and that yes is not used).drive_trash, drive_move, drive_rename; none when a recent walk already has the item); drive_bulk_trash and drive_cleanup also list /trash once. Undo puts an item back only into the same folder it came from, not into a new folder that took over the old name.drive_cleanup and drive_undo have not been run against a real Proton account yet. Whether Claude Desktop shows the approval dialog is not verified (the terminal route is the fallback), and Windows is untested.How the score is computed. It starts at 100. Each finding that is present takes off min(cap, ceil(units x rate)) points, integer arithmetic only; scoreParts in the result shows every deduction. The lowest possible score is 5.
| Finding | Units | Points per unit | Cap |
|---|---|---|---|
duplicates | extra copies (group size minus 1, summed) | 1/2 | 15 |
empty-folders | empty folders | 1/10 | 5 |
large-old | files of at least minSizeMB (default 50) not changed for olderThanDays (default 365) | 1 | 10 |
public-links | public links without a known expiry | 5 | 20 |
outside-access | items shared with other accounts | 2 | 10 |
sensitive-exposed | sensitive-looking names in shared places | 8 | 30 |
trash | whole GiB in the trash | 1 | 5 |
Searching by name (drive_search) will not find a scan called IMG_0042.jpg. Search by content instead:
PROTON_DRIVE_OCR=1 and PROTON_DRIVE_CONTENT_INDEX=1 in the server's environment and restart it. Both are off by default.drive_content_index with that path. If the result says partial: true, it calls again to continue.drive_search_content.Honest limits: on macOS the OCR helper is compiled the first time it is needed, a one-time wait of about 30 s (the server warms it in the background shortly after start). OCR makes mistakes, especially on handwriting, low-resolution photos and unusual layouts, so a document can be missed or matched on a wrong word; open the file to check. OCR runs one file at a time, so a big folder of scans takes a while. The index covers only the folders you indexed and reflects the last update. Details: OCR for scans, Content search.
Ask: "Who has access to my shared folders?" and then "Which public links expire soon or never expire?"
drive_sharing_audit lists public links (role, expiry, password), invitees and pending invitations, with risk flags such as public-link-no-expiry, public-link-editor and external-invitee.drive_share_expiry_report lists public links with the time left, soonest first (withinDays sets what counts as soon).Both only read; they change nothing, and link URLs are left out of the results. Each checks at most 100 shared items, so on a big drive point it at one folder at a time. To act on a finding, drive_share_remove_url or drive_share_revoke change sharing; the server asks you to approve each one (Human approval).
Ask: "Move all the PDFs in /Downloads into /Documents/Inbox. Show me the plan first."
drive_bulk_move (or drive_bulk_trash for clean-up) without confirmed returns a plan and any problems and changes nothing.confirmed=true. That argument only switches from plan to apply; it is not your approval. Before anything moves, the server shows you the exact list (every path when there are 50 or fewer, otherwise counts per folder and the first 50) and asks you to approve it. It applies only if there are no problems, and only if the plan it computes after your approval is the same as the one you saw; if Drive changed in between, nothing is applied (approval_changed). If your client cannot show the dialog, the call is refused until you approve it in a terminal (Human approval, threat model).drive_restore brings an item back (drive_list_trash shows what is there). drive_empty_trash and drive_delete are permanent, so do not ask for those during a tidy-up.Each call handles up to 200 items. For a first attempt on important data, use the guard layer (PROTON_DRIVE_REMOTE_ROOTS limits the folders Claude can touch).
New to this and want to stay cautious? See the safe-use guide.
For syncing, backups and cron jobs, use the official CLI directly: it is simpler and that is what it is for. This project does not replace it; it needs it, and wraps it so an AI assistant can drive it. It is worth using when you want to work with your Drive by conversation:
drive_search, drive_tree, drive_usage, drive_find_duplicates (verified by sha256), drive_sharing_audit, drive_read_content, drive_sync_plan. They run locally on your computer, so encryption stays intact.drive_checkup gives a folder a health report, drive_cleanup trashes redundant copies from a list the server builds, and drive_undo puts a recorded batch back, each item checked by its id. See Checkup, cleanup, undo.database is locked under parallel calls. The server checks per-item results, sorts and paginates lists, and retries read-only calls.What to expect: search matches names, sizes and dates, not the text of every file (you read one file at a time); the first walk of a large drive takes minutes unless you enable the opt-in persistent index; and this is an independent project, not an official Proton product.
drive_read_file and drive_write_file, drive_audit_log, drive_size and the newer drive_read_many, drive_share_expiry_report, drive_recent_changes, drive_content_index, drive_search_content, drive_refresh_index and drive_cleanup are MCP-only)auth login is the one command excluded, since it's an interactive browser flow). Not every optional flag is exposed: sharing invite --include-node-name is deliberately off (it would put the file name in the invitation email in clear text) and the inherited invite role is not offered; commands that accept several paths run one path per call except bulk move and bulk trashspawn (no shell), never string interpolationYour files travel: Proton Drive (cloud, E2E encrypted) → Proton Drive CLI (local, decrypts) → this MCP server (local) → your AI client.
The Proton Drive CLI handles all cryptography locally. This MCP server calls the CLI as a subprocess and forwards results — it never receives your password, never stores credentials, and never touches the raw encrypted data. Authentication state lives in your OS keychain (macOS Keychain, Linux libsecret; the official CLI also uses Windows Credential Manager on Windows, which this project does not support), managed exclusively by the official Proton CLI.
If you use Claude Desktop with the default Anthropic API, file content you ask Claude to act on is sent to Anthropic per their privacy policy.
1. Proton Drive CLI — download from proton.me/download/drive/cli and add to your PATH.
2. Authenticate the CLI — run once in your terminal:
proton-drive auth login
This opens a browser for Proton's standard sign-in flow. Credentials are stored in your OS keychain — not on disk, not in config files.
3. Node.js 22 or later — node --version to check.
Via npx (no install needed):
# Used directly in Claude Desktop config — no global install required
npx -y proton-drive-mcp
Global install:
npm install -g proton-drive-mcp
Add to your claude_desktop_config.json:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows (informational only, this project does not support Windows): %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"proton-drive-mcp": {
"command": "npx",
"args": ["-y", "proton-drive-mcp"],
"env": { "PROTON_DRIVE_BIN": "/absolute/path/to/proton-drive" }
}
}
}
Claude Desktop starts servers with a minimal PATH, so a proton-drive in ~/.local/bin is usually not found. Set PROTON_DRIVE_BIN to the output of which proton-drive (the default install location is ~/.local/bin/proton-drive, written out in full, e.g. /Users/you/.local/bin/proton-drive). If npx itself is not found, use its absolute path as command (which npx).
Restart Claude Desktop. Check + → Connectors → proton-drive-mcp to confirm the server is connected.
Tip: Make sure
proton-drive auth loginhas been run at least once before starting Claude Desktop.
Instead of editing JSON, download proton-drive-mcp-<version>.mcpb from the latest GitHub release and open it (or drag it into Settings → Extensions in Claude Desktop). In the extension settings, set proton-drive CLI path to the output of which proton-drive (usually ~/.local/bin/proton-drive); optionally set the Proton Drive sync folder to enable drive_read_file / drive_write_file, and the Persistent search index switch (off by default; it stores file names in plain text on this computer, see Persistent index). The Who approves destructive operations setting (human by default, strict, or model) is PROTON_DRIVE_APPROVAL, see Human approval. You still need the official proton-drive CLI installed and proton-drive auth login done once.
{
"mcpServers": {
"proton-drive-mcp": {
"command": "proton-drive-mcp"
}
}
}
Three commands of the companion CLI help when Claude Desktop reports "proton-drive CLI not found" (it starts servers with a minimal PATH). init combines the first two for a first run (it also works as npx -y proton-drive-mcp init, writing the npx form of the entry so no package path is pinned):
# First run: doctor checks + ready-to-paste Claude Desktop and Claude Code config; --write adds the Desktop entry
proton-drive-cli init [--json] [--config <path>] [--write]
# Read-only checks: Node >= 22, proton-drive CLI + version, auth, PROTON_DRIVE_SYNC_PATH, your Claude Desktop entry
proton-drive-cli doctor [--json] [--config <path>]
# Dry run: prints the entry it would add and the target file, changes nothing
proton-drive-cli setup-claude-desktop [--config <path>] [--sync-path <dir>]
# Apply it (timestamped backup first; only mcpServers["proton-drive-mcp"] is touched)
proton-drive-cli setup-claude-desktop --sync-path "$HOME/Proton Drive" --write
doctor exits 1 if any check fails (warnings do not fail). It only ever reports on the proton-drive-mcp entry of the config, never on other servers. setup-claude-desktop writes the absolute path of the running node, of this package's dist/index.js, and of the resolved proton-drive binary (PROTON_DRIVE_BIN). It refuses to run if the CLI cannot be found, the config file is not valid JSON, or the package is running from a temporary npx cache (install it first with npm install -g proton-drive-mcp). The entry pins the current node binary, so re-run it after switching Node versions (e.g. with nvm). Re-running with unchanged settings leaves the file alone; otherwise the file is replaced atomically and a timestamped .bak-… copy is kept.
The default config location is per OS (macOS ~/Library/Application Support/Claude/, Windows %APPDATA%\Claude\, Linux $XDG_CONFIG_HOME or ~/.config/Claude/); use --config or the CLAUDE_DESKTOP_CONFIG environment variable to point elsewhere. On Windows the CLI lookup honours PATHEXT.
Claude Desktop only reads its config at startup: fully quit and restart it afterwards (closing the window is not enough).
Backup a build artifact
"Upload ./dist/app-v2.zip to /my-files/Releases and tell me if it succeeded."
Morning file triage
"List everything in /my-files. Tell me what's larger than 10MB and what was modified most recently."
Share a folder with a colleague
"Share /my-files/Q2-Reports with alice@proton.me as editor. Add a message: 'Please review before Friday.'"
Offboarding
"Revoke bob@company.com's access from /my-files/Projects and /shared/Design. Confirm when done."
Automated download
"Download /my-files/contracts/nda-2026.pdf to ~/Documents/Legal/."
Trash cleanup
"List what's in the trash and empty it once I confirm."
proton-drive-cli <command> [args]
proton-drive-cli auth status # probes /my-files; the CLI has no dedicated status command
proton-drive-cli auth logout # log out (clears OS keychain session)
proton-drive-cli version # CLI and SDK version
proton-drive-cli list /my-files
proton-drive-cli list /my-files/Reports
proton-drive-cli info /my-files/report.pdf # full metadata, incl. revision details
proton-drive-cli read /my-files/notes.md --max-chars 5000 # text of a file, paged with --offset
proton-drive-cli mkdir /my-files/NewFolder
proton-drive-cli upload ./report.pdf /my-files/Reports
proton-drive-cli upload ./dist /my-files/Releases --file-conflict replace --folder-conflict merge
proton-drive-cli download /my-files/report.pdf ./local/report.pdf
proton-drive-cli download /my-files/Reports ./local/Reports --file-conflict rename --folder-conflict merge
proton-drive-cli rename /my-files/old-name.pdf new-name.pdf # in place, no move
proton-drive-cli move /my-files/old-name.pdf /my-files/new-name.pdf
proton-drive-cli copy /my-files/report.pdf /my-files/Archive
proton-drive-cli delete /trash/obsolete-draft.pdf --confirm # only works on items already in trash
# Machine-readable output (pipe-friendly)
proton-drive-cli list /my-files --json | jq '.[].name'
proton-drive-cli share status /my-files/Reports
proton-drive-cli share invite /my-files/Reports alice@pm.me editor
proton-drive-cli share invite /my-files/Reports bob@pm.me viewer --message "FYI"
proton-drive-cli share revoke /my-files/Reports alice@pm.me
proton-drive-cli share remove-all /my-files/Reports --confirm # strip every member + pending invite
proton-drive-cli share set-url /my-files/Reports --role viewer --expiration 2026-06-06
proton-drive-cli share remove-url /my-files/Reports
proton-drive-cli trash /my-files/old-draft.pdf # move to trash
proton-drive-cli trash list # see what's in trash
proton-drive-cli restore /my-files/old-draft.pdf # restore from trash
proton-drive-cli trash empty --confirm # permanently delete all trashed items
Used when your MCP client cannot show an approval dialog (see Human approval). These commands only read and write local files; they need no Proton session.
proton-drive-cli approvals # pending and approved requests: code, tool, status, time left, first line
proton-drive-cli approve K7Q2-M9XD # shows the server's record, asks you to type 'yes' (interactive terminal only)
proton-drive-cli deny K7Q2-M9XD # discard a request
drive_search · drive_tree · drive_usage · drive_find_duplicates · drive_sharing_audit · drive_checkup · drive_sync_plan · drive_bulk_move · drive_bulk_trash · drive_undo
proton-drive-cli tree /my-files --depth 2
proton-drive-cli search /my-files --ext pdf --min-size 1000000
proton-drive-cli usage /my-files --top 20 --older-than 365
proton-drive-cli duplicates /my-files --min-size 1000000 [--verify]
proton-drive-cli share audit /my-files
proton-drive-cli checkup /my-files/Documents [--finding duplicates] [--no-sharing] [--refresh] [--json] # health report, read-only
proton-drive-cli undo --list # recorded batches, newest first
proton-drive-cli undo K7Q2-M9XD [--confirm] [--json] # plan; --confirm applies
proton-drive-cli sync-plan ./local /my-files/backup --direction up
proton-drive-cli bulk-move /my-files/Archive /my-files/a.pdf /my-files/b.pdf # plan only
proton-drive-cli bulk-trash /my-files/old1.txt /my-files/old2.txt --confirm # apply
proton-drive-cli index status # persistent index: enabled?, path, size, age, entries
proton-drive-cli index clear # delete the saved index file
drive_search, drive_tree and drive_usage stop waiting after 25 s (PROTON_DRIVE_WALK_BUDGET_MS, 0 = never) and return what was listed so far with partial: true, continuing: true (the walk is still running) and a note; the same walk keeps running in the background, so repeating the call returns the full result from cache. drive_find_duplicates, drive_sharing_audit and drive_sync_plan always wait for the complete walk. Later calls reuse a 5-minute in-memory cache; refresh bypasses it. With the opt-in persistent index, a saved copy up to 24 h old can answer first (marked stale: true)..git and node_modules by default.PROTON_DRIVE_INDEX=1, results may come from a saved index (stale: true = served from the saved index, not a walk made now) while a refresh runs; repeat the call or pass refresh: true for a fresh read. On a huge drive drive_refresh_index refreshes the index in resumable slices. Off by default, see Persistent index.drive_search, drive_tree, drive_usage, drive_find_duplicates, drive_checkup, drive_sharing_audit, drive_share_expiry_report, drive_recent_changes, drive_sync_plan) change nothing. drive_bulk_move and drive_bulk_trash are two-step: call without confirmed for the plan, then with confirmed: true to apply; applying still needs your approval of the exact list. Bulk trash is reversible with drive_restore.verify: true downloads the candidates and hashes them.drive_usage trash stats always make one uncached /trash listing (~2.5 s), even when the walk is cached.By default every new server process (each Claude Desktop session) walks the drive again on the first drive_search, drive_tree, drive_usage or drive_find_duplicates: about 21 s per 1,200 files at the default concurrency (12), minutes on big drives. Set PROTON_DRIVE_INDEX=1 to keep completed walks on disk and answer instantly after a restart.
Privacy: this is off by default. Your Drive is end-to-end encrypted, but the index is a plaintext copy of file and folder names, paths, sizes, dates and claimed sha1 hashes on your local disk. Anyone who can read your user account's files (or your backups) can read it. Enable it only on a machine you trust.
/my-files (a failed walk or a drive_tree that stops at its depth limit is never saved; an unfinished incremental refresh saves its progress and is marked as partial, see Keeping the index fresh on huge drives), the time each folder was last listed, plus a fingerprint of your account's Drive root. No file contents, no credentials, no tokens.PROTON_DRIVE_INDEX_DIR if set; otherwise ~/Library/Caches/proton-drive-mcp (macOS) or $XDG_CACHE_HOME/proton-drive-mcp / ~/.cache/proton-drive-mcp (Linux). One file, walk-index.json, mode 0600 in a 0700 directory, written atomically. Use a dedicated directory: a pre-existing directory with group/other access (or owned by someone else) is refused with one warning and never chmodded; a missing one is created 0700. A symlinked directory or file is refused. A saved file with loose permissions, another owner, a future timestamp, or above 200 MB is ignored. Not written above 200 MB.list /my-files (~2 s) confirms it belongs to the account that is logged in now; if the check fails (network, rate limit) nothing is served from disk for that call and the file is kept; a proven account mismatch deletes it. Either way the drive is walked fresh.PROTON_DRIVE_INDEX_MAX_AGE_H hours old (default 24; 0 = never use saved data) is returned immediately with stale: true (and refreshing: true while one background walk replaces it); a repeated call then returns the fresh walk. A failed or incomplete background walk is not retried for 5 minutes within the same server process (PROTON_DRIVE_INDEX_REFRESH_COOLDOWN_MS); a new process tries once again. The saved data is account-checked first (see above). Data older than that, and a tree from an unfinished refresh, are refreshed in place rather than walked from scratch (see the next section). drive_sync_plan, drive_find_duplicates, the sharing audit and drive_recent_changes never serve saved data; with the index on they only reuse saved folder listings read less than 5 minutes ago (the memory-cache TTL). refresh: true always does a blocking full fresh walk. Writes made through this server drop the affected entries from memory and disk.drive_recent_changes with snapshot stores a second plaintext file, changes-snapshot.json, in the same directory under the same rules (see Recent changes); it is only written when you ask for snapshot: "save", and index clear removes it as well.drive_tree with a depth (and drive_search/drive_usage of a subfolder) is answered from a complete saved full walk that covers it and is within the max age, with its age in ageMs; it is not refreshed in the background on its own (refresh the full walk instead). A tree from an unfinished refresh does not answer it; the request walks live.proton-drive-cli index status and proton-drive-cli index clear (or just delete the file). In the MCPB bundle, the Persistent search index setting is the opt-in.Folder listings cost about 2 s each, so a full re-walk of a drive with hundreds of thousands of files takes hours. With PROTON_DRIVE_INDEX=1 the saved index is therefore refreshed incrementally, in slices that you can repeat until it is done:
listed in walk-index.json, folder path to a timestamp; the same plaintext privacy trade-off as the names and paths next to it, removed by index clear). A folder with no timestamp was never listed.PROTON_DRIVE_INDEX_FOLDER_MAX_AGE_H (default 24 hours; 0 disables reuse, which brings back full re-walks) is reused; folders with older or no listings are listed again, oldest first, until the time budget is used. Every call saves its progress, also when it stops early, so repeated calls converge. Whatever was not listed again keeps its old entries (nothing is deleted from a folder that was not re-listed); removals are only detected in folders that were re-listed, and a deleted, moved or renamed folder takes all its cached descendants with it. A renamed or moved folder is listed again at its new path, and an item that appears in a new folder is dropped from its old location even when the old folder's listing is reused.partial: true, continuing: true, complete: false, plus foldersRefreshed (listed in this call), foldersReused, foldersRemaining (still older than the allowed age or never listed; they are also in skipped) and oldestListingAgeMs (the age of the oldest listing the result is built from, also ageMs). A tree is only reported complete when every folder was listed within the allowed age.drive_refresh_index (path default /my-files, timeBudgetMs default 25000, max 120000, maxAgeHours default from the environment, changes) runs one slice and returns those numbers plus etaCalls (an estimate of the calls still needed at this pace; folders found below new folders can raise it) and saved. With changes: true it also returns changes: {added, removed, modified, samples} (up to 50 sample paths) for the folders it re-listed, found by comparing each fresh listing with the previous saved one; a folder listed for the first time counts all its entries as added. Needs PROTON_DRIVE_INDEX=1 (otherwise it answers with how to enable it); it honours PROTON_DRIVE_REMOTE_ROOTS like the other walk tools and works in readonly mode (it changes only the local index file). A scheduled task can call it repeatedly; a normal drive_search, drive_tree or drive_usage on an old index also continues the refresh within its 25 s budget.drive_content_index update asks for listings no older than one hour (PROTON_DRIVE_CONTENT_INDEX_LISTING_MAX_AGE_MIN) and reuses the saved listings for that. drive_recent_changes, drive_sync_plan, drive_find_duplicates and the sharing audit never read the saved index (they must see the live drive) and walk as before; refresh: true is a full re-walk for everybody.timeBudgetMs, because listings already under way are awaited; if they still run past the budget the result says by how much (budgetOverrunMs).maxAgeHours (or use refresh: true) when you need a fresher answer.drive_refresh_index reports saved: false. A write made through this server (upload, move, trash, rename) forgets only what it touched: a written file is dropped, and the listing times of its parent folder (and of a written folder and everything below it) are cleared, so the next slice lists just those folders again; the rest of the saved tree is kept, and changes: true then reports only the real difference. Run one version at a time: an index written by this version (file version 2) is not understood by 1.7.x, which reads it as no index, its own invalidation after a write does nothing to it, and it may overwrite the saved progress; this version still reads 1.7's version 1 files. Likewise one refresh at a time per folder tree is sensible: two server processes refreshing the same index keep the last writer's file.proton-drive-cli album list
proton-drive-cli album create "Summer 2026"
proton-drive-cli album update /albums/Summer2026 --name "Summer Trip"
proton-drive-cli album add-photo /albums/Summer2026 /photos/IMG_001.jpg
proton-drive-cli photo timeline
proton-drive-cli photo download /photos/IMG_001.jpg ./local/photos --conflict rename
proton-drive-cli photo upload ./camera-roll --conflict skip
# Backup build output after CI
proton-drive-cli upload ./dist /my-files/Releases/$(date +%Y-%m-%d) --file-conflict rename --folder-conflict rename
# Download all contracts for audit
proton-drive-cli download /my-files/Contracts ./audit/contracts
# Nightly backup via cron
0 2 * * * proton-drive-cli upload ~/Documents /my-files/Backups/$(date +%Y-%m-%d) --file-conflict skip --folder-conflict skip
# Check who has access before a team change
proton-drive-cli share status /my-files/Projects
The server offers five MCP prompts (also declared in the MCPB manifest): organise-folder (path), find-files (description), storage-audit, sharing-audit and drive-checkup (path: checkup, then an offer to clean up that can be undone). In Claude Code they are listed as /servername:promptname (MCP), and /mcp__servername__promptname also runs them. Other clients show them as prompts. A prompt is hidden when a tool it needs is outside the active tool tier: with PROTON_DRIVE_TOOL_TIER=core only find-files is offered.
drive_auth_status · drive_auth_logout · drive_version
drive_list · drive_info · drive_size · drive_read_content · drive_read_many · drive_tree · drive_search · drive_mkdir · drive_upload · drive_download · drive_rename · drive_move · drive_delete
drive_share_status · drive_share_invite · drive_share_revoke · drive_share_remove_all · drive_share_set_url · drive_share_remove_url
drive_list_trash · drive_trash · drive_restore · drive_empty_trash
PROTON_DRIVE_SYNC_PATH)drive_read_file · drive_write_file
drive_copy
drive_sync_plan · drive_bulk_move · drive_bulk_trash · drive_cleanup · drive_undo
drive_list_invitations · drive_invitation_accept · drive_invitation_reject · drive_share_leave
drive_usage · drive_find_duplicates · drive_checkup · drive_sharing_audit · drive_share_expiry_report · drive_recent_changes
drive_content_index · drive_search_content
drive_refresh_index
drive_audit_log
photos_list_albums · photos_create_album · photos_update_album · photos_delete_album · photos_list_album_photos · photos_add_to_album · photos_remove_from_album · photos_list_timeline · photos_download · photos_upload
| Tool | Description | Key parameters |
|---|---|---|
drive_auth_status | Check if authenticated (probes /my-files — no native status command) | — |
drive_auth_logout | Log out (clear session) ⚠️ | — |
drive_version | CLI and SDK version info | — |
drive_list | List files and folders at a path (paginated, default 200; / lists the roots) | path, limit?, offset? |
drive_info | Get metadata for one file/folder, including revision details (noise trimmed) | path, verbose? (raw CLI node) |
drive_size | Size of one file or folder as reported by the CLI (filesystem size; needs Proton Drive CLI 0.9.0 or newer, read-only) | path |
drive_read_content | Read the text of a file stored in Drive (no sync folder needed): text/code, .docx, text-layer .pdf; scans and images with opt-in local OCR. Paged; content is untrusted data. See Reading file contents | path, maxChars? (default 20000, max 100000), offset? |
drive_read_many | Read the text of up to 10 Drive files in one call, two at a time; per-file and total character caps; one failing file does not fail the rest. Content is untrusted data. See Reading file contents | paths (max 10), maxCharsPerFile? (default 4000, max 20000), maxTotalChars? (default 40000, max 100000) |
drive_tree | Folder overview: per-folder file counts and size totals (largest first), depth-limited, cached 5 min | path?, depth? (default 2, max 10), limit?, foldersOnly?, refresh? |
drive_search | Find files/folders under a path in one cached walk: name (substring/glob; a glob containing / matches the path relative to path), type, extension, MIME prefix, size, modified date; sortable, paginated. Reports walk.complete — false means the walk was cut short and matches may be missing | query?, glob?, path?, type?, mediaType?, extensions?, minSize?, maxSize?, modifiedAfter?, modifiedBefore?, sort?, limit? (default 50, max 500), offset?, refresh? |
drive_mkdir | Create a new empty folder | path |
drive_upload | Upload local file or folder | localPath, remotePath, fileConflictStrategy? (skip/create-new-revision/rename/replace), folderConflictStrategy? (skip/merge/rename/replace), replace trashes the existing remote item, so it needs your approval |
drive_download | Download to local path | remotePath, localPath, fileConflictStrategy? (skip/rename/remove), folderConflictStrategy? (skip/merge/rename/remove), remove deletes the existing local item, so it needs your approval |
drive_rename | Rename in place, no move | path, newName |
drive_move | Move and/or rename | sourcePath, destinationPath |
drive_copy | Copy file or folder into another Drive folder | sourcePath, destinationPath (target parent folder), newName? |
drive_delete | Permanently delete an item already in trash ⚠️ | path |
drive_list_trash | List items currently in trash (paginated, default 100; includes uid — names are not unique in trash) | limit?, offset? |
drive_share_status | Get sharing members and URL | path |
drive_usage | Storage analytics for a subtree: totals, largest files/folders, extension and media-type breakdown, old files, trash stats (sum of file sizes, not the account quota) | path?, top?, olderThanDays?, refresh? |
drive_find_duplicates | Likely duplicate groups (claimed sha1 / same size; verify downloads and sha256s candidates), wasted bytes, suggested keeper — never deletes | path?, minSize?, verify?, maxVerifyBytes?, maxVerifyTotalBytes? (default 500 MB, max 2 GB), limit?, refresh? |
drive_checkup | One-call health report for a folder: duplicates, empty folders, large old files, public links, outside access, sensitive-looking names in shared items, trash; score and at most 3 example names per finding. Changes nothing | path?, finding?, limit?, offset?, olderThanDays?, minSizeMB?, sharing?, refresh? |
drive_sharing_audit | Public links (no URL), invitees, pending invitations and risk flags for shared items (max 100) | path?, refresh? |
drive_share_expiry_report | Public links under a path with expiresAt, daysLeft and flags expired, expiringSoon, noExpiry, hasPassword, soonest first. Uses the sharing audit walk (max 100 shared items; capped says when more exist). Lists only links set directly on items below path: a link on the folder passed as path itself is not listed, so pass its parent. Changes nothing | path?, withinDays? (default 14), refresh? |
drive_recent_changes | Files added or modified since a date (since: ISO date or 7d/12h/2w, default 7d), from one complete walk. With snapshot: "diff" or "save" (needs PROTON_DRIVE_INDEX=1): added, removed, modified and moved files against the previous snapshot of that path. See Recent changes | path?, since?, limit? (default 50, max 500), snapshot?, refresh? |
drive_content_index | Opt-in (PROTON_DRIVE_CONTENT_INDEX=1): build or refresh an encrypted local full-text index of the files under one folder you name (text, markdown, .docx, text-layer .pdf); status and clear actions. Secret-looking names are skipped. Changes nothing on Drive, writes one local file (also in readonly mode). See Content search | path (required for update), action? (update default, status, clear), maxFiles? (default 200), maxFileMB? (default 20), timeBudgetMs? (default 25000) |
drive_search_content | Search the indexed file text: all words must match, BM25 ranking, trailing * = prefix on the last word. Returns path, score, snippet, indexedAt; results reflect the last index update (stale: true). Snippets are untrusted file content. See Content search | query (max 200 characters), path?, limit? (default 10, max 50) |
drive_refresh_index | Opt-in (PROTON_DRIVE_INDEX=1): refresh the saved folder index of a huge drive in resumable slices. Lists the folders whose saved listing is older than maxAgeHours (or never read), oldest first, within timeBudgetMs, and saves its progress; repeat until complete. Returns foldersRefreshed, foldersReused, foldersRemaining, oldestListingAgeMs, etaCalls, saved; with changes: true also counts and up to 50 sample paths of added, removed and modified entries in the re-listed folders. Changes nothing on Drive. See Keeping the index fresh on huge drives | path? (default /my-files), timeBudgetMs? (default 25000, max 120000), maxAgeHours?, changes? |
drive_audit_log | Newest audit-log entries plus a hash-chain check (needs PROTON_DRIVE_AUDIT_LOG; works in readonly mode) | limit? (default 50) |
drive_share_invite | Invite a user (sends an email) ⚠️ | path, email, role (viewer/editor/admin), message? |
drive_share_revoke | Revoke one person's access (fails if not a member) ⚠️ | path, email |
drive_share_remove_all | Remove every member + pending invitation at once ⚠️ | path |
drive_share_set_url | Create/replace a public share link ⚠️ (set-url replaces all link settings; if the path already has a link with a password and/or expiration that the call omits, it is refused before any change unless resetSettings: true; expiry max ~90 days) | path, role? (viewer/editor), password?, expiration?, resetSettings? |
drive_share_remove_url | Remove the public share link ⚠️ | path |
drive_trash | Move to trash | path |
drive_sync_plan | Read-only diff of a local folder vs a Drive folder (nothing transferred) | localPath, drivePath, direction? (up/down/both), ignore?, compare? (size-mtime/sha1), limit? |
drive_bulk_move | Move up to 200 items into an existing folder; without confirmed returns the plan and problems only | sources, destinationFolder, confirmed? (plan/apply switch: true applies, after you approve the list) |
drive_bulk_trash | Trash up to 200 items (recoverable); without confirmed returns the plan and problems only | paths, confirmed? (plan/apply switch: true applies, after you approve the list) |
drive_cleanup | Trash the redundant copies of exact duplicates and empty folders under a path; the server builds the list from a fresh scan and shows it to you; without confirmed returns the plan only | path, fixes, verify?, confirmed? (plan/apply switch) |
drive_undo | Undo a recorded trash, move or rename batch; apply always asks you first | action? (list/plan/apply), id? |
drive_restore | Restore from trash | path |
drive_empty_trash | Permanently delete all trash ⚠️ | — |
drive_read_file | Read text file from local sync folder | path |
drive_write_file | Write text file to local sync folder ⚠️ (overwriting an existing file needs your approval; max 5 MB) | path, content |
drive_list_invitations | List pending sharing invitations received | — |
drive_invitation_accept | Accept a pending invitation ⚠️ (needs your approval: it opens a folder someone else controls) | uid (from drive_list_invitations) |
drive_invitation_reject | Reject a pending invitation ⚠️ | uid (from drive_list_invitations) |
drive_share_leave | Leave a shared folder shared with you ⚠️ | path |
photos_list_albums | List all Proton Photos albums | — |
photos_create_album | Create a new empty album | name |
photos_update_album | Rename an album or change its cover photo | albumPath, name?, coverPhotoUid? |
photos_delete_album | Delete an album ⚠️ | albumPath, force?, save? |
photos_list_album_photos | List photos in an album (paginated, default 100) | albumPath, loadDetails?, limit?, offset? |
photos_add_to_album | Add a photo from your library to an album | albumPath, photoPath |
photos_remove_from_album | Remove a photo from an album (keeps it in library) ⚠️ | albumPath, photoPath |
photos_list_timeline | List photos in your full library timeline (paginated, default 50) | loadDetails?, limit?, offset? |
photos_download | Download photos to a local folder | photoPaths, localFolder, conflictStrategy? (skip/rename/remove), remove needs your approval |
photos_upload | Upload local files directly into your Photos library | localPaths, conflictStrategy? (skip/rename) |
⚠️ Destructive and outward-facing tools (deleting, sharing, public links, logout, accepting or rejecting invitations, the
replace/removeconflict strategies, overwriting a sync-folder file, and anything that writes into/shared-with-me) need a human yes that the server asks for itself: a dialog in your client, orproton-drive-cli approve <code>in a terminal. See Human approval. Theconfirmedargument is deprecated: it is still accepted on the tools that had it, but it no longer authorises anything (except as the plan/apply switch of the two bulk tools, and inPROTON_DRIVE_APPROVAL=model). The companion CLI still requires--confirmfor the destructive commands. Tool arguments are validated against the published schema — unknown or mistyped arguments are rejected.
| Capability | Generic S3/GDrive MCPs | proton-drive-mcp |
|---|---|---|
| End-to-end encryption | No | Yes (via Proton CLI) |
| Credential exposure | API keys in config | Zero — OS keychain only |
| Sharing & invitations | Rarely | Full (invite, revoke, status) |
| Trash & restore | Rarely | Full |
| CLI parity | No | The CLI mirrors every MCP tool except drive_read_file / drive_write_file |
| Shell injection safe | Varies | Yes — spawn with argument arrays, no shell |
limit / offset, response {total, offset, limit, hasMore, items}) to keep responses small. Responses are compact JSON.~/.ssh, ~/.aws, ~/.gnupg, ~/.claude*, keychains, shell start-up files, LaunchAgents, .env files, …) are refused, ignoring letter case on macOS and Windows. A folder upload is checked entry by entry (a secret-looking file or a symlink out of the folder refuses it), and a download is checked under the name each item will get inside the folder. Set PROTON_DRIVE_LOCAL_ROOT to allow only specific directories.drive_read_file / drive_write_file) refuse to follow symlinks out of PROTON_DRIVE_SYNC_PATH.--password) is never echoed back.drive_move accepts a full destination path (parent + new name) for a familiar interface, but the underlying CLI only has separate move (change parent) and rename (change name) commands — this MCP translates automatically, issuing one or both as needed.drive_delete only works on items already in /trash or /photos-trash — the CLI rejects live paths. Trash an item first with drive_trash, or use drive_empty_trash to clear everything at once.proton-drive-cli approve <code>, or npx -y -p proton-drive-mcp proton-drive-cli approve <code> without a global install). See Human approval. With PROTON_DRIVE_APPROVAL=model the old 1.10.1 behaviour applies: confirmed: true is enough, and an eliciting client is asked only when a call would otherwise be refused.drive_tree, drive_search, drive_usage, drive_find_duplicates) read from a cache up to 5 minutes old (with the opt-in persistent index, up to 24 h old and marked stale: true; drive_sharing_audit, drive_sync_plan and drive_find_duplicates never serve the saved index, they only reuse saved folder listings read less than 5 minutes ago); changes made by other clients or processes are not seen until it expires or you pass refresh: true. The first walk of a large drive can take minutes (measured about 21 s per 1,200 files at the default concurrency (12)); drive_search, drive_tree and drive_usage return a partial: true result after 25 s and finish the walk in the background.drive_auth_status has no native CLI equivalent — it probes by resolving /my-files and reports authenticated based on whether that succeeds./my-files/folder/file.pdf. Relative paths are not supported.--json automatically, except drive_version, whose underlying CLI command ignores --json and always prints plain text — this MCP parses it directly.tools/list is sent to the model in every session. Measured payload (JSON bytes): full about 51.8 KB in PROTON_DRIVE_APPROVAL=model mode and about 52.9 KB in the default human mode (58 tools; the test budgets are 53,700 bytes in the default human mode and 52,600 in model mode, about 1.5% above the measured sizes), core 17.9 KB (19 tools; measured before 1.12.0, which adds no core tools). Set PROTON_DRIVE_TOOL_TIER=core to load only:
drive_auth_status, drive_version, drive_list, drive_info, drive_read_content, drive_list_trash, drive_search, drive_tree, drive_mkdir, drive_upload, drive_download, drive_rename, drive_move, drive_copy, drive_trash, drive_restore, drive_share_status, photos_list_timeline, photos_download.
Left out of core (use full): permanent deletion (drive_delete, drive_empty_trash), drive_auth_logout, public links, invitations and invites, album management, photos_upload and the sync-file tools. A call to a hidden tool returns an error asking for PROTON_DRIVE_TOOL_TIER=full; no CLI command runs.
Since 1.11.0 a destructive or outward-facing operation runs only after a person says yes to that exact operation. The server asks, not the assistant. The assistant's own confirmed: true is no longer an authorisation.
What needs approval (default mode, human): drive_auth_logout, drive_delete, drive_empty_trash, drive_share_invite, drive_share_revoke, drive_share_set_url, drive_share_remove_url, drive_share_remove_all, drive_share_leave, drive_invitation_accept, drive_invitation_reject, photos_delete_album, photos_remove_from_album, applying drive_bulk_move, drive_bulk_trash or drive_cleanup, applying drive_undo (always, also for a plain restore: undoing an old move can put files back into a shared folder), drive_upload with a replace strategy, drive_download / photos_download with a remove strategy, and drive_write_file over an existing file. Also gated: drive_copy, drive_move, drive_mkdir, drive_rename, drive_upload, drive_write_file, drive_trash and drive_restore when a path they read from or write to is under /shared-with-me, because that puts your data into, or changes, a folder someone else controls.
What does not (reversible changes inside your own /my-files): a single drive_trash, drive_restore, drive_move / drive_rename / drive_copy / drive_mkdir inside /my-files, an upload that does not replace anything, album create / update / add, photos_upload, and drive_write_file to a new file. A loop of single drive_trash calls is therefore not stopped in the default mode; use strict (below) if that matters to you.
Two ways you approve
confirmed says. It counts as a yes only if you accept it with the approve box ticked; an explicit decline means no, and that is final. Only one dialog is open at a time: a gated call made while a dialog waits is turned away, not queued. If the dialog is closed without an answer (cancel), fails or times out after 120 s, nobody said no, so the call is refused with approval_required and a code (route 2 below) instead of a dead end; it still needs you at a terminal. After 5 declined or failed prompts within a minute the server stops asking for a while and refuses. If the dialog is closed or fails, an older terminal approval for the same operation is discarded, so the assistant cannot use it to answer that question. After an accepted or declined dialog, leftover records for the same operation are removed on a best-effort basis (a failed cleanup only warns).approval_required and a code such as K7Q2-M9XD. Run proton-drive-cli approve K7Q2-M9XD yourself in a terminal (without a global install: npx -y -p proton-drive-mcp proton-drive-cli approve K7Q2-M9XD): it shows the server's own record of the operation, and you type yes. Then ask the assistant to repeat the same call with the same arguments. The approval works once, for that exact operation, and lasts 5 minutes; a pending request expires after 10 minutes, and at most 20 are kept. proton-drive-cli approvals lists them and proton-drive-cli deny <code> discards one. approve refuses to run without an interactive terminal. The code only identifies the request; it is not a password and does not need to stay secret. Records live in a private folder (0700, files 0600) next to the index folder, or in PROTON_DRIVE_APPROVAL_DIR; downloads cannot write into it, and the server refuses to use it inside PROTON_DRIVE_SYNC_PATH (it warns on stderr at startup, and the assistant is told the server is misconfigured). The command must see the same folder as the server: the same PROTON_DRIVE_APPROVAL_DIR, or the same XDG_CACHE_HOME / HOME when you did not set it. A Claude Desktop extension or a service started with a different environment writes its records somewhere your terminal does not look, and approve then reports an unknown code; set PROTON_DRIVE_APPROVAL_DIR to one absolute path in both places.What you will see. Every line is written by the server from validated values, not by the assistant. For example:
drive_share_invite: invite a person to a file or folder (affects other people or is visible outside your Drive)
path: /my-files/Taxes/2025
email: someone@example.org
role: editor
message: none
Passwords and message texts are never shown, only whether a password is set and how many characters a message has. Read the paths and the effect before you approve. How each client displays a long message is not verified.
Modes (PROTON_DRIVE_APPROVAL, read once at startup):
| Value | Behaviour |
|---|---|
unset or human | The gated set above needs a human yes. |
strict | Every tool th |