mcp-unifi-drive
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| UNIFI_DRIVE_HOST | No | The UNAS host/IP (the UNAS itself, not the gateway), e.g. 192.168.1.2. | |
| UNIFI_DRIVE_API_KEY | No | API key used for cloud mode via api.ui.com's Site Manager connector. | |
| UNIFI_DRIVE_PASSWORD | No | The password for the UNAS-local admin user. | |
| UNIFI_DRIVE_USERNAME | No | A UNAS-local admin username (created on the UNAS under UniFi OS → Admins & Users). | |
| UNIFI_DRIVE_CONSOLE_ID | No | Console ID used together with UNIFI_DRIVE_API_KEY for cloud mode. | |
| UNIFI_DRIVE_FINGERPRINT | No | TLS certificate fingerprint printed at startup; set it to state trust explicitly instead of learning on first contact. | |
| UNIFI_DRIVE_ALLOW_WRITES | No | Set to 1 to register the write tools (each requires confirm: true). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| unifi_drive_auth_statusA | Check whether this server can actually reach your UniFi Drive console (the UNAS). By default it logs in and makes a real call, so the answer reflects the console rather than cached state — this is the tool to run when something is not working. Reports the host, the account, which UNAS answered (name, model, Drive version), whether TLS is verified, and whether writes are enabled; when nothing is configured it returns the exact setup steps instead. Call this first when a tool you expected is not listed: an absent tool means missing configuration or writes being off, not a bug. |
| unifi_drive_get_systemA | The UNAS itself: name, model, UniFi OS and Drive versions (and whether a Drive update is waiting), uptime, CPU load and temperature, memory, network links and fan mode. For disks and RAID use unifi_drive_get_storage; for an overall verdict use unifi_drive_health_check. |
| unifi_drive_health_checkA | One verdict on the whole UNAS, as ranked findings: pool full or nearly full, degraded RAID, a RAID level short of its target, disks at risk or hot or growing bad sectors, SSD cache problems, snapshot schedules that have silently stopped, failed or missing remote backups, a waiting Drive update, and the high-severity log events of the last |
| unifi_drive_get_storageA | Storage pools, RAID and disks. Per pool: status, current and target RAID level (a target above the current one is reached by adding disks, not a migration in flight unless |
| unifi_drive_get_io_statsA | Throughput over a window, reduced to average / peak (with when) / latest: pool read and write KB/s and IOPS, plus per-disk throughput, temperature range and any bad sectors added during the window. Also the live network rate. Use it for 'is the NAS busy?', 'what is hammering it?', or 'did a disk heat up overnight?'. Returns summaries, not the raw series, unless |
| unifi_drive_list_drivesA | Every shared and personal drive: usage, quota (and how full it is), member count, encryption, whether remote backup and the SMB recycle bin are on, and its snapshot state — schedule, how many are kept, the last and next one, and whether snapshots are paused and why. Use it to answer 'what is using the space?' and 'are my snapshots running?'. Quotas are reported in real units; the console stores them as GB. |
| unifi_drive_list_snapshotsA | The snapshots kept for one drive, newest first: id, when it was taken, its description, and whether it is locked against automatic rotation. Use the ids with unifi_drive_delete_snapshot (when writes are enabled). For whether snapshots are running at all, unifi_drive_list_drives is cheaper. |
| unifi_drive_list_logsA | The UNAS system log, newest first, each entry rendered as the sentence the web app shows ("A scheduled snapshot for Shared_Drive was skipped due to insufficient storage space."). Filter by severity, category, type and time. Sign-ins and file activity are EXCLUDED by default because they bury everything else — one line per SMB reconnect — so set |
| unifi_drive_list_usersA | Drive users with their username, name, email, groups, and how much their personal drive holds; then the groups with their members by name. Users are the people with file access; console admins who never use Drive may not appear. |
| unifi_drive_list_servicesA | Which file services the UNAS offers: SMB, NFS, Time Machine, rsync and public share links, each on or off, plus the addresses clients reach it on. |
| unifi_drive_list_backupsA | Off-device backups: remote backup tasks (to Google Drive, OneDrive, Dropbox, S3, Wasabi, B2 or UniFi Cloud Storage) with their destination accounts, and Microsoft 365 backup tasks with their tenants. Each task's last run says whether it succeeded. An empty list means every drive's only copy is on this UNAS. |
| unifi_drive_requestA | Escape hatch: call any private Drive API endpoint directly, relative to /proxy/drive/api. The path carries the API generation: |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 12 tools
Each tool targets a distinct facet of the NAS — services, auth, system, storage, IO, drives, snapshots, logs, users, backups — and descriptions actively cross-reference siblings (get_system vs get_storage vs health_check, list_drives vs list_snapshots vs list_logs), which removes most confusion. The only soft overlaps are the aggregate health_check/io_stats versus the raw get_storage/get_system reads, but the guidance on when to pick each resolves them.
All twelve tools share the unifi_drive_ prefix and mostly follow verb_noun (list_services, get_system, get_storage, list_drives, list_backups). A few deviate into noun phrases (auth_status, health_check, request), which is a minor inconsistency but still readable and predictable.
Twelve tools is well within the sweet spot and each earns its place: one per resource family plus a deliberate health aggregate and a documented escape hatch. Nothing looks redundant or padded.
Read/inspect coverage is excellent, but the lifecycle is one-sided: no snapshot create/restore, no drive/share creation or quota update, no user management, and no way to trigger a backup. Worse, list_snapshots points at 'unifi_drive_delete_snapshot' when writes are enabled, yet no such tool appears in the set, and the generic request tool only permits GET by default — so mutation workflows dead-end.