unifi-mcp
An open-source Model Context Protocol server that connects AI assistants to Ubiquiti UniFi controllers. It provides 148 tools across 14 toolsets to manage devices, clients, WiFi, firewall, VPN, and hotspot settings. The server supports read-only access by default, with optional write and delete capabilities, and runs in a Docker container.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Ask about devices, clients, WiFi and firewall in plain English
- Create one-day guest vouchers limited to specific bandwidth
- Block a client device until explicitly allowed otherwise
- Review port forwards and firewall for risky configurations
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
ghcr.io/mattoddie/unifi-mcp:0.9.1
{
"transport": "stdio",
"identifier": "ghcr.io/mattoddie/unifi-mcp:0.9.1",
"registryType": "oci",
"environmentVariables": [
{
"name": "MCP_TRANSPORT",
"value": "stdio",
"description": "The image serves HTTP by default; this runs it over stdio."
},
{
"name": "UNIFI_URL",
"isRequired": true,
"description": "Address of your UniFi console. For a legacy self-hosted Network application, include the port.",
"placeholder": "https://192.168.1.1"
},
{
"name": "UNIFI_API_KEY",
"description": "API key from UniFi Network → Settings → Control Plane → Integrations. Or use a username and password."
},
{
"name": "UNIFI_USERNAME",
"description": "A local (not Ubiquiti cloud) account, used instead of an API key. Required for legacy controllers."
},
{
"name": "UNIFI_PASSWORD",
"description": "The local account's password, used with the username."
},
{
"name": "UNIFI_TLS_FINGERPRINT",
"description": "Recommended for an https controller with a self-signed certificate: its SHA-256 fingerprint, to pin it.",
"placeholder": "AA:BB:CC:…"
},
{
"name": "UNIFI_VERIFY_SSL",
"format": "boolean",
"description": "Leave empty when you set a fingerprint. true: publicly trusted certificate. false: skip the check (insecure)."
},
{
"name": "UNIFI_SITE",
"default": "default",
"description": "The site's short name, used when a request doesn't name a site."
},
{
"name": "UNIFI_ALLOW_WRITES",
"format": "boolean",
"default": "false",
"description": "Allow changes: restart devices, block clients, edit WiFi, firewall and networks. Off means read-only."
},
{
"name": "UNIFI_ALLOW_DELETES",
"format": "boolean",
"default": "false",
"description": "Also allow deleting configuration and forgetting clients. Needs UNIFI_ALLOW_WRITES."
},
{
"name": "UNIFI_ALLOW_SECRETS",
"format": "boolean",
"default": "false",
"description": "Allow unredacted passwords and keys (include_secrets) and the WiFi QR tool. Off keeps all output redacted."
},
{
"name": "UNIFI_TOOLSETS",
"description": "Optional comma-separated list to expose fewer tools, e.g. overview,devices,clients. Empty means all except raw, which has to be listed by name."
},
{
"name": "UNIFI_RAW_ALLOWED_PATHS",
"description": "Optional comma-separated API path prefixes, e.g. /api/s/default/stat, that limit the raw API tool (toolset raw) to those paths. Empty allows any path."
},
{
"name": "UNIFI_AUDIT_LOG",
"description": "Set to stderr to log every change the assistant makes or previews as JSON lines. Off when empty."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"unifi-mcp-0-9-1": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"MCP_TRANSPORT=<YOUR_MCP_TRANSPORT>",
"-e",
"UNIFI_URL=<YOUR_UNIFI_URL>",
"-e",
"UNIFI_API_KEY=<YOUR_UNIFI_API_KEY>",
"-e",
"UNIFI_USERNAME=<YOUR_UNIFI_USERNAME>",
"-e",
"UNIFI_PASSWORD=<YOUR_UNIFI_PASSWORD>",
"-e",
"UNIFI_TLS_FINGERPRINT=<YOUR_UNIFI_TLS_FINGERPRINT>",
"-e",
"UNIFI_VERIFY_SSL=<YOUR_UNIFI_VERIFY_SSL>",
"-e",
"UNIFI_SITE=<YOUR_UNIFI_SITE>",
"-e",
"UNIFI_ALLOW_WRITES=<YOUR_UNIFI_ALLOW_WRITES>",
"-e",
"UNIFI_ALLOW_DELETES=<YOUR_UNIFI_ALLOW_DELETES>",
"-e",
"UNIFI_ALLOW_SECRETS=<YOUR_UNIFI_ALLOW_SECRETS>",
"-e",
"UNIFI_TOOLSETS=<YOUR_UNIFI_TOOLSETS>",
"-e",
"UNIFI_RAW_ALLOWED_PATHS=<YOUR_UNIFI_RAW_ALLOWED_PATHS>",
"-e",
"UNIFI_AUDIT_LOG=<YOUR_UNIFI_AUDIT_LOG>",
"ghcr.io/mattoddie/unifi-mcp:0.9.1"
],
"env": {
"MCP_TRANSPORT": "<YOUR_MCP_TRANSPORT>",
"UNIFI_URL": "<YOUR_UNIFI_URL>",
"UNIFI_API_KEY": "<YOUR_UNIFI_API_KEY>",
"UNIFI_USERNAME": "<YOUR_UNIFI_USERNAME>",
"UNIFI_PASSWORD": "<YOUR_UNIFI_PASSWORD>",
"UNIFI_TLS_FINGERPRINT": "<YOUR_UNIFI_TLS_FINGERPRINT>",
"UNIFI_VERIFY_SSL": "<YOUR_UNIFI_VERIFY_SSL>",
"UNIFI_SITE": "<YOUR_UNIFI_SITE>",
"UNIFI_ALLOW_WRITES": "<YOUR_UNIFI_ALLOW_WRITES>",
"UNIFI_ALLOW_DELETES": "<YOUR_UNIFI_ALLOW_DELETES>",
"UNIFI_ALLOW_SECRETS": "<YOUR_UNIFI_ALLOW_SECRETS>",
"UNIFI_TOOLSETS": "<YOUR_UNIFI_TOOLSETS>",
"UNIFI_RAW_ALLOWED_PATHS": "<YOUR_UNIFI_RAW_ALLOWED_PATHS>",
"UNIFI_AUDIT_LOG": "<YOUR_UNIFI_AUDIT_LOG>"
}
}
}
}Cline
{
"mcpServers": {
"unifi-mcp-0-9-1": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"MCP_TRANSPORT=<YOUR_MCP_TRANSPORT>",
"-e",
"UNIFI_URL=<YOUR_UNIFI_URL>",
"-e",
"UNIFI_API_KEY=<YOUR_UNIFI_API_KEY>",
"-e",
"UNIFI_USERNAME=<YOUR_UNIFI_USERNAME>",
"-e",
"UNIFI_PASSWORD=<YOUR_UNIFI_PASSWORD>",
"-e",
"UNIFI_TLS_FINGERPRINT=<YOUR_UNIFI_TLS_FINGERPRINT>",
"-e",
"UNIFI_VERIFY_SSL=<YOUR_UNIFI_VERIFY_SSL>",
"-e",
"UNIFI_SITE=<YOUR_UNIFI_SITE>",
"-e",
"UNIFI_ALLOW_WRITES=<YOUR_UNIFI_ALLOW_WRITES>",
"-e",
"UNIFI_ALLOW_DELETES=<YOUR_UNIFI_ALLOW_DELETES>",
"-e",
"UNIFI_ALLOW_SECRETS=<YOUR_UNIFI_ALLOW_SECRETS>",
"-e",
"UNIFI_TOOLSETS=<YOUR_UNIFI_TOOLSETS>",
"-e",
"UNIFI_RAW_ALLOWED_PATHS=<YOUR_UNIFI_RAW_ALLOWED_PATHS>",
"-e",
"UNIFI_AUDIT_LOG=<YOUR_UNIFI_AUDIT_LOG>",
"ghcr.io/mattoddie/unifi-mcp:0.9.1"
],
"env": {
"MCP_TRANSPORT": "<YOUR_MCP_TRANSPORT>",
"UNIFI_URL": "<YOUR_UNIFI_URL>",
"UNIFI_API_KEY": "<YOUR_UNIFI_API_KEY>",
"UNIFI_USERNAME": "<YOUR_UNIFI_USERNAME>",
"UNIFI_PASSWORD": "<YOUR_UNIFI_PASSWORD>",
"UNIFI_TLS_FINGERPRINT": "<YOUR_UNIFI_TLS_FINGERPRINT>",
"UNIFI_VERIFY_SSL": "<YOUR_UNIFI_VERIFY_SSL>",
"UNIFI_SITE": "<YOUR_UNIFI_SITE>",
"UNIFI_ALLOW_WRITES": "<YOUR_UNIFI_ALLOW_WRITES>",
"UNIFI_ALLOW_DELETES": "<YOUR_UNIFI_ALLOW_DELETES>",
"UNIFI_ALLOW_SECRETS": "<YOUR_UNIFI_ALLOW_SECRETS>",
"UNIFI_TOOLSETS": "<YOUR_UNIFI_TOOLSETS>",
"UNIFI_RAW_ALLOWED_PATHS": "<YOUR_UNIFI_RAW_ALLOWED_PATHS>",
"UNIFI_AUDIT_LOG": "<YOUR_UNIFI_AUDIT_LOG>"
}
}
}
}VS Code
{
"servers": {
"unifi-mcp-0-9-1": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"MCP_TRANSPORT=<YOUR_MCP_TRANSPORT>",
"-e",
"UNIFI_URL=<YOUR_UNIFI_URL>",
"-e",
"UNIFI_API_KEY=<YOUR_UNIFI_API_KEY>",
"-e",
"UNIFI_USERNAME=<YOUR_UNIFI_USERNAME>",
"-e",
"UNIFI_PASSWORD=<YOUR_UNIFI_PASSWORD>",
"-e",
"UNIFI_TLS_FINGERPRINT=<YOUR_UNIFI_TLS_FINGERPRINT>",
"-e",
"UNIFI_VERIFY_SSL=<YOUR_UNIFI_VERIFY_SSL>",
"-e",
"UNIFI_SITE=<YOUR_UNIFI_SITE>",
"-e",
"UNIFI_ALLOW_WRITES=<YOUR_UNIFI_ALLOW_WRITES>",
"-e",
"UNIFI_ALLOW_DELETES=<YOUR_UNIFI_ALLOW_DELETES>",
"-e",
"UNIFI_ALLOW_SECRETS=<YOUR_UNIFI_ALLOW_SECRETS>",
"-e",
"UNIFI_TOOLSETS=<YOUR_UNIFI_TOOLSETS>",
"-e",
"UNIFI_RAW_ALLOWED_PATHS=<YOUR_UNIFI_RAW_ALLOWED_PATHS>",
"-e",
"UNIFI_AUDIT_LOG=<YOUR_UNIFI_AUDIT_LOG>",
"ghcr.io/mattoddie/unifi-mcp:0.9.1"
],
"env": {
"MCP_TRANSPORT": "<YOUR_MCP_TRANSPORT>",
"UNIFI_URL": "<YOUR_UNIFI_URL>",
"UNIFI_API_KEY": "<YOUR_UNIFI_API_KEY>",
"UNIFI_USERNAME": "<YOUR_UNIFI_USERNAME>",
"UNIFI_PASSWORD": "<YOUR_UNIFI_PASSWORD>",
"UNIFI_TLS_FINGERPRINT": "<YOUR_UNIFI_TLS_FINGERPRINT>",
"UNIFI_VERIFY_SSL": "<YOUR_UNIFI_VERIFY_SSL>",
"UNIFI_SITE": "<YOUR_UNIFI_SITE>",
"UNIFI_ALLOW_WRITES": "<YOUR_UNIFI_ALLOW_WRITES>",
"UNIFI_ALLOW_DELETES": "<YOUR_UNIFI_ALLOW_DELETES>",
"UNIFI_ALLOW_SECRETS": "<YOUR_UNIFI_ALLOW_SECRETS>",
"UNIFI_TOOLSETS": "<YOUR_UNIFI_TOOLSETS>",
"UNIFI_RAW_ALLOWED_PATHS": "<YOUR_UNIFI_RAW_ALLOWED_PATHS>",
"UNIFI_AUDIT_LOG": "<YOUR_UNIFI_AUDIT_LOG>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"unifi-mcp-0-9-1": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"MCP_TRANSPORT=<YOUR_MCP_TRANSPORT>",
"-e",
"UNIFI_URL=<YOUR_UNIFI_URL>",
"-e",
"UNIFI_API_KEY=<YOUR_UNIFI_API_KEY>",
"-e",
"UNIFI_USERNAME=<YOUR_UNIFI_USERNAME>",
"-e",
"UNIFI_PASSWORD=<YOUR_UNIFI_PASSWORD>",
"-e",
"UNIFI_TLS_FINGERPRINT=<YOUR_UNIFI_TLS_FINGERPRINT>",
"-e",
"UNIFI_VERIFY_SSL=<YOUR_UNIFI_VERIFY_SSL>",
"-e",
"UNIFI_SITE=<YOUR_UNIFI_SITE>",
"-e",
"UNIFI_ALLOW_WRITES=<YOUR_UNIFI_ALLOW_WRITES>",
"-e",
"UNIFI_ALLOW_DELETES=<YOUR_UNIFI_ALLOW_DELETES>",
"-e",
"UNIFI_ALLOW_SECRETS=<YOUR_UNIFI_ALLOW_SECRETS>",
"-e",
"UNIFI_TOOLSETS=<YOUR_UNIFI_TOOLSETS>",
"-e",
"UNIFI_RAW_ALLOWED_PATHS=<YOUR_UNIFI_RAW_ALLOWED_PATHS>",
"-e",
"UNIFI_AUDIT_LOG=<YOUR_UNIFI_AUDIT_LOG>",
"ghcr.io/mattoddie/unifi-mcp:0.9.1"
],
"env": {
"MCP_TRANSPORT": "<YOUR_MCP_TRANSPORT>",
"UNIFI_URL": "<YOUR_UNIFI_URL>",
"UNIFI_API_KEY": "<YOUR_UNIFI_API_KEY>",
"UNIFI_USERNAME": "<YOUR_UNIFI_USERNAME>",
"UNIFI_PASSWORD": "<YOUR_UNIFI_PASSWORD>",
"UNIFI_TLS_FINGERPRINT": "<YOUR_UNIFI_TLS_FINGERPRINT>",
"UNIFI_VERIFY_SSL": "<YOUR_UNIFI_VERIFY_SSL>",
"UNIFI_SITE": "<YOUR_UNIFI_SITE>",
"UNIFI_ALLOW_WRITES": "<YOUR_UNIFI_ALLOW_WRITES>",
"UNIFI_ALLOW_DELETES": "<YOUR_UNIFI_ALLOW_DELETES>",
"UNIFI_ALLOW_SECRETS": "<YOUR_UNIFI_ALLOW_SECRETS>",
"UNIFI_TOOLSETS": "<YOUR_UNIFI_TOOLSETS>",
"UNIFI_RAW_ALLOWED_PATHS": "<YOUR_UNIFI_RAW_ALLOWED_PATHS>",
"UNIFI_AUDIT_LOG": "<YOUR_UNIFI_AUDIT_LOG>"
}
}
}
}Let your agent find its tools
Find servers like unifi-mcp from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.