npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

unifi-protect-mcp

v5.2.0

Published

MCP server for UniFi Protect cameras - snapshots, PTZ, events, sensors, lights, chimes

Readme

UniFi Protect MCP Server

High-performance Model Context Protocol server for UniFi Protect cameras. Control your cameras, get snapshots, manage events, PTZ, lights, sensors, and chimes through Claude or any MCP client.

Features

  • 📷 19 Tools - Full camera control, snapshots, PTZ, events, sensors, lights, chimes
  • Smart Caching - LRU cache prevents API hammering
  • 🔄 Circuit Breakers - Auto-disable failing methods, auto-recovery
  • 📸 Bulk Snapshots - Parallel capture for multiple cameras
  • 🏠 Multi-Location - Deploy to multiple sites

Installation

npm install -g unifi-protect-mcp

Or clone directly:

git clone https://github.com/jadengarza/unifi-protect-mcp.git
cd unifi-protect-mcp
node server-v5.2.js

Configuration

Create deploy/config.json:

{
  "version": "5.2.0",
  "location": "home",
  "unvr_host": "192.168.1.1",
  "server_port": 3849,
  "api_key": "your-mcp-api-key",
  "admin_key": "your-admin-key"
}

Or use environment variables:

  • UNIFI_MCP_KEY - API key for MCP authentication
  • UNIFI_ADMIN_KEY - Admin key for remote management

Tools

| Tool | Description | |------|-------------| | get_system_info | Get UniFi Protect system information | | health_check | Check connection health | | list_cameras | List all cameras with status | | get_camera | Get detailed camera info | | get_snapshot | Get camera snapshot (base64) | | get_bulk_snapshots | Get multiple snapshots in parallel | | get_events | Get motion/detection events | | set_camera_led | Turn camera LED on/off | | set_camera_mic | Enable/disable camera microphone | | set_lcd_message | Set doorbell LCD message | | ptz_move | PTZ camera control (pan/tilt/zoom) | | ptz_goto_preset | Move PTZ to preset position | | list_sensors | List door/window/motion sensors | | list_lights | List smart lights | | set_light | Control smart light | | list_chimes | List doorbell chimes | | play_chime | Play chime sound | | list_viewers | List Viewport devices | | list_liveviews | List configured liveviews |

Endpoints

| Endpoint | Auth | Description | |----------|------|-------------| | /health | None | Health check, version, uptime | | /mcp | API Key | MCP protocol (JSON-RPC) | | /direct | API Key | Direct tool calls | | /admin/* | Admin Key | Remote management |

Usage with Claude

Claude Desktop

Add to ~/.config/claude/claude_desktop_config.json:

{
  "mcpServers": {
    "unifi-protect": {
      "command": "npx",
      "args": ["unifi-protect-mcp"]
    }
  }
}

Remote via Cloudflare Tunnel

cloudflared tunnel --url http://localhost:3849

Then add the tunnel URL as a remote MCP in Claude.ai settings.

Requirements

  • Node.js 18+
  • UniFi Protect NVR (Cloud Key Gen2+, UNVR, UDM Pro)
  • Local network access to NVR

License

MIT

Author

Jaden Garza