Enables interaction with Ubiquiti UniFi network infrastructure for monitoring and management, including listing and restarting network devices (APs, switches, gateways), managing connected clients (blocking, unblocking, disconnecting), retrieving site health status, network configurations, and device activity data.
UniFi MCP Server
An MCP (Model Context Protocol) server for Ubiquiti UniFi network devices. This allows AI assistants to interact with UniFi network infrastructure for monitoring, device management, and configuration tasks.
Installation
Option 1: Docker (Recommended)
Option 2: Local Installation
Configuration
Environment Variables
Configure the following environment variables before running the server:
Variable | Description | Default | Required |
| UniFi Controller URL (e.g.,
) | - | Yes |
| UniFi Controller username | - | Yes |
| UniFi Controller password | - | Yes |
| UniFi site name |
| No |
| Verify SSL certificates (
/
) |
| No |
| Using UniFi OS device like UDM/UDM Pro (
/
) |
| No |
Example Configuration
Usage
Running the Server
With Docker:
Without Docker:
Claude Desktop Configuration
Add to your Claude Desktop config file (~/.config/claude/claude_desktop_config.json on Linux or ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
Local installation:
With Docker:
Available Tools
Tool | Description |
| List all network devices (APs, switches, gateways) |
| Restart a device by MAC address |
| List connected clients |
| Block a client from the network |
| Unblock a previously blocked client |
| Force disconnect a client |
| List all configured sites |
| Get health status for the current site |
| List network configurations |
| Get activity for a specific device (connected clients, traffic) |
Development
License
MIT