mcp-pcloud

👋 Introduction

MCP server for pCloud — manage trash, files, sharing, public links, and file rewind recovery from your AI assistant.

⚠️ Draft — not working yet. The authentication flow is under active development, so the server is not usable end-to-end yet. The docs below describe the intended surface.

mcp-pcloud is a Model Context Protocol server for pCloud. It exposes the pCloud API to your AI assistant — browse and manage files, share folders, mint public links, and recover deleted or earlier file versions through trash and rewind history.

✨ Features

  • 🔐 Token auth — reads a bearer token from MCP_PCLOUD_TOKEN or ~/.config/pcloud/tokens.json.
  • 🗑️ Trash & rewind recovery — restore deleted files and recover earlier versions from rewind history.
  • 📁 Full file management — list, stat, copy, move, rename, and delete files and folders.
  • 🤝 Sharing & public links — share folders and create or revoke public download links.
  • 🌍 Dynamic API routing — respects pCloud's EU/US hostname split.

📦 Install

Add the server to your MCP client config:

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

See Installation for per-client setup and authentication details.

🧰 Tools

The server registers 27 tools across seven groups.

Trash

ToolDescription
list_trashList all files currently in the pCloud trash
restore_from_trashRestore a file from trash by file ID (confirm)

Rewind

ToolDescription
list_rewind_eventsList version history (rewind events) for a file path
restore_from_rewindRestore a file from rewind history to a new path (confirm)

User

ToolDescription
get_user_infoGet account info: email, quota, and plan

Files

ToolDescription
list_folderList the contents of a folder
get_file_statGet metadata for a file or folder
create_folderCreate a folder (no-op if it already exists)
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 (confirm)
delete_folderRecursively delete a folder (confirm)
get_file_linkGet a download URL for a file
get_checksumGet SHA256, SHA1, and MD5 checksums for a file

Sharing

ToolDescription
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 (confirm)
ToolDescription
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 (confirm)

Zip & Revisions

ToolDescription
get_zip_linkGet a download URL for a ZIP of files and/or folders
list_revisionsList all revisions for a file
revert_revisionRevert a file to a previous revision (confirm)

Tools marked (confirm) require confirm=true to execute their destructive action.

📖 More

On this page