UniFi Network MCP
by Graf3x
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PGID | No | The group the containers run as. | 1000 |
| PUID | No | The user the containers run as. | 1000 |
| UNIFI_URL | No | The console's address as the server reaches it. https only. | https://192.168.1.1 |
| MCP_LISTEN | No | The tailnet listener. A TCP address is refused unless it is loopback and MCP_ALLOW_LOOPBACK_TCP=true. | unix:/run/unifi-mcp/mcp.sock |
| MCP_SIGNIN | No | code or google; .env.example sets code. | |
| UNIFI_SITE | No | The site tools use when they don't name one. | default |
| MCP_DATA_DIR | No | Where the connector keeps its sign-in store and keys. | /data |
| TUNNEL_TOKEN | No | Read by the cloudflared container, not the server. | |
| UNIFI_API_KEY | No | Network API key from UniFi Network. | |
| MCP_LAN_LISTEN | No | The 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_PAGE | No | off 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_ID | No | Google OAuth web client ID, for google sign-in. | |
| MCP_ACCESS_TOKEN | No | Optional fixed token for clients that send a header; at least 32 characters. | |
| MCP_SETUP_LISTEN | No | The setup page's own listener: an IP address (or localhost) and a port. | http://127.0.0.1:5198 |
| UNIFI_CERT_TRUST | No | ca checks a CA-issued certificate instead of a pin. | pin |
| MCP_PUBLIC_LISTEN | No | The 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_SHA256 | No | Pinned fingerprints of the console's public key or certificate, comma separated. | |
| UNIFI_WRITE_TOOLS | No | With writes on, only these write tools, by exact name, comma or space separated. | |
| MCP_ALLOWED_LOGINS | No | Logins allowed on the tailnet socket, or in guide 1. | |
| UNIFI_ALLOW_WRITES | No | Exactly true lists the write tools. | false |
| UNIFI_API_KEY_FILE | No | Read when UNIFI_API_KEY is empty. | /config/unifi-api-key |
| UNIFI_MCP_DATA_KEY | No | Wraps the connector's signing keys in ./data. Generate once and keep it. | |
| MCP_PUBLIC_BASE_URL | No | The connector's public origin, e.g. https://unifi.example.com. | |
| GOOGLE_CLIENT_SECRET | No | Google OAuth web client secret, for google sign-in. | |
| MCP_LAN_ACCESS_TOKEN | No | The only token the LAN listener accepts; at least 32 characters, not the same as MCP_ACCESS_TOKEN. | |
| UNIFI_REVEAL_SECRETS | No | voucher-codes shows hotspot voucher codes in answers. | |
| MCP_ALLOW_LOOPBACK_TCP | No | Allows a loopback MCP_LISTEN, as in guide 1. | false |
| UNIFI_CERT_SHA256_FILE | No | Read when UNIFI_CERT_SHA256 is empty; re-read on each new connection. | /config/cert-sha256 |
| MCP_ALLOWED_LOGINS_FILE | No | Read when MCP_ALLOWED_LOGINS is empty. | /config/allowed-logins |
| MCP_ALLOWED_GOOGLE_EMAILS | No | Google addresses allowed to sign in, comma separated. | |
| UNIFI_ALLOW_CONFIRM_FALLBACK | No | Exactly true lets a client that cannot show the confirmation form write with confirm. | false |
| MCP_ALLOWED_GOOGLE_EMAILS_FILE | No | Read when MCP_ALLOWED_GOOGLE_EMAILS is empty. | /config/allowed-google-emails |
| Logging__LogLevel__UnifiMcp.Audit | No | Set 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
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessLimited data