unifi-access-setup
Configure the UniFi Access MCP server for a supported MCP client — set controller host, credentials, API key, and permissions.…
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.
$ npx -y skills add sirkirby/unifi-mcp --skill security-digest --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/security-digestContext preview
The summary Claude sees to decide when to auto-load this skill.
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.
name: security-digest description: 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.
Requires: protect Optional: network, access
Verify required tools through MCP discovery before collecting data; discovery alone does not prove controller connectivity or authorization. If a required server/tool is missing or a required read fails, stop and report it unavailable. Optional sources may be skipped only when the report visibly names the missing source and resulting coverage limits. Use the product setup skill for connection help; never request secrets.
Every report must include a **Coverage and Limitations** section: name each requested source and its status (available, unavailable, partial, or capped), requested time window/timezone or current-state collection time, actual filters, returned counts, limits, pagination, and any failed calls or unknown fields. Counts describe retrieved records, not totals unless completeness is established. A successful empty query is an observation; a failed or missing source is unavailable, never an empty result. If a limit is reached, label the source capped unless further bounded reads establish coverage. If completeness cannot be established, label it partial. Do not claim complete coverage, all-clear, or overall health from unavailable, partial, or capped data; say “No concerning activity found in the retrieved records” when appropriate.
Separate **Observations** (cite source/tool, record ID and timestamp when available), **Hypotheses** (correlations and alternative explanations), and **Identity** (only explicit source-backed credential/account attribution, with its limits). Timing, similar names, proximity, or absence of a matching event alone proves neither identity nor cause. A credential event identifies the recorded account, not who physically used it. Missing mappings or clock uncertainty limit correlations.
Before generating a digest, verify the primary server is reachable:
For full cross-product correlation (CORR-01 through CORR-05), the unifi-network and unifi-access plugins must also be configured. Check availability by calling `unifi_tool_index` and `access_tool_index`. Mark rules that span missing servers unevaluated and name the missing evidence in the single-source report.
Choose an explicit interval and timezone before collecting. At most three batches (one per available product) plus one bounded follow-up batch per product; stop at six calls or 60 seconds, whichever comes first. Record budget exhaustion as partial. Do not keep increasing caps to obtain an all-clear. The default smart-detection confidence filter excludes low-score records; record that filter as a coverage limit.
Default ranges if the user does not specify:
Use each server's batch tool to gather events in parallel within that server. Do not call these tools one at a time.
**From Protect** (required):
Use `protect_list_smart_detections` as the primary source — these are the highest-signal events (person, vehicle, package, animal). Only add `protect_list_events` with `event_type=motion` if you need raw motion data beyond smart detections. Skip `protect_recent_events` for digests — it only contains the last few minutes of buffered events and adds little value for historical ranges.
protect_batch(operations=[
{ "tool": "protect_list_smart_detections", "arguments": { "start": "...", "end": "...", "limit": 50, "compact": true } },
{ "tool": "protect_list_events", "arguments": { "start": "...", "event_type": "ring", "limit": 20, "compact": true } }
])Use `compact=true` on all event queries for digests — it strips thumbnail_id, category, sub_category, and is_favorite fields, reducing response size by ~40%.
Canonical event rows use `camera`; names may be absent. Use `protect_list_cameras` when name resolution is needed and retain the source camera ID.
**From Access** (if available):
access_batch(operations=[
{ "tool": "access_list_events", "arguments": { "start": "...", "end": "...", "topic": "unlocks", "limit": 100 } },
{ "tool": "access_list_events", "arguments": { "start": "...", "end": "...", "topic": "access_denial", "limit": 100 } },
{ "tool": "access_get_activity_summary", "arguments": { "days": 1 } }
])**From Network** (if available):
unifi_batch(operations=[
{ "tool": "unifi_list_alarms" },
{ "tool": "unifi_list_events", "arguments": { "within_hours": 12, "start": 0, "limit": 100 } }
])The three batch calls (Protect, Access, Network) can be issued concurrently — they target independent servers.
Use these reference documents to classify and correlate the gathered events:
Leverage agents and agentic AI workflows to manage your UniFi deployment.
Configure the UniFi Access MCP server for a supported MCP client — set controller host, credentials, API key, and permissions.…
Generate a sanitized UniFi Access support bundle, help the user review it locally, and prepare it for a bug report without…
How to manage UniFi Access door control — locks, credentials, visitors, access policies, and events. Use this skill when the user…
Investigate one UniFi Network device incident (a switch, AP or gateway going offline, disconnecting or misbehaving) over an…
Review retrieved activity at one area in a given time window from the cloud worker's merged Network and Protect timeline, with…
Audit visitor activity by reading Access door events and setting them beside Network evidence from the cloud worker's timeline…