Open Source ★ 337

UniFi MCP

MCP server for the UniFi ecosystem

UniFi MCP is an open-source Model Context Protocol server that exposes the full Ubiquiti UniFi stack — Network, Protect, and Access — as agent-callable tools. It lets any MCP-compliant agent (Claude, ChatGPT, Cursor, opencode, etc.) inspect firewall policies, audit camera events, control door access, and reason about a UniFi deployment in plain English.

What it covers

UniFi Network: clients, devices, firewall policies, port forwarding, VPN, WLANs, traffic routes, and statistics. UniFi Protect: cameras, motion events, smart detections, recordings. UniFi Access: doors, users, schedules, and entry events. All exposed as discrete MCP tools with typed parameters and pagination.

Why an MCP server, not an API client

An API client requires the agent to know the endpoint surface up front. An MCP server lets the agent discover the available tools, parameter schemas, and pagination semantics at runtime — which means a fresh agent session can productively reason about a UniFi network without any prompt engineering. It's the difference between handing someone a Postman collection and handing them a workshop full of labelled tools.

Stack

Python implementation, official UniFi SDKs, Docker for local deployment, Cloudflare Workers for hosted variants. Companion project: UniFi Network Rules — a Home Assistant integration for backing up and automating UDM firewall policies.

Stack
  • MCP
  • Python
  • UniFi API
  • Docker
  • Cloudflare Workers
Related project

UniFi Network Rules ★ 52

Backup and automate UDM firewall policies from Home Assistant.

Let's ship something

Ready to put agents to work?

Whether it's an AI integration, a platform rebuild, or a new secure network, we show up and ship.

[email protected]