UniFi MCP is a set of MCP servers and a Graph API that let AI agents and other software manage UniFi Network, Protect, and Access systems; an MCP server exposes tools that a compatible client can call. It is for UniFi administrators building assistants, automations, custom applications, or remote integrations. The catalogue plugins package these servers with agent skills and setup guidance, while the listed skills support workflows across the UniFi products.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add sirkirby/unifi-mcp --skill unifi-drive-setupgit clone --depth 1 https://github.com/sirkirby/unifi-mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/sirkirby/unifi-mcp/unifi-drive-setup)<a href="https://agentmods.dev/skills/sirkirby/unifi-mcp/unifi-drive-setup"><img src="https://agentmods.dev/badge/skills/sirkirby/unifi-mcp/unifi-drive-setup/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/sirkirby/unifi-mcp/unifi-drive-setup"><img src="https://agentmods.dev/badge/skills/sirkirby/unifi-mcp/unifi-drive-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00064 | $0.01576 |
| Opus 5.5 | $0.00026 | $0.00630 |
| Sonnet 5.5 | $0.00013 | $0.00315 |
| Haiku 4.5 | $0.00006 | $0.00158 |
Grade A, and why
unifi-drive-setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Set up UniFi Drive
Ask one question at a time and wait for the answer. Never ask for a password in chat, and never put one in a command argument, tool call or output.
-
Choose the client. Use Claude Code, Codex or OpenClaw. Other clients use the repository's native/manual server installation instructions; do not invent plugin configuration for them. Real-client acceptance of this bundle is not yet measured. Locate this installed plugin's root from the skill path.
-
Check prerequisites. Run
bash <plugin-root>/scripts/check-prereqs.sh --target <client>or& <plugin-root>/scripts/check-prereqs.ps1 -Target <client>on Windows. Installuv/uvxand the chosen client CLI when missing. The server needs Python 3.13 or newer (uv can supply it); setup needs Python 3.11 or newer and falls back to uv. Stop on a non-zero exit and report it. -
Point at the NAS. Ask for the IP address or hostname of the UniFi NAS itself (
UNIFI_DRIVE_HOST), not the gateway: the NAS is a separate UniFi OS console. Ask for a local UniFi OS username on the NAS (UNIFI_DRIVE_USERNAME); a UI.com account with MFA cannot log in. A dedicated local account is best. Drive never uses the sharedUNIFI_HOST,UNIFI_USERNAME,UNIFI_PASSWORD,UNIFI_PORTorUNIFI_SSL_FINGERPRINTand has no API key; setup refuses them. Never copy another plugin's credentials here. -
Save one password source. Accept only
UNIFI_DRIVE_PASSWORD,UNIFI_DRIVE_PASSWORD_FILEorUNIFI_DRIVE_PASSWORD_COMMAND; two nonempty forms are refused. Provider files must be nonempty readable absolute paths; command providers name an available executable and argv, run without a shell by the server and never prompting. Setup checks references without running a command provider or reading the file. Prefer a provider. In Claude Code the plugin's options dialog (/plugin, thenunifi-drive, then Configure options) also offers a masked password field stored in the system keychain. A raw password otherwise travels only as a JSON patch on stdin (--input-json/-InputJson) from a local masked prompt or secret manager. Switching away from a keychain-held password may need a newer Claude Code or a reinstall; follow the helper's value-free guidance rather than saving two forms. -
Optional settings. Defaults: port
443, SSL verification off, lazy tool loading. To customize, setUNIFI_DRIVE_PORT,UNIFI_DRIVE_VERIFY_SSLorUNIFI_TOOL_REGISTRATION_MODE. A certificate pin checks the NAS even on its factory self-signed certificate. Get it with the host and port, show it to the user to confirm, and save it asUNIFI_DRIVE_SSL_FINGERPRINT:openssl s_client -connect <host>:<port> </dev/null 2>/dev/null \ | openssl x509 -noout -fingerprint -sha256A pin overrides SSL verification and fails once the NAS certificate changes, until it is updated.
-
Write permissions. Every write stays off unless the user opts in, and keep
UNIFI_DRIVE_TOOL_PERMISSION_MODE=confirmso each one is previewed. Turning SMB, NFS or Time Machine on or off and changing an NFS client are updates; adding a client is a create; removing one is a delete. Tell the user that turning SMB off also stops Time Machine. Claude Code's options hold only the server-level gatesUNIFI_POLICY_DRIVE_CREATE,UNIFI_POLICY_DRIVE_UPDATEandUNIFI_POLICY_DRIVE_DELETE. Codex and OpenClaw also take category gates that override them:UNIFI_POLICY_DRIVE_FILE_SERVICES_UPDATEandUNIFI_POLICY_DRIVE_NFS_CONNECTIONS_<CREATE|UPDATE|DELETE>. For read-only setup, set all three server-level gates tofalse. -
Write the configuration. Pass only values the user gave or chose:
bash <plugin-root>/scripts/set-env.sh --target <claude|codex|openclaw> \ UNIFI_DRIVE_HOST=<nas-host> \ UNIFI_DRIVE_USERNAME=<local-user> \ 'UNIFI_DRIVE_PASSWORD_FILE=<absolute-path>' \ UNIFI_DRIVE_TOOL_PERMISSION_MODE=confirm \ UNIFI_POLICY_DRIVE_CREATE=false \ UNIFI_POLICY_DRIVE_UPDATE=false \ UNIFI_POLICY_DRIVE_DELETE=false
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 103 lines · 64 tokens per session scan A cb59837e7389
unifi-drive-setup is a skill published in the GitHub repository sirkirby/unifi-mcp (1,150 stars, last pushed today), licensed MIT. It adds 64 tokens to every session and 1,576 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-26.
unifi-drive-setup compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| unifi-drive-setupsirkirby/unifi-mcp | Skill | 1.1k | today | MIT | A | 64 | Claude Code |
| streamdeck-designerverygoodplugins/streamdeck-mcp | Skill | 55 | 6d ago | MIT | A | 167 | Claude Code, Codex |
| streamdeck-profileverygoodplugins/streamdeck-mcp | Skill | 55 | 6d ago | MIT | A | 0 | Claude Code, Codex |
| unifi-udm-pro-mcprodolfoconcepcion/unifi-udm-pro-mcp | Skill | 5 | 14d ago | MIT | A | 35 | Claude Code, Codex |
| unifi-networkgordcurrie/unifi-mcp | Skill | 2 | 1mo ago | MIT | A | 111 | Claude Code, Codex |
| audit-erc-drc-and-safetyw1ne/labwired-core | Skill | 210 | today | MIT | A | 49 | Claude Code |
| export-kicad-and-bomw1ne/labwired-core | Skill | 210 | today | MIT | A | 51 | Claude Code |