Agent skill
unifi-access
How to manage UniFi Access door control — locks, credentials, visitors, access policies, and events. Use this skill when the user mentions UniFi Access, door locks, door access, building access, NFC cards, PIN codes, visitor passes, access policies, access schedules, door readers, or any UniFi Access task.
Install this agent skill to your Project
npx add-skill https://github.com/sirkirby/unifi-mcp/tree/main/plugins/unifi-access/skills/unifi-access
SKILL.md
UniFi Access MCP Server
You have access to a UniFi Access MCP server that lets you query and manage a UniFi Access controller. It provides 29 tools covering doors, locks, credentials, visitors, access policies, and events.
Tool Discovery
The server uses lazy loading by default — only meta-tools are registered initially:
| Meta-Tool | Purpose |
|---|---|
access_tool_index |
List all 29 tools with full parameter schemas |
access_execute |
Call any tool by name (essential in lazy mode) |
access_batch |
Run multiple tools in parallel |
access_batch_status |
Check async batch job status |
Workflow: Call access_tool_index to find the right tool, then access_execute to call it. Use access_batch for multiple independent queries.
Safety Model
All mutations are disabled by default because Access controls physical door locks and building entry.
Read operations — always available. Listing doors, events, users, credentials — all work without permissions.
Mutations require explicit opt-in via env vars:
UNIFI_POLICY_ACCESS_DOORS_UPDATE=true— lock/unlock doorsUNIFI_POLICY_ACCESS_CREDENTIALS_CREATE=true— create NFC/PIN/mobile credentialsUNIFI_POLICY_ACCESS_CREDENTIALS_DELETE=true— revoke credentialsUNIFI_POLICY_ACCESS_VISITORS_CREATE=true— create visitor passesUNIFI_POLICY_ACCESS_VISITORS_DELETE=true— delete visitor passesUNIFI_POLICY_ACCESS_POLICIES_UPDATE=true— update access policiesUNIFI_POLICY_ACCESS_DEVICES_UPDATE=true— reboot devices
Confirmation flow — every mutation uses preview-then-confirm:
- Default call → returns preview of what would change
- Call with
confirm=true→ executes the mutation
Door lock/unlock operations are physical real-world actions — always preview first.
Response Format
All tools return: {"success": true, "data": ...}, {"success": false, "error": "..."}, or {"success": true, "requires_confirmation": true, "preview": ...}. Always check success first.
Key Capabilities
- Door control:
access_lock_door/access_unlock_door— unlock relocks automatically after duration (default 2 seconds) - Real-time events:
access_recent_eventsreads from websocket buffer instantly. Event types:door_open,door_close,access_granted,access_denied,door_alarm - Historical events:
access_list_eventswith time/door/user filters. Topics:adminoradmin_activity - Activity summary:
access_get_activity_summaryaggregates events over a time period — useful for security audits - Credentials: Create NFC (
{user_id, token}), PIN ({user_id, pin_code}), or mobile ({user_id}) credentials - Visitor passes: Time-bounded with ISO 8601 start/end times, optional email/phone for notifications
Dual Authentication
Access has two independent auth paths:
- API key (port 12445) — for read-only operations (listing doors, events, devices)
- Username + password (port 443) — required for mutations (lock/unlock, credentials, visitors)
Either can work independently. For full functionality, configure both. If mutations fail with auth errors, the user needs username+password (API key alone is not enough for write operations).
To configure, run /unifi-access:setup or set env vars manually:
UNIFI_ACCESS_HOST=192.168.1.1
UNIFI_ACCESS_API_KEY=your-api-key
UNIFI_ACCESS_USERNAME=admin
UNIFI_ACCESS_PASSWORD=your-password
Other UniFi Servers
If the user also has networking or cameras, other UniFi MCP plugins are available:
unifi-network— network devices, clients, firewall, VPN, routingunifi-protect— security cameras, NVR, recordings, smart detections
Access readers are network clients — if a reader appears offline, the Network server can help check connectivity via unifi_lookup_by_ip.
Tool Reference
For the complete list of all 29 tools organized by category with descriptions, tips, and common scenarios, read references/access-tools.md.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
myco:implement-update-tool-fetch-merge-put
Use this skill whenever you are implementing or fixing an update_* tool in unifi-mcp. It covers the mandatory fetch-merge-put pattern, deep_merge semantics, V2 API response gotchas, the confirm double-fetch design, LLM UX requirements for dict params, and when flat params are appropriate instead. Applies even if the user only says "add an update tool for X" without specifying the implementation approach — the pattern is required for all update tools in this project.
myco:community-pr-review
Use this skill when reviewing or merging any community PR in unifi-mcp — even if the user just says "take a look at this PR" or "can we merge this." Covers the complete quality gate checklist (f-string logger ban, validator registry registration, doc site update ordering), the fork-edit model for trusted contributors, org-fork push limitations, the dual-subagent review pattern, and PR body standards. Apply this skill before approving any externally-authored PR, before running the merge command, and when auditing recently merged PRs for compliance.
setup
Configure the UniFi Access MCP server — set controller host, credentials, and permissions
unifi-protect
How to manage UniFi Protect cameras and NVR — view cameras, smart detections, recordings, snapshots, lights, sensors, and the Alarm Manager. Use this skill when the user mentions UniFi cameras, security cameras, NVR, recordings, motion detection, person detection, snapshots, RTSP streams, floodlights, sensors, chimes, arming/disarming the alarm, or any UniFi Protect task.
security-digest
Generate a security digest summarizing events across UniFi Protect cameras, Access door events, and Network firewall activity. Use when asked about what happened overnight, security summary, event digest, recent activity, or reviewing camera and access events.
setup
Configure the UniFi Protect MCP server — set NVR host, credentials, and permissions
Didn't find tool you were looking for?