Skip to main content
Glama
UniFi Network MCP

UniFi Network MCP

by Graf3x

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PGIDNoThe group the containers run as.1000
PUIDNoThe user the containers run as.1000
UNIFI_URLNoThe console's address as the server reaches it. https only.https://192.168.1.1
MCP_LISTENNoThe tailnet listener. A TCP address is refused unless it is loopback and MCP_ALLOW_LOOPBACK_TCP=true.unix:/run/unifi-mcp/mcp.sock
MCP_SIGNINNocode or google; .env.example sets code.google
UNIFI_SITENoThe site tools use when they don't name one.default
MCP_DATA_DIRNoWhere the connector keeps its sign-in store and keys./data
TUNNEL_TOKENNoRead by the cloudflared container, not the server.
UNIFI_API_KEYNoNetwork API key from UniFi Network.
MCP_LAN_LISTENNoThe token-only LAN listener: an IP address and a port, e.g. http://0.0.0.0:7420. Serves /mcp and /healthz over plain HTTP; needs MCP_LAN_ACCESS_TOKEN.
MCP_SETUP_PAGENooff turns the setup page off; on turns it on in guide 3. Default on, except with Google sign-in and a public URL.on
GOOGLE_CLIENT_IDNoGoogle OAuth web client ID, for google sign-in.
MCP_ACCESS_TOKENNoOptional fixed token for clients that send a header; at least 32 characters.
MCP_SETUP_LISTENNoThe setup page's own listener: an IP address (or localhost) and a port.http://127.0.0.1:5198
UNIFI_CERT_TRUSTNoca checks a CA-issued certificate instead of a pin.pin
MCP_PUBLIC_LISTENNoThe connector's listener. Keep it in a folder of its own: that folder is all the tunnel container mounts.unix:/run/unifi-mcp-public/public.sock
UNIFI_CERT_SHA256NoPinned fingerprints of the console's public key or certificate, comma separated.
UNIFI_WRITE_TOOLSNoWith writes on, only these write tools, by exact name, comma or space separated.
MCP_ALLOWED_LOGINSNoLogins allowed on the tailnet socket, or in guide 1.
UNIFI_ALLOW_WRITESNoExactly true lists the write tools.false
UNIFI_API_KEY_FILENoRead when UNIFI_API_KEY is empty./config/unifi-api-key
UNIFI_MCP_DATA_KEYNoWraps the connector's signing keys in ./data. Generate once and keep it.
MCP_PUBLIC_BASE_URLNoThe connector's public origin, e.g. https://unifi.example.com.
GOOGLE_CLIENT_SECRETNoGoogle OAuth web client secret, for google sign-in.
MCP_LAN_ACCESS_TOKENNoThe only token the LAN listener accepts; at least 32 characters, not the same as MCP_ACCESS_TOKEN.
UNIFI_REVEAL_SECRETSNovoucher-codes shows hotspot voucher codes in answers.
MCP_ALLOW_LOOPBACK_TCPNoAllows a loopback MCP_LISTEN, as in guide 1.false
UNIFI_CERT_SHA256_FILENoRead when UNIFI_CERT_SHA256 is empty; re-read on each new connection./config/cert-sha256
MCP_ALLOWED_LOGINS_FILENoRead when MCP_ALLOWED_LOGINS is empty./config/allowed-logins
MCP_ALLOWED_GOOGLE_EMAILSNoGoogle addresses allowed to sign in, comma separated.
UNIFI_ALLOW_CONFIRM_FALLBACKNoExactly true lets a client that cannot show the confirmation form write with confirm.false
MCP_ALLOWED_GOOGLE_EMAILS_FILENoRead when MCP_ALLOWED_GOOGLE_EMAILS is empty./config/allowed-google-emails
Logging__LogLevel__UnifiMcp.AuditNoSet to Debug in .env to log read tool calls in the audit log, not only writes.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources