You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An MCP server that gives AI agents structured access to Ubiquiti UniFi network controllers. Built for the Model Context Protocol with security visibility and token efficiency as first-class design goals.
Why this exists
UniFi controllers expose a rich but undocumented REST API behind cookie-based auth with CSRF tokens and optional 2FA. The aiounifi library (MIT, powers the Home Assistant integration) handles the protocol complexity — UniFi OS vs classic controller detection, TOTP 2FA, websocket events. This MCP wraps it with the guardrails that automated agents need:
Security-first tool set — 18 tools focused on what network security agents actually need: device health, client visibility, firewall state, traffic rules, DPI restrictions, port forwards. Not 161 tools for every possible configuration change.
Token-efficient output — compact pipe-delimited format. A 30-device network in ~50 tokens per device. Client listings with signal strength, experience score, and blocked status at a glance.
Multi-controller — manage home and office networks from a single MCP instance. Each controller authenticates independently with separate sessions.
How this differs from other UniFi MCPs
ubiquiti-unifi-blade-mcp
sirkirby/unifi-mcp
enuno/unifi-mcp-server
Focus
Monitoring + security (18 tools)
Full management (161 tools)
Full management (74 tools)
Design for
LLM agents (token-efficient)
Claude Code (lazy loading)
General MCP clients
Multi-controller
Native (env var config)
Single controller
Multi-mode (local/cloud)
Write safety
Dual-gated (env + confirm)
Preview-then-confirm
Permission model
2FA support
TOTP via aiounifi
TOTP support
API key option
Output
Pipe-delimited, compact
Full JSON
Full JSON
Marketplace
Sidereal certified
Claude Code plugin
Standalone
Use this blade-MCP for agent-driven monitoring and security. Use sirkirby/unifi-mcp (available as a community listing in the Sidereal marketplace) when you need full network configuration management.
Quick start
# Install
uv pip install -e .# Configureexport UNIFI_HOST="192.168.1.1"export UNIFI_USERNAME="admin"export UNIFI_PASSWORD="your-password"export UNIFI_VERIFY_SSL="false"# Common for self-signed certs# Run
ubiquiti-unifi-blade-mcp
18 tools, 5 categories
Info & Sites (2 tools)
Tool
Purpose
Token cost
unifi_info
Health check — controller version, hostname, device/client counts, write gate
~60
unifi_sites
List sites on the controller
~20/site
Devices (2 tools)
Tool
Purpose
Token cost
unifi_devices
List APs, switches, gateways — model, state, clients, uptime, firmware
~50/device
unifi_device
Full detail — port table with PoE, firmware, upgrade status
make install-dev # Install with dev + test dependencies
make test# Unit tests (mocked, no controller needed)
make check # Lint + format + type-check
make run # Start MCP server (stdio)