Rust MCP server and CLI for UniFi Network controller operations.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
UniFi Network client, device, WLAN, firewall, and health operations over MCP and CLI.
It exposes one MCP tool, unifi, plus the runifi CLI. Agents can inspect
clients, devices, WiFi networks, health, alarms, events, controller sysinfo, and
authenticated identity, and can use generated official_* / unifi_* actions
when their MCP auth scope permits it.
30-second path: set UNIFI_URL and UNIFI_API_KEY, then run
npx -y @dinglebear/runifi health --json -> start loopback HTTP with
UNIFI_MCP_HOST=127.0.0.1 npx -y @dinglebear/runifi serve -> call tools/call with
{"action":"health"}.
Status: operational RMCP upstream-client server. The preserved convenience
actions are read-oriented; generated mutating actions require unifi:admin
authorization. HTTP MCP supports loopback dev mode, static bearer tokens, and
Google OAuth through lab-auth.
Not for: replacing the UniFi console, storing controller credentials for callers, bypassing UniFi permissions, generic HTTP proxying, multi-tenant isolation, or passing UniFi API keys through MCP tool arguments.
| Surface | This repo |
|---|---|
| Repository | unifi-rmcp |
| Rust crate | unifi-rmcp |
| Binary / CLI | runifi |
| npm package | @dinglebear/runifi |
| npm binary aliases | unifi-rmcp, runifi |
| MCP tool | unifi |
| Config home | ~/.unifi-rmcp on hosts, /data in containers |
| Env prefixes | UNIFI_*, UNIFI_MCP_*, UNIFI_RMCP_* for npm launcher controls |
The repo and npm package use the RMCP family name, while the shipped binary uses
the short Rust CLI name runifi.
official_* actions for documented Network Integration API
endpoints.unifi_* internal controller actions and hybrid aliases
such as list_clients, list_devices, list_networks, list_wifi, and
get_system_info.unifi:read for read actions and unifi:admin for mutating actions
in mounted HTTP MCP mode.| This repo owns | UniFi owns | Explicitly out of scope |
|---|---|---|
| MCP/CLI projection, action registry, request validation, HTTP MCP auth policy, response shaping, generated action dispatch, setup checks, and endpoint verification. | Controller state, site/device/client data, UniFi users, API key issuance, upstream authorization, and actual network mutations. | Replacing the controller UI, credential brokerage, arbitrary HTTP proxying, long-lived polling, policy-as-code, multi-tenant sandboxing, and local gateway provisioning. |
| Path | Command | Best for | Notes |
|---|---|---|---|
| npm / npx | npx -y @dinglebear/runifi --help | Local MCP clients and quick trials. | Downloads the matching runifi binary from GitHub Releases. |
| Release installer | curl -fsSL https://raw.githubusercontent.com/dinglebear-ai/runifi/main/scripts/install.sh | bash | Host installs without Node. | Installs runifi for the current Linux host. |
| Docker / Compose | docker compose up -d | Shared HTTP MCP deployments. | Reads .env and exposes container port 40030. |
| Build from source | cargo build --release | Development and audits. | Produces target/release/runifi. |
| Plugin | claude plugin install plugins/unifi | Claude Code local plugin setup from this checkout. | Ships the skill and .mcp.json. No session hooks β plugin settings reach the server through .mcp.json's ${user_config.*} env block, so no manual setup step is needed. |
Run the stdio MCP server or CLI without a manual binary install:
The npm package downloads runifi during postinstall. Override download
behavior only when testing packaging:
| Variable | Purpose |
|---|---|
UNIFI_RMCP_SKIP_DOWNLOAD=1 | Skip postinstall binary download. |
UNIFI_RMCP_VERSION or UNIFI_RMCP_BINARY_VERSION | Select the GitHub Release tag. |
UNIFI_RMCP_REPO | Select the GitHub repo used for release downloads. |
UNIFI_RMCP_RELEASE_BASE_URL | Select a custom release base URL. |
Minimum supported Rust version: 1.86. The Cargo workspace has three members:
the root unifi-rmcp package, crates/unifi (reusable core), and xtask
(dev tooling). All members inherit Rust edition 2024 and MSRV 1.97.1 from the
workspace root.
In UniFi OS, go to Settings -> Admins & Users -> API Keys, create a key, and
copy it into UNIFI_API_KEY.
Set UNIFI_LEGACY=true only for older non-UDM controllers that do not use the
/proxy/network path prefix.
In another shell:
Register UniFi through Labby as an HTTP upstream when sharing one long-running server, or run it directly as stdio for local-only use.
Do not put UNIFI_API_KEY, OAuth secrets, passwords, SSH keys, or upstream
bearer tokens in MCP tool arguments. Use env, config files, or the MCP client's
secret storage. MCP callers never provide credentials, tokens, keys, or secrets
as action arguments.
| Surface | Status | Entry point | Purpose |
|---|---|---|---|
| MCP stdio | Supported | runifi mcp, npx -y @dinglebear/runifi mcp | Local child-process MCP clients. |
| MCP HTTP | Supported | runifi serve, POST /mcp | Streamable HTTP MCP for local or shared server deployments. |
| CLI | Supported | runifi <command> | Scriptable parity and debugging. |
| Prompts | Supported | network_summary | Agent prompt for UniFi status summaries. |
| Resource | Supported | MCP tool schema resource | Client-side schema discovery. |
| REST API | Not shipped | N/A | UniFi already owns the REST APIs. |
| Web UI | Not shipped | N/A | UniFi already owns the controller UI. |
One MCP tool is exposed: unifi. Pass the required action argument to select
the operation. The action enum is generated from the inventories in data/, so
the surface is large:
| Family | Actions | Mutating |
|---|---|---|
official_* | 78 | 36 |
unifi_* | 175 | 87 |
| Preserved convenience | 8 | 0 |
| Hybrid aliases | 5 | 0 |
help | 1 | 0 |
| Total | 267 | 123 |
Counts are derived from data/unifi_official_network_v10_3_58.json and the
runtime: true entries of data/unifi_internal_endpoint_models.json.
crates/unifi/src/capabilities.rs is the source of truth at runtime.
| Action | Description | Required params | Optional params |
|---|---|---|---|
clients | Connected wireless and wired clients. | none | none |
devices | Network devices: APs, switches, gateways. | none | none |
wlans | WiFi network configurations. | none | none |
health | Site health summary. | none | none |
alarms | Active alarms and alerts. | none | none |
events | Recent controller events. | none | limit |
sysinfo | Controller system information. | none | none |
me | Authenticated UniFi identity. | none | none |
help | Built-in action documentation. | none | none |
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/unifi-rmcp-2)<a href="https://allmcps.com/mcp/unifi-rmcp-2"><img src="https://allmcps.com/api/badge/unifi-rmcp-2?style=directory" alt="UniFi RMCP on AllMCPs" /></a>