lancontrol
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
lancontrol
lancontrol reads UniFi Network controller state through a single action-router tool: connected clients, network devices, WLAN configurations, site health, active alarms, recent events, controller sysinfo, and the authenticated identity. One binary serves a command-line interface and a stdio MCP server.
This is a labelled core subset. The upstream surface defines 267
actions in total; lancontrol builds only the 8 preserved
convenience actions plus help (9 action values). The generated
families are omitted, on purpose and by name: official_*
(78 actions), unifi_* (175 actions), and the 5 hybrid aliases
(list_clients, list_devices, list_networks, list_wifi,
get_system_info).
Configuration
Both variables are required for every action except help; a
missing value errors before any request is made:
Variable | Required | Purpose |
| yes | Controller base URL, e.g. |
| yes | API key, sent as the |
| no | UniFi site name. Defaults to |
Never pass the API key as a tool argument; it is read from the environment only.
Related MCP server: UniFi Internal API MCP Server
Install
npx @reneturcios/lancontrol helpOr run the container image:
docker run -i ghcr.io/cloudcorprecords/lancontrolThe container defaults to the MCP server (see below). Pass CLI arguments to use it as a CLI instead.
CLI
lancontrol clients
lancontrol devices
lancontrol wlans
lancontrol health
lancontrol alarms
lancontrol events --limit 25
lancontrol sysinfo
lancontrol me
lancontrol help
lancontrol --versionAction commands print the upstream JSON payload. help prints
the local action documentation and needs no configuration and no
network. Exit codes: 0 on success, 1 when a call fails
(including a missing-config or upstream API error), 2 for usage
errors.
MCP server
One bin serves both faces. The mcp subcommand starts a stdio
MCP server:
npx -y @reneturcios/lancontrol mcpMCP client configuration:
{
"mcpServers": {
"lancontrol": {
"command": "npx",
"args": ["-y", "@reneturcios/lancontrol", "mcp"],
"env": {
"UNIFI_URL": "https://unifi.local",
"UNIFI_API_KEY": "...",
"UNIFI_SITE": "default"
}
}
}
}Tool
One tool is exposed:
Tool | Input | What it returns |
|
| The upstream payload for the chosen action, or local documentation for |
Action | Description |
| Connected wireless and wired clients. |
| Network devices: APs, switches, gateways. |
| WiFi network configurations. |
| Site health summary. |
| Active alarms and alerts. |
| Recent controller events. |
| Controller system information. |
| Authenticated UniFi identity. |
| Built-in action documentation. |
Upstream mapping (documented reconstruction)
The public spec names the actions but does not publish, in its
convenience-action table, the exact controller path for each one.
Each action is therefore implemented as a GET to a plausible
documented UniFi internal endpoint under UNIFI_URL, with the
X-API-KEY header:
Action | Endpoint |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| no request — answered locally |
HTTP failures surface the status plus the upstream message
(meta.msg, message, or error) when present.
Development
npm install
npm run build # tsc -> dist/
npm test # node test runner over test/*.test.ts, no network (fake fetch fixtures)
npm run dev # run the CLI from source via tsxLicense
MIT — see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Query your team's drift, vulnerability, and upgrade data from any AI assistant. OAuth 2.1, 51 tools.
The OpenRouter for tools. One MCP connection gives any AI agent 254 hosted tools, pay per call.
Every Canopy public API operation as a tool, run as you after a browser sign-in or on an API key.
Zero-setup MCP gateway securely connecting AI to your tools with authentication and workflows
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI assistants to manage UniFi network infrastructure through 50+ tools covering devices, clients, networks, WiFi, firewall rules, and guest access using the official UniFi Network API.5224 npm5MIT
- AlicenseBqualityDmaintenanceProvides 170+ tools to manage UniFi networks via the internal controller API, enabling AI assistants to perform full network management including clients, devices, WLANs, firewall, and more.64MIT
- FlicenseNot gradedqualityCmaintenanceEnables read-only querying of a UniFi fleet via the Site Manager API and per-console connector proxy, allowing users to list hosts, sites, devices, ISP metrics, and live network clients through Claude.-
- AlicenseAqualityAmaintenanceProvides read-only access to UniFi Network consoles for sites, devices, clients, vouchers, networks, Wi-Fi, and firewall configuration, with optional opt-in tools for controlled write operations and legacy controller support.1456 npmMIT