PluginBench
MCP Server
Active
MIT

zspace-cli MCP Server

io.github.skyzhao1223/zspace-cli

Zero-config CLI + MCP server for ZSpace NAS file operations and pool stats via desktop client—no password, SSH, or DDNS needed.

What is the zspace-cli MCP server?

The zspace-cli MCP server is a zero-config tool that manages your ZSpace NAS from the terminal or AI agents by communicating with the ZSpace desktop client's local proxy. It provides file operations (upload, download, move, copy, delete, rename), directory navigation, full-text search, and tree views without requiring passwords, SSH, or DDNS setup.

zspace-cli lets you automate ZSpace NAS management through a CLI, Python SDK, or MCP interface. Keep the ZSpace desktop client logged in on macOS (or Windows/Linux with best-effort support), and you can list directories, search files, upload/download with automatic sliced handling for large files, and organize your NAS using packaged AI agent skills. It works behind NAT and includes 8 cross-NAS organizer skills (photo, music, work, portfolio, downloads, dedup, backup audit) that work on any mounted path.

How to install zspace-cli

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "zspace-cli": {
      "command": "uvx",
      "args": [
        "zspace-cli"
      ]
    }
  }
}

Tools & capabilities

Tools this server exposes to the agent.

  • zspace_ls — List directory contents with optional hidden files and long format
  • zspace_info — Get detailed file or directory information
  • zspace_rename — Rename a file or directory
  • zspace_mkdir — Create a new directory
  • zspace_move — Move a file or directory (supports glob patterns)
  • zspace_copy — Copy a file or directory (supports glob patterns)
  • zspace_remove — Delete a file or directory (supports glob patterns)
  • zspace_search — Full-text search across the NAS
  • zspace_tree — Display tree view of directory structure with configurable depth
  • zspace_upload — Upload files with automatic sliced upload for large files (>64 MB)
  • zspace_download — Download files or directories (supports glob patterns)
  • zspace_check — Verify the desktop client proxy is reachable and authenticated

Use cases

  • Organize media libraries (photos, music, videos) on your NAS using AI-driven skills that scan, plan, and execute file reorganization
  • Automate large-file backups from cloud services (Baidu NetDisk) to your ZSpace NAS with resumable chunked downloads and sliced uploads
  • Search and manage files across your NAS from the terminal or AI agents without exposing credentials or requiring SSH/DDNS setup
  • Audit backup health, detect duplicate content, and clean up downloads folder using specialized organizer skills
  • Integrate ZSpace file operations into Cursor, Claude, or other MCP clients for hands-free NAS automation

zspace-cli MCP server FAQ

What is zspace-cli?

zspace-cli is an unofficial CLI and MCP server that manages your ZSpace NAS through the desktop client's local proxy. It provides file operations, search, upload/download, and AI agent skills—no passwords, SSH, or DDNS required.

Is zspace-cli free?

Yes, zspace-cli is open-source under the MIT license and free to use. It requires a ZSpace NAS and the official ZSpace desktop client running and logged in on your machine.

How do I install it in Cursor or Claude?

Install via pip: `pip install "zspace-cli[mcp]"`, then add to your MCP config: `{"mcpServers": {"zspace": {"command": "zs-mcp", "args": []}}}`. The desktop client must be logged in on macOS (Windows/Linux support is best-effort).

Do I need to provide my ZSpace password?

No. zspace-cli reads your login state from the desktop client's local config file (vuex.json) and communicates via the client's local proxy on 127.0.0.1:13579. No passwords are handled or transmitted.

What platforms are supported?

macOS is fully supported. Windows and Linux have best-effort config auto-detection. Docker headless mode is available if you mount the host's ZSpace config and point to the host's proxy via ZS_BASE_URL.

What are the agent skills?

8 packaged skills: nas-report (storage profile), photo-organizer, music-organizer, work-organizer, portfolio-organizer, download-cleaner, dedup-finder, and backup-auditor. They scan, let the LLM draft a plan, you confirm, then the agent executes. All work on any mounted path (ZSpace, Synology, QNAP, etc.).

README (reference)

Source of truth, from the repository.

<div align="center">

zspace-cli

English · 简体中文

PyPI - Version PyPI - Python CI skyzhao1223/zspace-cli MCP server

</div>

Manage your 极空间 (ZSpace) NAS from the terminal or AI agents — no password, no SSH, no DDNS.

mcp-name: io.github.skyzhao1223/zspace-cli

Just keep the ZSpace desktop client logged in on macOS.

📖 How large-file sliced upload was born: 一次 1.4GB 备份引发的逆向 (zh, CSDN) · CLI guide: 极空间 NAS 命令行管理指南 (zh, CSDN)

Beginner guide (no coding required) · Skills — incl. 8 cross-NAS organizer skills for AI agents · 中文文档

<p align="center"> <img src="https://raw.githubusercontent.com/skyzhao1223/zspace-cli/main/docs/assets/demo.gif" alt="zspace-cli terminal demo" width="720"> </p>

Install

pip install zspace-cli        # base
pip install "zspace-cli[mcp]" # optional MCP support
zs check                      # ✓ reads the desktop client login state

Prerequisite: the ZSpace desktop client is running and logged in on macOS.


Quick start

zs ls /sata11/my/data/影视
zs find "权力的游戏"                  # full-text search
zs tree /sata11/my/data -d 3
zs up ./本地文件.mp4 /sata11/my/data/影视   # upload
zs down /sata11/my/data/影视/某文件.mkv ./下载 # download
from zspace_cli import ZSpaceClient

with ZSpaceClient() as zs:
    for f in zs.ls("/sata11/my/data"):
        print(f"{'📁' if f.is_dir else '📄'} {f.name}")

CLI options

CommandMeaning
zs checkVerify the desktop client proxy is reachable
zs ls [path]List directory (-a/--hidden, -l/--long)
zs info <path>Detailed file/dir info
zs rename <path> <new>Rename a file or directory
zs mv <src> <dest>Move a file/directory
zs cp <src> <dest>Copy a file/directory
zs mkdir <parent> <name>Create a directory
zs rm <path>Delete (-f/--force skips confirmation)
zs find <keyword> [path]Full-text search across the NAS
zs tree [path]Tree view (-d/--depth N, default 2)
zs up <local> <remote_dir>Upload (-n/--name to rename remotely; large files auto-switch to sliced upload)
zs down <path> [dir]Download
zs skill <dir>Copy Agent skills into a project (--list, --only a,b)
zs --config-dir <dir>Point at a non-default vuex.json location (or ZS_CONFIG_DIR)

zs check, zs ls, zs info, zs find, zs tree accept --json for machine-readable output. zs mv/zs cp/zs rm/zs down accept * ? glob patterns on the source path.

ls pages through large directories automatically (the NAS API returns at most 50 entries per call). find uses the NAS full-text index, so it searches across directories. Upload/download show a progress bar on a real terminal and stream the file (no full-file buffering). CJK paths work out of the box. Files above 64 MB are uploaded through the desktop client's sliced /v2/file/upload protocol (2 MB slices), because the local proxy rejects oversized single-request bodies with HTTP 413; a 413 on a smaller file falls back to slices automatically.


Features

OperationCLISDKMCP
List directoryzs ls [path]client.ls(path)zspace_ls
File infozs info <path>client.info(path)zspace_info
Renamezs rename <path> <name>client.rename(path, name)zspace_rename
Create dirzs mkdir <parent> <name>client.mkdir(parent, name)zspace_mkdir
Movezs mv <src> <dest>client.move(src, dest)zspace_move
Copyzs cp <src> <dest>client.copy(src, dest)zspace_copy
Deletezs rm <path>client.remove(path)zspace_remove
Searchzs find <keyword>client.search(kw)zspace_search
Tree viewzs tree [path]client.tree(path)zspace_tree
Uploadzs up <local> <dir>client.upload(local, dir)zspace_upload
Downloadzs down <path> [dir]client.download(path, dir)zspace_download
Health checkzs checkclient.is_connected()zspace_check

Use with AI agents (Skills)

zs skill --list                           # see what's available
zs skill ~/your-project/.cursor/skills/   # install all (Cursor)
# zs skill ~/your-project/skills/         # Claude Code, etc.
zs skill ~/your-project/skills/ --only nas-report,photo-organizer   # or pick a few

Then tell your agent things like "list the files in /sata11/my/data". The skills ship inside the wheel, so zs skill works on any machine that has zspace-cli installed.

Besides zspace-nas (the zero-config base for ZSpace file ops), zs skill installs a family of 8 cross-NAS organizer skills. Their scanners are pure-stdlib and run on any mounted path (SMB/NFS), so they work with ZSpace, Synology, QNAP, UGREEN, etc. All follow the same read-only pattern: scan → the LLM drafts an old→new plan → you confirm → the agent executes (deletes always quarantine first).

SkillWhat it does
nas-report🧭 Entry point: whole-disk storage profile + routes you to the right specialist skill
photo-organizerPhotos/videos: file by shoot date, screenshots/WeChat images, burst de-dup
music-organizerMusic: Artist/Album/Track structure, track numbers, covers, built-in ID3v2 parsing
work-organizerWork files: archive loose files, version chaos, copies, stale-file archiving
portfolio-organizerPortfolio: project structure, cover/README, separate finals from sources
download-cleanerDownloads: triage & clean (partials/torrents/installers/archives/unsorted media)
dedup-finderContent-level exact de-dup (3-stage fingerprint size→head→full sha1, zero false positives)
backup-auditorBackup health: version rotation, staleness, coverage check

Start with nas-report to see the big picture, then run whichever specialist it recommends. See skills/README.md for the full list. Media-library naming stays a separate project: media-manager-skill.


How it works

ZSpace has no official CLI or public API. zspace-cli talks to the desktop client's local proxy, so it works behind NAT as long as the client is online:

Skill / zs / SDK / MCP  →  127.0.0.1:13579 (desktop client proxy)  →  NAS

Disclaimer — This is an unofficial, community-maintained project, not affiliated with or endorsed by ZSpace (极空间). It relies on the desktop client's local proxy interface, which is not officially documented. It only reads the login state of your own account on your own machine — it does not bypass authentication, crack encryption, or touch anyone else's data. Use at your own risk; make sure your use complies with the ZSpace user agreement and your local laws.

Platform support

Works on any OS where the ZSpace desktop client exposes its local proxy on 127.0.0.1:13579. The login state (vuex.json) is auto-detected:

PlatformDefault location
macOS~/Library/Application Support/zspace/vuex.json
Windows%APPDATA%\zspace\vuex.json (also tries %LOCALAPPDATA%, %USERPROFILE%)
Linux~/.zspace/vuex.json, ~/.config/zspace/vuex.json (best-effort)

If the client stores it elsewhere, point the CLI/SDK at it explicitly:

zs --config-dir ~/path/to/zspace-config check
ZS_CONFIG_DIR=~/path/to/zspace-config zs check   # or as an env var

Windows/Linux config locations are best-effort guesses (not verified against a real client). If auto-detection misses yours, please open an issue with the actual path so it can be added.

Windows on ARM — some [mcp] dependencies (e.g. cryptography) don't ship ARM64 wheels for every version, so pip install "zspace-cli[mcp]" may try to build them from source (slow, or fails without Rust). Force prebuilt wheels: pip install --only-binary=:all: "zspace-cli[mcp]".

MCP configuration (optional)

{
  "mcpServers": {
    "zspace": { "command": "zs-mcp", "args": [] }
  }
}

Docker (headless)

Run the CLI / MCP server in a container and talk to the desktop client proxy on the host — no desktop client needed inside the image:

export ZS_CONFIG_HOST_DIR="$HOME/Library/Application Support/zspace"   # macOS
# export ZS_CONFIG_HOST_DIR="$APPDATA/zspace"                          # Windows
# export ZS_CONFIG_HOST_DIR="$HOME/.zspace"                            # Linux
docker compose build
docker compose run --rm zspace-cli zs check
docker compose run --rm zspace-cli zs ls /sata11/my/data

It mounts the host's ZSpace config read-only (ZS_CONFIG_HOST_DIR) and points ZS_BASE_URL at the host via host.docker.internal. On Linux hosts, either use network_mode: host or the included extra_hosts mapping. For a plain container run:

docker build -t zspace-cli .
docker run --rm --network host \
  -e ZS_BASE_URL=http://127.0.0.1:13579 \
  -e ZS_CONFIG_DIR=/config \
  -v "$HOME/Library/Application Support/zspace:/config:ro" \
  zspace-cli zs check

Globbing

rm / mv / cp / down accept glob patterns (*, ?, [...], **) that are expanded on the NAS:

zs rm "/sata11/my/data/影视/*.mkv" --force
zs cp "/sata11/my/data/**/*.mp4" /sata11/my/data/movies
zs down "/sata11/my/data/photos/*.jpg" ./photos

Or via the SDK: client.glob("/sata11/my/data/**/*.mkv").


API reference

EndpointKey Parameters
/v2/file/listpath, show_hidden, start, limit
/v2/file/infopath
/v2/file/modifypath, newname
/v2/file/newdirparent, name, rename=0
/v2/file/move / copypaths[], to
/v2/file/removepaths[]
/v2/file/createbinary body, header path as UTF-8 bytes (small-file upload; proxy returns 413 above a size cap)
/v2/file/uploadsliced upload: query uuid=md5(mtime_ms+size+target_path), headers seek/split=1/size/path per 2 MB slice
/v2/file/downloadGET path, remote_port=8050
/file_search/file_searchkeyword

Note: the interface parameter names are non-standard (parent / to instead of path / dest) — documented by the community from the desktop client's behavior.


Repository layout

zspace-cli/
├── src/zspace_cli/
│   ├── cli.py         # Typer CLI (zs ...)
│   ├── client.py      # ZSpaceClient SDK (retry / stream / progress)
│   ├── auth.py        # vuex.json auto-detection + credential cache
│   ├── mcp_server.py  # MCP tools (zs-mcp)
│   └── skills/        # packaged skill copies shipped in the wheel (keep in sync!)
├── skills/            # skill sources — the source of truth (edit here)
├── scripts/mcp_smoke.py
├── tests/             # pytest (CLI + SDK + MCP + auth)
└── promo/             # launch/promo material (submodule)

Integrations

Pair zspace-cli with Jellyfin / Emby / MoviePilot / MCP clients / Docker and media-manager-skill for media library tooling.

For cloud-drive → NAS pipelines, combine with baidu-pan-skill: it downloads Baidu NetDisk (百度网盘) share links reliably (cookie extraction, transfer-save, resumable chunked downloads, structural verification), then zs up takes over for the sliced large-file upload to the NAS. Both ship as agent skills, so one prompt can drive the whole backup.


Roadmap

  • File upload/download
  • Linux / Windows client auth (best-effort path detection + ZS_CONFIG_DIR)
  • Docker headless option (ZS_BASE_URL + docker-compose.yml)
  • Batch glob helpers (glob() + zs rm/mv/cp/down patterns)
  • Agent skill family: 8 cross-NAS organizers + nas-report entry, selective install (zs skill --list/--only)
  • Optional EXIF-based photo dating (photo-organizer via exiftool/mdls) — #14
  • Per-skill config overrides (whitelist dirs / extension sets) — #15
  • Growth-trend reports (diff two nas-report snapshots) — #16

Contributing

PRs welcome — see CONTRIBUTING.md for dev setup, quality gates, and the skill-authoring guide (including the skills/ ↔ src/zspace_cli/skills/ dual-copy sync rule that CI enforces).

Legal

Unofficial community project, not affiliated with or endorsed by ZSpace/极空间. It automates your own logged-in desktop client on your own machine — no passwords handled, no service gates bypassed (membership-gated features are documented as gated, never worked around). API notes are interoperability documentation of observed client behavior and may break with client updates. Concerns or takedown requests: skyzhao1223@users.noreply.github.com — legitimate requests are answered promptly. Source archives ship with every GitHub Release; the maintainer keeps off-platform git bundle mirrors.

License

MIT

Related MCP servers

Turn plain language into real workouts on your Garmin watch: pace, HR, power, intervals, swim sets.

0
TypeScript
MIT
View repository →

Read-only access to your CellarTracker wine cellar: inventory, drinking windows, purchases, notes.

6
TypeScript
MIT
View repository →

Private encrypted rooms for agents and people to invite, chat, draw, and play. Local and hosted MCP.

0
TypeScript
MIT
View repository →

Research synthesis with receipts: cited, critic-checked insights from interview transcripts.

0
Python
View repository →
CACalculator logo

Exact arithmetic: one calculator tool over an AST allowlist, with integers exact at any size.

0
Python
MIT
View repository →

High-resolution GeoSphere Austria weather, storms and air quality. Austria and the Alps only.

1
Python
MIT
View repository →