iCloud Drive Docs MCP Server
Read-only MCP server for listing, searching, downloading, and reading iCloud Drive documents.
iCloud Drive Docs scores 63 (Good), licensed MIT and written in Python. It installs as a local process. It declares 2 tools. Filed under Knowledge. GitHub shows 2 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
63 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Where the 63 comes from
22 + 15 + 2 + 10 + 4 + 10 = 63. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 15 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 2 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "js713-lab-icloud4u-mcp": { "command": "npx", "args": [ "-y", "https://github.com/js713-lab/icloud4u-mcp/releases/download/v0.1.0/icloud-docs-mcp-0.1.0.mcpb" ], "env": { "ICLOUD_USERNAME": "", "ICLOUD_ROOT": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
ICLOUD_USERNAME | Required | Apple ID. There is no default. |
ICLOUD_ROOT | Optional | Optional Drive folder prefix. All tools are scoped under it. |
Tools2Tool docs quality grade C
All capabilitieslist_foldertoolOne directory. Empty path is Drive root (or ICLOUDROOT).
read_texttoolDownload if needed; extract text from pdf, docx, xlsx, txt, csv.
About
icloud-docs-mcp
Your agent can find a PDF in iCloud Drive and quote page 3.
Read-only Model Context Protocol server for iCloud Drive. Linux, Windows, or macOS — no Mac, no Spotlight, no ~/Library required.
Source: js713-lab/icloud4u-mcp. The installable package and CLI are named icloud-docs-mcp.
Mail / Calendar / Contacts MCPs already exist. Drive is still the weak spot in the Apple stack if you are not on a Mac. That is the wedge: cross-platform Drive without needing a Mac. It is a utility, not a category.
It lists a folder, searches by filename, downloads files, and extracts text from common documents. There is no default Apple ID, no bundled documents, and no company-specific search logic.
Apple does not publish a third-party iCloud Drive API. This server uses the unofficial pyicloud library. You do not own that pipe. Apple can change an endpoint and this tool is down until someone reverse-engineers it again. Do not promise reliability this repo does not control.
Example:
Find the invoice in iCloud Drive and quote page 3.
What it is not
- Not Mail, Calendar, Contacts, or Notes
- Not a macOS-local Drive MCP (those already use Spotlight /
~/Library) - Not a hosted / HTTP MCP (it runs locally over stdio)
- Not a 2FA prompt inside the model session
- Not upload, rename, or delete
- Not a reliability SLA. The unofficial client will break.
Disclaimer
This is not an Apple product. Apple does not publish a third-party iCloud Drive API. The unofficial client can break when Apple changes endpoints, and using it may conflict with Apple's terms. Use it at your own risk, locally, on an account you control.
Do not expose this server on the network. Cookiejar files are login credentials: never commit them, never paste them into issues, and never check in .env. See SECURITY.md.
The status tool returns the configured Apple ID and local cache paths so a client can tell whether login succeeded. It never returns a password.
Install
Python 3.10+
From this repository:
git clone https://github.com/js713-lab/icloud4u-mcp.git
cd icloud4u-mcp
python3 -m venv .venv
source .venv/bin/activate
pip install -e .
Install from GitHub:
pip install git+https://github.com/js713-lab/icloud4u-mcp.git
Or, once the package is on PyPI:
pip install icloud-docs-mcp
Copy .env.example to .env and set ICLOUD_USERNAME to your Apple ID. .env is gitignored.
cp .env.example .env
Login (required once)
The MCP process will not wait for a 2FA code. Log in in a real terminal:
export ICLOUD_USERNAME='you@example.com'
icloud-docs-mcp login
You will be prompted for the password and, if Apple asks, a 6-digit device code. A trusted cookiejar is stored under:
$XDG_DATA_HOME/icloud-docs-mcp/<sanitized-username>/
(~/.local/share/icloud-docs-mcp/... if XDG_DATA_HOME is unset.)
If a tool returns NEED_LOGIN or NEED_2FA, run icloud-docs-mcp login again, then retry.
icloud-docs-mcp status
Tools
| Tool | Purpose |
|---|---|
status | Session health. Returns the Apple ID and cache paths, never a password. |
list_folder | One directory. Empty path is Drive root (or ICLOUD_ROOT). |
search | Filename/path query, optional ext, capped results. |
download | Copy Drive files to the local cache. Returns paths, not bytes. |
read_text | Download if needed; extract text from pdf, docx, xlsx, txt, csv. |
Search and read_text are capped so MCP clients with a small result limit are not flooded.
Environment
| Variable | Required | Meaning |
|---|---|---|
ICLOUD_USERNAME | yes | Apple ID. No default. |
ICLOUD_PASSWORD | no | Login CLI prompts if unset. Avoid putting this in the MCP env. |
ICLOUD_SESSION_DIR | no | Cookiejar directory override. |
ICLOUD_DOWNLOAD_DIR | no | Local download cache. |
ICLOUD_ROOT | no | Drive folder prefix; all tools are scoped under it. |
MCP clients
Default command (no args) speaks MCP on stdio:
icloud-docs-mcp
Grok
[mcp_servers.icloud_docs]
command = "icloud-docs-mcp"
env = { ICLOUD_USERNAME = "${ICLOUD_USERNAME}" }
startup_timeout_sec = 45
tool_timeout_sec = 180
tool_timeouts = { search = 180, download = 300, read_text = 180 }
Claude Desktop / Cursor
{
"mcpServers": {
"icloud-docs": {
"command": "icloud-docs-mcp",
"env": {
"ICLOUD_USERNAME": "<your-apple-id>"
}
}
}
}
Use an absolute path to the venv binary if the client does not inherit your PATH.
Grok can also load .mcp.json from this repo:
grok plugin install js713-lab/icloud4u-mcp --trust
That only starts the server. You still need pip install icloud-docs-mcp (or pip install -e .) and icloud-docs-mcp login on the machine.
To publish a release to PyPI and the official MCP Registry, see PUBLISH.md.
Development
pip install -e ".[dev]"
pytest
Tests mock Apple. CI must never log into iCloud. See CONTRIBUTING.md.
License
MIT. Security reports: SECURITY.md.
Maintained by CodeCrafter · contact hong@codecrafter.dev.
Frequently asked questions
What is iCloud Drive Docs MCP Server?
Read-only MCP server for listing, searching, downloading, and reading iCloud Drive documents.
How do I install iCloud Drive Docs MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. iCloud Drive Docs MCP Server runs locally from the MCP bundle https://github.com/js713-lab/icloud4u-mcp/releases/download/v0.1.0/icloud-docs-mcp-0.1.0.mcpb with the command npx -y https://github.com/js713-lab/icloud4u-mcp/releases/download/v0.1.0/icloud-docs-mcp-0.1.0.mcpb.
Is iCloud Drive Docs MCP Server free and open source?
Yes. iCloud Drive Docs MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does iCloud Drive Docs MCP Server support remote (HTTP) connections?
No remote endpoint is listed for iCloud Drive Docs MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does iCloud Drive Docs MCP Server provide?
iCloud Drive Docs MCP Server provides 2 tools: list_folder and read_text. See the full tool list for descriptions and parameters.
How is iCloud Drive Docs MCP Server's trust score calculated?
iCloud Drive Docs MCP Server scores 63 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.