Skip to main content
Glama
mgcrea
by mgcrea

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
UNIFI_HOSTYesThe console. A pasted browser URL is accepted and split.
UNIFI_MODENo`unifios` · `cloud` · `classic`.inferred
UNIFI_SITENoDefault site. UUID, legacy name or display name.
UNIFI_API_KEYYesSettings → Control Plane → Integrations → Create API Key.
UNIFI_CONF IGNoJSON alternative to all of the above.~/.config/unifi/config.json
UNIFI_PASSWORDNoLegacy tier only. A **local** admin, not SSO.
UNIFI_USERNAMENoLegacy tier only. A **local** admin, not SSO.
UNIFI_MAX_PAGESNoTuning parameter.20
UNIFI_CONSOLE_IDNoCloud mode: the console id from unifi.ui.com.
UNIFI_PAGE_LIMITNoTuning parameter.50
UNIFI_APP_VERSIONNoPin the version instead of probing at startup.probed
UNIFI_MAX_RETRIESNoTuning parameter.3
UNIFI_ALLOW_WRITESNoRegister the mutating tools.false
UNIFI_INSECURE_TLSNoDisable certificate verification, this server only.false
UNIFI_ENABLE_LEGACYNoRegister the `unifi_legacy_*` tools.false

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

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
unifi_auth_statusA

Report whether this server can reach a UniFi console, which transport and site it uses, what Network version the console runs, and — when something is missing — exactly what to set. Call this FIRST whenever a tool you expected is not in the list: on this API the available endpoints depend on the console's version, so an absent tool usually means an older console or missing configuration rather than a bug.

unifi_list_sitesA

List the sites on this console with ALL THREE of their identifiers: the id (a UUID, which is what this API's paths take), the internalReference (the legacy 8-character name such as "default", which the unifi_legacy_* tools take) and the display name. Every other tool accepts any of the three for its site argument, so this is mostly useful when a site cannot be resolved or when you need the legacy name.

unifi_get_console_infoA

Report the console's UniFi Network version and which tools it supports. This API gained most of its endpoints in Network 10.0, so on an older console a large part of the tool set simply does not exist. Call this when a tool is missing or returns a 404 — it names the version each capability needs and lists what is gated off here.

unifi_list_clientsA

List the clients currently connected to a site — the devices on your network right now, not the historical list. Each entry carries the client id (a UUID the other client tools take), its name, type, IP, MAC and when it connected. Filtering happens on the console, so a filtered call is cheaper than reading pages and discarding them here.

unifi_get_clientA

Get the full detail of one connected client by its id from unifi_list_clients. Returns everything the console knows about that session, including its uplink device and guest-access state.

unifi_list_devicesA

List the UniFi devices adopted by a site — access points, switches, gateways — with their state, model, IP, MAC and firmware. Use firmwareUpdatable: true to find what needs upgrading, or state: "OFFLINE" to find what is down. The nested features and interfaces blocks are omitted here; unifi_get_device returns the complete object for one device.

unifi_get_deviceA

Get one adopted device in full, including its features, interfaces, uplink and adoption timestamps — everything unifi_list_devices trims away.

unifi_get_device_statsA

Get a device's latest telemetry: uptime, CPU and memory utilization, load averages, uplink throughput and per-radio transmit retry rates. This is the current snapshot the console holds, not a time series — there is no history endpoint in this API.

unifi_list_vouchersA

List the hotspot guest vouchers on a site, with their code, name, time and data limits, how many guests have used each, and when it activates and expires. An expired voucher is not deleted automatically — filter with expired: false for the ones still usable.

unifi_list_networksA

List the networks (VLANs) configured on a site — their name, VLAN id, subnet, DHCP settings and purpose. Read-only: this server does not create or modify networks, because a wrong subnet or VLAN id disconnects every client on it with no undo. Make those changes in the UniFi UI.

unifi_list_wlansA

List the WiFi broadcasts (SSIDs) on a site, with the network each is bridged to, its security mode, band and whether it is enabled. Read-only for the same reason as networks: a bad SSID change takes every wireless client offline at once.

unifi_list_firewall_zonesA

List the firewall zones on a site — the named groups of networks that zone-based policies are written between. Read these first: a policy references zones by id, so the ids here are what make unifi_list_firewall_policies readable. This server never creates or modifies firewall configuration; make those changes in the UniFi UI, where a mistake can be undone before it locks you out.

unifi_list_firewall_policiesA

List the zone-based firewall policies on a site, with their action, source and destination zones, matching criteria and whether each is enabled. Policies are evaluated in order, so pass sourceZoneId and destinationZoneId to see the ordering that actually applies between one pair of zones. Read-only, deliberately: a wrong policy can lock you out of the console with no undo.

unifi_requestA

Escape hatch: call any Integration API endpoint directly, for the parts of the API this server does not wrap — switch stacks, LAG, VPN servers, RADIUS profiles, WAN interfaces, device tags, ACL rules, DNS policies and the DPI reference tables. Paths are relative to the API root, so /sites and /sites/<uuid>/wans, and the site must be a real UUID here — this tool does NOT resolve site names, so get one from unifi_list_sites first. Writes are DISABLED: only GET is permitted. Set UNIFI_ALLOW_WRITES=1 to allow mutations, which also registers the purpose-built write tools.

Prompts

Interactive templates invoked by user choice

NameDescription
diagnose-clientWork out why one device cannot get on the WiFi — blocked, absent, out of range, or connected and failing higher up.
new-devicesList devices seen on the network for the first time recently, with enough identity to judge whether each is expected.
network-healthReview subsystem health, device state, firmware, WiFi security posture and blocked clients, and report what actually needs attention.

Resources

Contextual data attached and managed by the client

NameDescription
unifi-troubleshootingRead this BEFORE concluding that a device is absent, that nothing is blocked, or that a client has been offline for months. Documents the API behaviours that return a successful, plausible, wrong answer — including why a device refused at the authentication frame appears nowhere in the API, and how to read the access-point logs that do record it.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mgcrea/mcp-unifi-network'

If you have feedback or need assistance with the MCP directory API, please join our Discord server