Unifi MCP 2d7bf285

MCP运维云端

提供方 gordcurrie

运维云端 未标注 无需鉴权 社区 / 第三方 Claude DesktopClaude

一个将UniFi网络操作暴露为工具的MCP服务器,适用于网络设备管理和配置。

一句话选型结论

按资料字段整理

Unifi MCP 2d7bf285 属于运维云端类 MCP 服务器,传输方式未标注,无需鉴权,可直接接入 Claude Desktop、Claude,没有现成安装命令,需按官方文档接入。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

分类运维云端 传输方式未标注 鉴权无需鉴权 部署方式未标注
GitHub 星标 2 仓库热度,无公开仓库时显示未标注
工具数 51 暴露给模型的工具数量
资源 / 提示词 0 / 0 资源与提示词模板数量
维护方 社区 / 第三方 核验等级 仅资料核对

工具与能力

运维云端
数量来自来源目录的标注,具体工具清单以官方文档为准
工具数量51暴露给模型可调用的工具个数
资源数量0可读取的资源条目
提示词数量0内置提示词模板数量

能力标签

支持客户端

适用场景

网络管理Go本地部署设备控制防火墙配置客户端管理VPN管理

安装与配置

未标注 无需鉴权
上游未给出传输方式
  1. 1
    准备运行环境

    按官方文档确认运行环境(常见为 Node.js 或 Python),装好后再执行安装命令。

  2. 2
    安装服务

    复制上面的安装命令执行;命令里带占位符的位置,换成自己的密钥或路径。

  3. 3
    写入客户端配置

    在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4
    验证是否可用

    连接成功后客户端会列出约 51 个工具,随便调一个只读工具确认能返回结果。

典型使用场景

3 类
按分类与标签整理的常见用法,具体以官方文档为准
云资源查询

查实例、存储、账单等云上资源状态。

部署与发布

把部署、重启、回滚这类操作接进对话。

监控与告警

拉取监控指标,异常时让模型帮你判断。

选择建议

选之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 资料标注 51 个工具,覆盖面较广,能满足多种调用。
  • 已适配 Claude Desktop、Claude,换客户端不用重新研究配置。
  • 资料标注无需鉴权,装好就能连。

先想清楚的地方

  • 没有现成安装命令,需要按官方文档自己填启动命令和参数。
  • 版本更新与行为细节以官方仓库为准。

更适合

  • 需要在运维云端场景里让模型直接调用外部能力的人。
  • 已经在用 Claude Desktop、Claude 的用户,接入路径最短。
  • 想先快速试一下、能接受在本地或自有环境跑服务的人。

不太适合

  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
Unifi MCP 2d7bf285当前 51 未标注 未标注 无 2026-05-17
lobehub 未标注 stdio · 本地进程 本地部署 有 2026-04-11
TrendRadar 未标注 stdio · 本地进程 本地部署 有 2026-04-13
Ui Tars Desktop 8a825770 未标注 stdio · 本地进程 本地部署 有 2026-05-17
ruflo 未标注 stdio · 本地进程 本地部署 有 2026-04-13
FastGPT 未标注 stdio · 本地进程 本地部署 有 2026-04-11

服务器档案

运维云端
字段来自项目仓库与公开索引,中文说明由本站标注
提供方gordcurrie上游标注的维护方 gordcurrie
分类运维云端本站按上游分类展示
连接方式未标注上游未给出传输方式
鉴权方式无需鉴权远程服务建议用最小权限凭据
维护方社区 / 第三方核验等级 仅资料核对
包名 / 运行时未标注 · 未标注本地安装时用到的包标识与运行时
部署类型未标注上游给出的部署形态
最近核验2026-05-17上游最后核验时间

详细介绍

13.0 KB
来自项目仓库与上游目录的原文,未做删改

unifi-mcp

An MCP server that exposes UniFi Network operations as tools, built in Go using the official go-sdk.

Tools

> All list_* tools accept optional offset and limit parameters for pagination and return a Page[T] object with data, totalCount, offset, limit, and count fields. limit must be ≤ 1000 (values above 1000 are rejected with an error). Most tools also accept an optional site_id; omit it to use the default configured via UNIFI_SITE_ID.

Sites

Tool Description Parameters
get_application_info UniFi controller version and type —
list_sites List sites on the controller offset, limit (optional)
get_site Details for a specific site site_id (optional)

Devices

Tool Description Parameters
list_devices Adopted devices (APs, switches, gateways) offset, limit (optional)
get_device Details for a specific device device_id
get_device_stats Latest CPU, memory, and uptime stats device_id
list_pending_devices Devices visible on the network but not yet adopted offset, limit (optional)
restart_device Restart a device device_id, confirmed (must be true)
power_cycle_port Power-cycle a PoE port on a switch device_id, port_idx, confirmed (must be true)

Clients

Tool Description Parameters
list_clients Currently connected clients offset, limit (optional)
get_client Details for a specific client client_id
authorize_guest_client Authorize a client for guest network access client_id, confirmed (must be true), time_limit_minutes (optional), data_limit_mb (optional), download_bandwidth_kbps (optional), upload_bandwidth_kbps (optional)

Network

Tool Description Parameters
list_wifi_broadcasts WiFi broadcast (SSID) configurations offset, limit (optional)
get_wifi_broadcast Details for a specific WiFi broadcast broadcast_id
set_wifi_broadcast_enabled Enable or disable a WiFi broadcast broadcast_id, enabled, confirmed (must be true)
list_networks LAN/VLAN network configurations offset, limit (optional)
list_firewall_policies Firewall policies (user-defined only by default) offset, limit, user_only (optional; default true)
get_firewall_policy Details for a specific firewall policy policy_id
set_firewall_policy_enabled Enable or disable a firewall policy policy_id, enabled, confirmed (must be true)
list_firewall_zones Firewall zones offset, limit (optional)
get_firewall_zone Details for a specific firewall zone zone_id
create_firewall_zone Create a new firewall zone name, network_ids (optional, comma-separated)
update_firewall_zone Update an existing firewall zone zone_id, name, network_ids (optional, comma-separated), confirmed (must be true)
list_acl_rules ACL rules offset, limit (optional)
get_acl_rule Details for a specific ACL rule rule_id
get_acl_rule_ordering Current ACL rule evaluation order —
list_traffic_matching_lists Traffic matching lists (IP/port sets used by firewall policies) offset, limit (optional)
get_traffic_matching_list Details for a specific traffic matching list list_id
list_wans WAN interface definitions offset, limit (optional)
list_vpn_tunnels Site-to-site VPN tunnels offset, limit (optional)
list_vpn_servers VPN server configurations offset, limit (optional)
list_dns_policies Local DNS A-record policies offset, limit (optional)
get_dns_policy Details for a specific DNS policy policy_id
create_dns_policy Create a new local DNS A-record policy type, domain, ipv4_address (optional), ttl_seconds, enabled
update_dns_policy Update an existing DNS policy policy_id, type, domain, ipv4_address (optional), ttl_seconds, enabled, confirmed (must be true)
list_vouchers Hotspot vouchers offset, limit (optional)
get_voucher Details for a specific hotspot voucher voucher_id
create_vouchers Generate one or more hotspot vouchers count (1–100), name (optional), time_limit_minutes (optional), data_limit_mb (optional), confirmed (must be true)
list_device_tags Device tags for the site offset, limit (optional)
list_dpi_categories DPI application categories used in firewall matching offset, limit (optional)
list_dpi_applications DPI applications used in firewall matching offset, limit (optional)
list_radius_profiles RADIUS profiles for the site offset, limit (optional)

Destructive (opt-in)

These tools are not registered by default. Set UNIFI_ALLOW_DESTRUCTIVE=true to enable them.

Tool · Description · Parameters
delete_dns_policy · Permanently delete a DNS policy · policy_id, confirmed (must be true)
delete_firewall_policy · Permanently delete a firewall policy · policy_id, confirmed (must be true)
delete_firewall_zone · Permanently delete a firewall zone · zone_id, confirmed (must be true)
create_acl_rule · Create a new ACL rule · type (IPV4\ · MAC), name, action (ALLOW\ · BLOCK), enabled, confirmed (must be true)
update_acl_rule · Update an existing ACL rule · rule_id, type (IPV4\ · MAC), name, action (ALLOW\ · BLOCK), enabled, confirmed (must be true)
set_acl_rule_enabled · Enable or disable an ACL rule · rule_id, enabled, confirmed (must be true)
reorder_acl_rules · Set the ACL rule evaluation order · rule_ids (comma-separated, in desired order), confirmed (must be true)
delete_acl_rule · Permanently delete an ACL rule · rule_id, confirmed (must be true)
delete_voucher · Permanently revoke a hotspot voucher · voucher_id, confirmed (must be true)

> Why are all ACL writes destructive-gated? Any ACL mutation directly controls which traffic is allowed or blocked. A misplaced BLOCK rule — or a reorder that promotes one — can cause a complete network outage. UNIFI_ALLOW_DESTRUCTIVE=true is the primary guard; confirmed: true is the per-call secondary guard.

Installation

Download a pre-built binary

Download the latest release for your platform from the Releases page.

Platform Binary
Linux (amd64) unifi-mcp_linux_amd64
Linux (arm64) unifi-mcp_linux_arm64
macOS (amd64) unifi-mcp_darwin_amd64
macOS (arm64) unifi-mcp_darwin_arm64
Windows (amd64) unifi-mcp_windows_amd64.exe

Each release also includes checksums.txt with SHA-256 hashes of every binary. Download it into the same directory and verify before running:```bash

Linux

sha256sum --check --ignore-missing checksums.txt

macOS

shasum -a 256 --check --ignore-missing checksums.txt


Windows users can compare the output of `Get-FileHash unifi-mcp_windows_amd64.exe` (PowerShell) against the matching line.

Make it executable and place it on your `PATH` (substitute the filename for your platform):```bash
chmod +x <binary-name>
mv <binary-name> /usr/local/bin/unifi-mcp

> Windows users: rename unifi-mcp_windows_amd64.exe to unifi-mcp.exe and place it in a directory on your %PATH%.

Confirm the installed version:```bash
unifi-mcp --version


> macOS users: if Gatekeeper blocks the downloaded binary, clear the quarantine flag with `xattr -d com.apple.quarantine /usr/local/bin/unifi-mcp`.

### Install with Go

Requires Go 1.27.3+. Installs `unifi-mcp` into `$(go env GOPATH)/bin`:```bash
go install github.com/gordcurrie/unifi-mcp/cmd/unifi-mcp@latest

Build from source

Requires Go 1.27.3+. You will also need a UniFi OS console (UCG-Max, UDM-Pro, etc.) with an API key generated under UniFi OS → Settings → API.```bash
git clone https://github.com/gordcurrie/unifi-mcp
cd unifi-mcp
cp .env.example .env # copy the example env file
$EDITOR .env # set UNIFI_* values (see table below)
make build # binary lands in bin/unifi-mcp


## Configuration

All configuration is via environment variables:

| Variable | Required | Description |
|---|---|---|
| `UNIFI_BASE_URL` | yes | e.g. `https://192.168.1.1/proxy/network` |
| `UNIFI_API_KEY` | yes | API key from *UniFi OS → Settings → API* |
| `UNIFI_SITE_ID` | yes | Default site UUID — see below |
| `UNIFI_INSECURE` | no | `true` to skip TLS verification (self-signed certs) |
| `UNIFI_ALLOW_DESTRUCTIVE` | no | `true` to register ACL write, delete, and revoke tools (default: disabled) |

The server needs `UNIFI_SITE_ID` before it will start. To find it, set `UNIFI_BASE_URL` and `UNIFI_API_KEY` in `.env`, load it, then query the API directly (`-k` skips verification of the console's self-signed certificate):```bash
set -a && source .env && set +a
curl -sk -H "X-API-Key: $UNIFI_API_KEY" "$UNIFI_BASE_URL/integration/v1/sites"

Single-site setups have one entry; use its id.

Source your .env file before running:```bash
set -a && source .env && set +a


## Running

### stdio (default — for local MCP clients)```bash
unifi-mcp
# or, if running directly from a source build:
./bin/unifi-mcp

HTTP (streamable — for remote/shared deployments)

> The HTTP transport has no built-in authentication. Use a loopback address or place it behind a reverse proxy before exposing it on a shared network.
>
> Cross-origin browser requests (mismatched Origin or Sec-Fetch-Site: cross-site) are rejected with 403; non-browser MCP clients are unaffected.```bash
unifi-mcp --transport http --addr 127.0.0.1:8080


## Claude Code configuration```bash
claude mcp add unifi --scope user \
  -e UNIFI_BASE_URL=https://192.168.1.1/proxy/network \
  -e UNIFI_API_KEY=your-api-key \
  -e UNIFI_SITE_ID=your-site-uuid \
  -- /path/to/unifi-mcp

If your console uses its default self-signed certificate, add -e UNIFI_INSECURE=true. This disables TLS certificate and hostname verification, so only use it on a trusted network.

Run /mcp inside Claude Code to confirm the server is connected. Install the agent skills too, so Claude knows when and how to use the tools.

VS Code Copilot configuration

Create .vscode/mcp.json in your workspace (already gitignored):```json
{
"servers": {
"unifi-mcp": {
"type": "stdio",
"command": "/path/to/unifi-mcp/bin/unifi-mcp",
"env": {
"UNIFI_BASE_URL": "https://192.168.1.1/proxy/network",
"UNIFI_API_KEY": "your-api-key",
"UNIFI_SITE_ID": "your-site-uuid"
}
}
}
}


Then open the Copilot chat panel, switch to **Agent** mode, and the `unifi-mcp` server will appear in the available tools.

## Claude Desktop configuration

Add the server to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows):```json
{
  "mcpServers": {
    "unifi-mcp": {
      "command": "/path/to/unifi-mcp/bin/unifi-mcp",
      "env": {
        "UNIFI_BASE_URL": "https://192.168.1.1/proxy/network",
        "UNIFI_API_KEY": "your-api-key",
        "UNIFI_SITE_ID": "your-site-uuid"
      }
    }
  }
}

Restart Claude Desktop after saving the config — the UniFi tools will appear in the tool selector.

OpenCode configuration

Add the server to opencode.json in your project root (or ~/.config/opencode/opencode.json for global config):```json
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"unifi-mcp": {
"type": "local",
"command": ["/path/to/unifi-mcp/bin/unifi-mcp"],
"enabled": true,
"environment": {
"UNIFI_BASE_URL": "https://192.168.1.1/proxy/network",
"UNIFI_API_KEY": "your-api-key",
"UNIFI_SITE_ID": "your-site-uuid"
}
}
}
}


## Agent skills

The `skills/` directory contains Agent Skills (`SKILL.md` format) that teach an agent how to use these tools well:

| Skill | Use it for |
|---|---|
| `unifi-network` | Everyday tasks: connected clients, device health, WiFi, DNS records, firewall, guest access — with safe confirmation rules |
| `audit-network-security` | A structured security audit that produces a prioritised findings report |

Install them for all your projects in Claude Code:```bash
git clone https://github.com/gordcurrie/unifi-mcp
mkdir -p ~/.claude/skills
cp -R unifi-mcp/skills/* ~/.claude/skills/

Other agents that support Agent Skills (GitHub Copilot, Cursor, Codex CLI, Gemini CLI, …) read the same folders; copy them to that agent's skills directory. Inside this repo they are already available to Claude Code and Copilot via .claude/skills and .github/skills, which link to skills/.

Development```bash

make install-tools # install golangci-lint, gosec, govulncheck, gofumpt
make check # full quality gate: fix, fmt, vet, lint, sec, vulncheck, test, build
make test # tests only (with race detector)
make build # build only → bin/unifi-mcp
make clean # remove bin/unifi-mcp
```

常见问题

6 问
答案由本站依据条目字段整理,不引用上游原文
Unifi MCP 2d7bf285 怎么安装?

资料没有给出安装命令,请到官方仓库或文档按说明接入;这类条目多数是生态应用,或尚未发布可安装包。

Unifi MCP 2d7bf285 怎么在 Claude Desktop、Claude 里配置?

它的传输方式未标注,在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,配置才会生效。

Unifi MCP 2d7bf285 收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Unifi MCP 2d7bf285 需要 API Key 吗?

资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

Unifi MCP 2d7bf285 支持哪些客户端?

资料标注支持 Claude Desktop、Claude;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

Unifi MCP 2d7bf285 能提供哪些能力?

资料显示约 51 个工具;能力标签包括 网络管理、Go、Claude。具体工具清单以官方文档为准。

热门专题

按标签挑服务器
全部专题 →

服务器信息以作者仓库与官方文档为准;分类、传输方式与鉴权方式的中文说明为中文整理,最近核验 2026-05-17。