wd-mycloud-mcp
Provides tools for browsing, reading, writing, moving, copying, deleting, and searching files on Western Digital MyCloud Home devices, supporting local network (SMB) and remote access via REST API and SFTP.
Click on "Install 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., "@wd-mycloud-mcplist files in the Public share"
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.
wd-mycloud-mcp
An MCP (Model Context Protocol) server that exposes Western Digital MyCloud Home file operations to AI assistants (Claude Desktop, etc.) — works both on local network and over the internet.
Features
Browse, read, write, move, copy, delete files on WD MyCloud
Three connection modes with automatic fallback:
SMB (local network) — fastest, direct mount
REST API (remote) — auto-login via WD cloud account, no browser needed
SFTP — fallback when SSH is available
Auto-mounts SMB share on first use (macOS)
Token auto-refresh — stays logged in without manual intervention
Path traversal protection on all operations
File search by name query
Related MCP server: Synology MCP Server
Requirements
macOS (uses
mount_smbfsfor SMB mode)Python 3.11+
uv (recommended) or pip
WD MyCloud Home device
Installation
git clone https://github.com/dy-le/wd-mycloud-mcp.git
cd wd-mycloud-mcp
# Install with uv
uv sync
# Or with pip
pip install -e .Configuration
Environment variables
Variable | Default | Description |
|
| Hostname or IP of device (use IP, not |
|
| SMB share name |
|
| SMB username |
| (empty) | SMB password |
|
| Local SMB mount point |
| (empty) | WD account email (for remote access) |
| (empty) | WD account password (for remote access) |
Tip: Use the device's IP address for
WD_MYCLOUD_HOSTinstead of the.localhostname to avoid mDNS resolution issues.
Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"wd-mycloud": {
"command": "/path/to/.venv/bin/wd-mycloud-mcp",
"env": {
"WD_MYCLOUD_HOST": "192.168.1.100",
"WD_MYCLOUD_SHARE": "YourShare",
"WD_MYCLOUD_USER": "youruser",
"WD_MYCLOUD_PASSWORD": "yourpass",
"WD_MYCLOUD_MOUNT": "/Users/you/.wd-mycloud/mnt",
"WD_MYCLOUD_CLOUD_EMAIL": "you@email.com",
"WD_MYCLOUD_CLOUD_PASSWORD": "yourcloudpass"
}
}
}
}Remote access (away from home)
When not on the local network, the server automatically authenticates with the WD cloud service using WD_MYCLOUD_CLOUD_EMAIL and WD_MYCLOUD_CLOUD_PASSWORD. Tokens are cached at ~/.wd-mycloud/token.json and refreshed automatically before expiry.
If direct login is unavailable, you can install the included Chrome extension (chrome-extension/) to capture a token manually by visiting home.mycloud.com.
Available Tools
Tool | Description |
| List files and directories |
| Read a text file |
| Create or overwrite a text file |
| Delete a file |
| Delete a directory |
| Create a directory |
| Move or rename |
| Copy a file |
| Search by filename |
| Get file/directory metadata |
| Show current mode and auth status |
| Force re-authentication |
Release notes
v1.1.0
Remote API mode: auto-login with WD cloud email/password, no Chrome extension required
Token refresh: access tokens are refreshed automatically using stored refresh token
Correct WD API endpoints sourced from open-source reference implementations:
File listing:
GET /sdk/v2/filesSearch/parents?ids={parentId}(ids=rootfor root)File download:
GET /sdk/v3/files/{id}/content(v3 endpoint)Delete:
DELETE /sdk/v2/files/{id}Move/rename:
PATCH /sdk/v2/files/{id}Create folder:
POST /sdk/v2/files(multipart/related)Write file:
POST /sdk/v2/files/resumable(resumable upload)
ID-based navigation with in-memory path→ID cache
Auth0 config auto-discovered from
https://config.mycloud.com/config/v1/configFixed SMB: URL-encode credentials with special characters (e.g.
@in password)Fixed mount point: use user-owned path instead of
/Volumes/to avoid permission errors
v1.0.0
Initial release: SMB-only local network access
Acknowledgements
This project references and was informed by the following open-source works:
mnencia/mchfuse (Go) — correct Auth0 login flow (
password-realmgrant type), token refresh, file API paths (/v2/,/v3/), multipart/related upload format, and PATCH for move/renamesbencoding/WD-Bridge (Node.js) —
filesSearch/parents?ids=parameter,ids=rootfor root listing, service URL discoverysbencoding/wdfs (C++) — device proxy URL discovery via
device/v1/user/{sub}, remote access architectureeverappz/MyCloudHomeSDKObjc (Objective-C) — complete API surface reference including resumable upload, token fields (
id_token,access_token,refresh_token), and file metadata schema
License
Apache 2.0
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dy-le/wd-mycloud-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server