← Projects
MIT · Open source

mcp-pcloud

Recover lost pCloud files from Claude — restore from trash and rewind to older versions

Features

  • Trash management — list deleted files and restore them by ID from pCloud trash.
  • Rewind recovery — browse version history for any file path and restore a previous version to a new location.
  • File revisions — list all revisions for a file and revert to any prior state.
  • Folder and file operations — list, stat, copy, move, rename, create, and delete files and folders.
  • Sharing — share folders with other pCloud users, accept or decline incoming share requests, and remove active shares.
  • Public links — create, list, and delete public download links for files and folders, with optional expiry and download limits.

Install

Add the server to your MCP client config:

{
  "mcpServers": {
    "mcp-pcloud": {
      "command": "npx",
      "args": ["-y", "@kud/mcp-pcloud"],
      "env": {
        "MCP_PCLOUD_TOKEN": "your-pcloud-token"
      }
    }
  }
}

Authentication is resolved from environment variables. Set one of:

  • MCP_PCLOUD_TOKEN — a pCloud access token (simplest)
  • MCP_PCLOUD_CLIENT_ID + MCP_PCLOUD_CLIENT_SECRET — OAuth credentials

Usage

Once configured, the following tools are available to your AI assistant:

ToolDescription
list_trashList all files currently in pCloud trash
restore_from_trashRestore a file from trash by file ID
list_rewind_eventsList version history for a file path
restore_from_rewindRestore a file from its rewind history to a new path
list_revisionsList all revisions for a file
revert_revisionRevert a file to a previous revision
get_user_infoGet account info: quota, email, and plan
list_folderList the contents of a folder
get_file_statGet metadata for a file or folder
create_folderCreate a folder
copy_fileCopy a file to a new path
move_fileMove a file to a new path
rename_fileRename a file
delete_filePermanently delete a file
delete_folderRecursively delete a folder and all its contents
get_file_linkGet a download URL for a file
get_checksumGet SHA256, SHA1, and MD5 checksums for a file
get_zip_linkGet a download URL for a ZIP archive of files or folders
list_sharesList all active folder shares
share_folderShare a folder with another pCloud user
accept_shareAccept an incoming share request
decline_shareDecline an incoming share request
remove_shareRemove an active share
create_file_publinkCreate a public download link for a file
create_folder_publinkCreate a public link for a folder
list_publinksList all active public links
delete_publinkDelete a public link by its code

Development

git clone https://github.com/kud/mcp-pcloud.git
cd mcp-pcloud
npm install
npm run dev
ScriptPurpose
npm run devRun from source via tsx
npm run buildCompile TypeScript to dist/
npm run typecheckType-check without emitting
npm testRun the test suite with Vitest
npm run inspectLaunch the MCP inspector against the built server