
UniFi
io.github.mattoddie由 GitHub 帳號 mattoddie 發布v0.6.1更新於 Oct 29, 2026
Manage a Ubiquiti UniFi network: devices, clients, WiFi, firewall and VPN. Read-only by default.
概覽
讓助理檢視並在開啟寫入後管理 Ubiquiti UniFi 網路:站點、裝置、用戶端、WiFi、防火牆、VPN 等。
- 可以做什麼
- 檢視站點、控制器資訊與站點健康狀態,列出裝置、用戶端與交換器連接埠
- 管理 WiFi 網路、VLAN、WAN、DNS 記錄與頻寬設定
- 檢閱防火牆規則、連接埠轉送、流量路由、IDS/IPS 以及 VPN 與 RADIUS 設定
- 建立熱點訪客憑證並管理訪客授權
- 讀取事件、告警、流量報告、DPI 與測速結果,管理管理員與備份
- 以 dry run 預覽變更,並透過 raw 工具呼叫任意控制器 API 路徑
- 適用情境
- 適合用自然語言詢問 UniFi 網路狀況:健康檢查、弱訊號用戶端、防火牆與連接埠轉送風險檢閱、韌體狀態或建立訪客憑證。適用於家庭實驗室與受管站點,讓助理讀取網路,並可選擇性地進行變更。
- 執行需求
- 以 stdio 在本機執行,可用 Docker 映像或 Claude Desktop 擴充套件。需要以 UNIFI_URL 指定控制器位址,並提供 UNIFI_API_KEY,或使用 UNIFI_USERNAME 與 UNIFI_PASSWORD 的本機帳號。https 控制器需設定 UNIFI_TLS_FINGERPRINT 或 UNIFI_VERIFY_SSL。使用容器方式需要 Docker。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 UniFi,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
unifi-mcp
Talk to your UniFi network.
An open-source Model Context Protocol server for Ubiquiti UniFi Network. It lets Claude and other AI assistants monitor and manage your sites, devices, clients, WiFi, firewall and more, all from one Docker container.
"Why is the lounge TV buffering?" The TV is on the Lounge AP at -78 dBm and 12 Mbps, and that AP's 5 GHz radio is at 81% channel utilisation on channel 36. Moving the AP to channel 149 or adding a wired backhaul should fix it. Want me to change the channel?
Ask about your network in plain English. The assistant picks from 145 tools to look things up and, if you allow it, make changes. Some examples:
- 🩺 "Give me a health check of the network."
- 🔎 "Which clients have a weak WiFi signal right now?"
- 🔐 "Review my firewall and port forwards for anything risky."
- 🔄 "Which devices have firmware updates, and when were they last rebooted?"
- 🎟️ "Create 10 one-day guest vouchers limited to 5 Mbps."
- 🧱 "Block the device called 'kids-tablet' until I unblock it."
Highlights
- 🐳 Docker-first. There's one small distroless image (
ghcr.io/mattoddie/unifi-mcp, about 22 MB) forlinux/amd64andlinux/arm64. It serves Streamable HTTP for a long-running service, or stdio fordocker run -i. For Claude Desktop there's also a one-click extension bundle (.mcpb) that needs no Docker. - 🛡️ Safe by default. The server is read-only unless you turn on writes, and deleting configuration needs a second switch. Destructive tools are labelled so your MCP client asks before running them, and passwords and keys are redacted from output.
- 🔍 Preview and audit. Every write tool takes
dry_run: trueto show the request it would send, with a field-level diff of what would change, without changing anything.UNIFI_AUDIT_LOGrecords each change in a JSON Lines audit log. - 🧰 Broad coverage. It covers 14 toolsets: devices, clients, switch ports and PoE, WiFi, networks and VLANs, WAN, DNS, legacy and zone-based firewall, traffic rules and routes, IDS/IPS, VPN, RADIUS, hotspot vouchers, statistics, logs, admins and backups.
- 🎛️ Tunable. Expose only the toolsets you need, which keeps the model's context small and focused. See Keeping the tool list small.
- 🔌 Works with your controller. Supports UniFi OS consoles (UDM, UDM Pro/SE, UCG, UDR, UX, Cloud Key Gen2+, UniFi OS Server) and legacy self-hosted Network applications. Auth is an API key or a local account.
- 🧪 Tested. The test suite runs against a mock controller on every build.
Quick start
You need Docker, a UniFi controller and an MCP client such as Claude Code.
1. Get credentials. On a UniFi OS console, create an API key: UniFi Network → Settings → Control Plane → Integrations → Create API Key. On older controllers, use a local account instead.
2. Start the server.
3. Connect your assistant.
Now ask "How's my network doing?" in Claude Code.
Using Claude Desktop, VS Code, Cursor or Codex? See Connecting MCP clients. Prefer not to run a service? Use stdio mode with docker run -i.
Claude Desktop in one click
On a Mac or Windows PC with Claude Desktop, you don't need Docker at all. Download the .mcpb bundle for your computer from the latest release, open it, and enter your controller URL, API key and certificate fingerprint in the settings. See Claude Desktop.
unifi-mcp is also listed in the MCP Registry as io.github.mattoddie/unifi-mcp, with the image (over stdio) and the bundles, so clients and directories that read the registry can install it.
Turning on changes
Out of the box the assistant can look but not touch. To let it make changes, add these to .env and run docker compose up -d:
Ask for a dry run to preview a change first: "Dry run: disable the guest WiFi. What would change?" Read Security before turning on writes for a production network.
What it can do
See the tool reference for every tool and argument. Ready-made prompts like network_health_check, troubleshoot_client and security_review chain the tools together for common jobs.
Documentation
The docs are also published at unifi-mcp.mattoddie.dev/docs, with search.
Contributing
Contributions are very welcome, whether that's bug reports, compatibility reports from your hardware, docs or new tools. Read the contributing guide to get started, and please follow the code of conduct. To report a vulnerability, see the security policy. Please don't open a public issue for one.
License
MIT © Matt Oddie
unifi-mcp is an independent community project. It is not affiliated with, endorsed by or sponsored by Ubiquiti Inc. UniFi and Ubiquiti are trademarks of Ubiquiti Inc.
來源:README.md,提交 076263d
工具
0版本歷史
1- v0.6.1最新Oct 22, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分