icloud-mcp
Provides tools for interacting with iCloud Drive, including listing folders, retrieving metadata, searching by name or glob, reading and downloading files, uploading and writing files, creating folders, renaming, moving, trashing, listing trash, and restoring items. It talks directly to iCloud and can use hydrated local copies when available.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@icloud-mcplist everything in my Documents folder in iCloud Drive"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
icloud-mcp
MCP server for iCloud Drive. It talks to iCloud directly, so it can list, read and write files whether or not they have been synced to this machine. When a full copy of a file does exist in the local iCloud Drive folder, reads use it and skip the network.
How it decides
Operation | Where it goes |
list, info, search | iCloud (the source of truth). Each entry carries a |
read_file, download | A hydrated local copy if there is one, otherwise streamed from iCloud. |
upload, write_file, mkdir, rename, move, trash, restore | Always iCloud, so every device sees the change at once. |
If the saved session stops working, reads of hydrated local files still succeed
(with a warning); everything else returns one error telling you to sign in again.
Paths are forward-slash and relative to the Drive root, for example
Documents/notes.txt. An empty path is the root. .. is rejected.
Related MCP server: Apple MCP
Tools
Tool | Purpose |
| Apple ID in use, whether the session works, local folder path |
| List a folder |
| Metadata for one item |
| Name search under a folder (substring, or glob with |
| Read a file as text, capped per call, page with |
| Save a file to a local path |
| Upload a local file into a folder |
| Create a text file from a string |
| Create a folder |
| Rename in place |
| Move into another folder |
| Move to the iCloud trash |
| List the trash |
| Restore from the trash by name |
Nothing is deleted permanently.
Setup
Requires Python 3.12+ and uv.
Sign in once at a terminal. The password and 2FA code are typed there and never
stored; only Apple's session cookies are kept, under ~/.icloud-session.
uv run icloud-mcp login
uv run icloud-mcp statusClaude Code plugin
claude plugin marketplace add robworks-code/robworks-claude-code-plugins
claude plugin install icloud-mcp@robworks-claude-code-pluginsManual registration
claude mcp add icloud-mcp -- uv run --project /path/to/icloud-mcp icloud-mcp serveConfiguration
Variable | Default | Meaning |
| the ID saved by | Apple ID to use |
|
| Where session cookies live |
|
| Local sync folder |
|
| Cap for one |
Development
scripts/check.sh # ruff + unit tests (PowerShell: scripts/check.ps1)
scripts/check.sh --live # also runs a round-trip against the real account in _icloud-mcp-testThe unit tests use an in-memory stand-in for the Drive, so they need no account.
This server cannot be deployed
Maintenance
Related MCP Connectors
Private shared file system for agents: workspaces, invites, shared files.
Cloud macOS with Xcode for AI agents: run commands, build, test and ship iOS apps.
Persistent file storage for AI agents via MCP and curl. Upload, download, and version files.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceMCP server for iCloud Drive on macOS, enabling Claude to browse, read, search, tag, write, and trash files with safe defaults and automatic handling of iCloud placeholder files.13 npm1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to access iCloud Calendar, Reminders, and Mail with configurable scope and read-only modes.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables an AI assistant to read and search iCloud mail, draft messages (never sent), manage calendar events with a preview/commit gate, and look up contacts via IMAP, CalDAV, and CardDAV.38 npmMIT
- AlicenseAqualityAmaintenanceEnables read-only iCloud Drive access over MCP, allowing users to browse folders, search filenames, download files, and extract document text.52MIT