Skip to main content
Glama
mcp-unifi-drive
by mgcrea

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
UNIFI_DRIVE_HOSTNoThe UNAS host/IP (the UNAS itself, not the gateway), e.g. 192.168.1.2.
UNIFI_DRIVE_API_KEYNoAPI key used for cloud mode via api.ui.com's Site Manager connector.
UNIFI_DRIVE_PASSWORDNoThe password for the UNAS-local admin user.
UNIFI_DRIVE_USERNAMENoA UNAS-local admin username (created on the UNAS under UniFi OS → Admins & Users).
UNIFI_DRIVE_CONSOLE_IDNoConsole ID used together with UNIFI_DRIVE_API_KEY for cloud mode.
UNIFI_DRIVE_FINGERPRINTNoTLS certificate fingerprint printed at startup; set it to state trust explicitly instead of learning on first contact.
UNIFI_DRIVE_ALLOW_WRITESNoSet 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

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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 days. Start here for 'is my NAS OK?' — it reads about ten endpoints in parallel so you do not have to, and each finding says what it means rather than echoing a status code.

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 progressPercent is set), capacity, used and free space with a breakdown by personal / shared drives / system, SSD cache hit rates, and scrubbing. Per disk: model, size, state, health score, temperature, power-on time, bad and uncorrectable sectors, SSD life remaining. Includes findings for anything that needs attention.

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 points is set.

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 include_access to see who connected from where. For a verdict rather than a log, use unifi_drive_health_check. Page with cursor.

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: v1/... answers wrapped in {err, type, data}, v2/... answers bare. This exists because the API is undocumented and Ubiquiti moves endpoints between Drive releases — when a wrapped tool starts returning 404, this reaches the replacement without waiting for a new version of this server. Responses are RAW and unshaped (v2/systems/log-definitions alone is 79 KB); prefer the wrapped tools, which summarize. Writes are DISABLED: only GET is permitted. Set UNIFI_DRIVE_ALLOW_WRITES=1 to allow mutations.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4/5.0

Scored across 12 tools

Disambiguation4/5

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.

Naming Consistency4/5

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.

Tool Count5/5

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.

Completeness3/5

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.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues