UniFi
io.github.mattoddie/unifi-mcp
v0.9.1Updated Nov 17, 2026stdio · MCPBstdio · Docker
Manage a Ubiquiti UniFi network: devices, clients, WiFi, firewall and VPN. Read-only by default.
Install
Replace 1 placeholder with your own values.
Run in your terminal. Replace 1 placeholder.
claude mcp add unifi-mcp -e 'UNIFI_URL=<your-unifi-url>' -e UNIFI_SITE=default -e UNIFI_ALLOW_WRITES=false -e UNIFI_ALLOW_DELETES=false -e UNIFI_ALLOW_SECRETS=false -- docker run -i --rm -e UNIFI_URL -e UNIFI_SITE -e UNIFI_ALLOW_WRITES -e UNIFI_ALLOW_DELETES -e UNIFI_ALLOW_SECRETS ghcr.io/mattoddie/unifi-mcp:0.9.1Configuration
14 settings.
UNIFI_URLEnv var· requiredAddress of your UniFi console. For a legacy self-hosted Network application, include the port.UNIFI_API_KEYEnv var· optional· secretAPI key from UniFi Network → Settings → Control Plane → Integrations. Or use a username and password.UNIFI_PASSWORDEnv var· optional· secretThe local account's password, used with the username.MCP_TRANSPORTEnv var· optionalThe image serves HTTP by default; this runs it over stdio.UNIFI_USERNAMEEnv var· optionalA local (not Ubiquiti cloud) account, used instead of an API key. Required for legacy controllers.UNIFI_TLS_FINGERPRINTEnv var· optionalRecommended for an https controller with a self-signed certificate: its SHA-256 fingerprint, to pin it.
Show 8 moreShow fewer
UNIFI_VERIFY_SSLEnv var· optionalLeave empty when you set a fingerprint. true: publicly trusted certificate. false: skip the check (insecure).UNIFI_SITEEnv var· optionalThe site's short name, used when a request doesn't name a site.Default:defaultUNIFI_ALLOW_WRITESEnv var· optionalAllow changes: restart devices, block clients, edit WiFi, firewall and networks. Off means read-only.Default:falseUNIFI_ALLOW_DELETESEnv var· optionalAlso allow deleting configuration and forgetting clients. Needs UNIFI_ALLOW_WRITES.Default:falseUNIFI_ALLOW_SECRETSEnv var· optionalAllow unredacted passwords and keys (include_secrets) and the WiFi QR tool. Off keeps all output redacted.Default:falseUNIFI_TOOLSETSEnv var· optionalOptional comma-separated list to expose fewer tools, e.g. overview,devices,clients. Empty means all except raw, which has to be listed by name.UNIFI_RAW_ALLOWED_PATHSEnv var· optionalOptional 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.UNIFI_AUDIT_LOGEnv var· optionalSet to stderr to log every change the assistant makes or previews as JSON lines. Off when empty.
Links
Listed in the official MCP Registry since Nov 17, 2026. Mirrored daily; last checked Nov 26, 2026.