Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者提供的说明(英文原文)
An MCP server that leverages official UniFi API
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
UNIFI_HOST, UNIFI_USERNAME, UNIFI_PASSWORD, UNIFI_PORT, UNIFI_VERIFY_SSL, UNIFI_SITE标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"unifi": {
"command": "npx",
"args": [
"-y",
"unifi-mcp-server"
],
"env": {
"UNIFI_HOST": "your-value",
"UNIFI_USERNAME": "your-value",
"UNIFI_PASSWORD": "your-value",
"UNIFI_PORT": "your-value",
"UNIFI_VERIFY_SSL": "your-value",
"UNIFI_SITE": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add unifi --env UNIFI_HOST=your-value --env UNIFI_USERNAME=your-value --env UNIFI_PASSWORD=your-value --env UNIFI_PORT=your-value --env UNIFI_VERIFY_SSL=your-value --env UNIFI_SITE=your-value -- npx -y unifi-mcp-server运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"unifi": {
"command": "npx",
"args": [
"-y",
"unifi-mcp-server"
],
"env": {
"UNIFI_HOST": "your-value",
"UNIFI_USERNAME": "your-value",
"UNIFI_PASSWORD": "your-value",
"UNIFI_PORT": "your-value",
"UNIFI_VERIFY_SSL": "your-value",
"UNIFI_SITE": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"unifi": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"unifi-mcp-server"
],
"env": {
"UNIFI_HOST": "your-value",
"UNIFI_USERNAME": "your-value",
"UNIFI_PASSWORD": "your-value",
"UNIFI_PORT": "your-value",
"UNIFI_VERIFY_SSL": "your-value",
"UNIFI_SITE": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
UNIFI_PORT envUNIFI_VERIFY_SSL envUNIFI_SITE env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月9日
注册名称已通过 GitHub 账户 enuno 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:UNIFI_HOST, UNIFI_USERNAME, UNIFI_PASSWORD
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.2.0)于10个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Spec Driven Development, Remote Desktop Commander, alalanet — check before you pay
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Check packages, MCP servers and x402 endpoints before agents install or pay. Signed.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
UniFi MCP Server
AI-native control of UniFi networks through the Model Context Protocol
An MCP server that exposes UniFi Network, UniFi Protect and the UniFi cloud APIs (Site Manager, Mobility, InnerSpace, Carrier Fabric) as MCP tools, so AI agents can read and change UniFi infrastructure through one standard interface. It runs against one controller or, in fleet mode, many.
Current release: 0.8.0. See CHANGELOG.md for what changed.
343 tools in local mode, from 60 modules.
fleet_* tools that read across controllers. See MULTI_CONTROLLER.md and docs/FLEET_SCALING_PLAN.md.prompts/list and prompts/get operations. See docs/PROMPTS.md.confirm=True and supports dry_run=True, plus read-only and dry-run server modes, role-based access over risk tiers, and a hash-chained audit log (see below)./a2a/agent-card and /.well-known/agent-card.json, plus a capability manifest and a delegation endpoint that runs a registered tool under the server's own role, confirmation and audit controls. See A2A.md./metrics, /healthz, SIEM export of audit records, optional Redis caching, webhooks with HMAC verification.Set UNIFI_API_TYPE to choose how the server reaches UniFi.
| Mode | What it reaches | Use it for |
|---|---|---|
local (recommended) | Your UniFi console or gateway on the LAN (UNIFI_LOCAL_HOST) | Everything: device and client control, configuration, firewall, Protect |
cloud-ea | UniFi's Early Access cloud API | Sites and aggregate statistics; no per-device control or configuration |
cloud-v1 | UniFi's stable v1 cloud API | Sites and aggregate statistics; no per-device control or configuration |
The cloud tools (Site Manager, Mobility, InnerSpace, Carrier Fabric) call api.ui.com and are registered in every mode. Set UNIFI_SITE_MANAGER_ENABLED=true to use them. In local mode the server registers 343 tools; in either cloud mode, 71.
Zone-based firewall tools need UniFi Network 9.0 or later. Some documented UniFi endpoints do not exist on every firmware version; see docs/UNIFI_API.md.
UniFi Network 11 / UniFi OS 6: compatible per released documentation, with four items pending live-controller verification — not yet a claim of full support. USG gateways and the classic, self-hosted Network Application Server are removed platform targets; fleet_health automatically flags any registered controller with a USG in its device inventory, but there is no API signal to auto-detect a classic Network Application Server, so label that controller instead (e.g. deployment=classic-server) and filter on it. Network 11 replaces the statistics engine and resets historical data, so the statistics tools (get_historical_stats, get_speed_test_history, get_dpi_statistics, list_top_applications, get_client_dpi) attach a statistics_note to every empty response — an empty history right after the upgrade is expected, not an outage. See docs/NETWORK_11_COMPATIBILITY.md for the full compatibility matrix.
pip install unifi-mcp-server # or: uv tool install unifi-mcp-server
pip install 'unifi-mcp-server[fleet]'
Or use the container image (amd64, arm64 and arm/v7; the -fleet variant for amd64 and arm64):
docker pull ghcr.io/enuno/unifi-mcp-server:latest
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows), Cursor (mcp.json, from View: Open MCP Settings) and most other MCP clients take the same mcpServers block:
{
"mcpServers": { "unifi": { "command": "uvx", "args": ["unifi-mcp-server"], "env": { "UNIFI_API_KEY": " ", "UNIFI_API_TYPE": "local", "UNIFI_LOCAL_HOST": "192.168.2.1" } } } }
If you installed with pip, use "command": "unifi-mcp-server" and drop args. To run the container instead:
{
"mcpServers": { "unifi": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "UNIFI_API_KEY=your-api-key-here", "-e", "UNIFI_API_TYPE=local", "-e", "UNIFI_LOCAL_HOST=192.168.2.1", "ghcr.io/enuno/unifi-mcp-server:latest" ] } } }
Keep -i and do not add -d: the client talks to the server over the container's stdin and stdout.
| Variable | Purpose | Default |
|---|---|---|
UNIFI_API_KEY | UniFi API key (required) | — |
UNIFI_API_TYPE | local, cloud-ea or cloud-v1 | cloud-ea |
UNIFI_LOCAL_HOST / UNIFI_LOCAL_PORT | Console address in local mode | — / 443 |
UNIFI_LOCAL_VERIFY_SSL | Verify the console's TLS certificate. false logs a warning at startup | true |
UNIFI_LOCAL_CA_FILE | CA certificate (PEM) for a self-signed console, instead of turning verification off. Can be the console's own certificate | — |
UNIFI_LOCAL_TLS_SERVER_NAME | Name the console's certificate is checked against, when it is not UNIFI_LOCAL_HOST: unifi.local for UniFi OS's own certificate | — |
UNIFI_DEFAULT_SITE | Site used when a tool call names none | default |
UNIFI_SITE_MANAGER_ENABLED | Enable the cloud tools (Site Manager, Mobility, InnerSpace, Carrier) | false |
UNIFI_PROFILE | Register only one group of tools (profiles) | all |
UNIFI_READ_ONLY / UNIFI_DRY_RUN | Read-only or preview-only server | false |
DEBUG | Registers debug_api_request (raw GET/DELETE, destructive tier, removed by read-only). Leave unset in production | unset |
MCP_SERVER_TRANSPORT | stdio, streamable_http, http or sse | stdio |
MCP_AUTH_TOKEN | Bearer token, required on network transports; viewer: (or operator:, admin:) limits a token's role | — |
REDIS_URL | Optional response cache | — |
WEBHOOK_SECRET | HMAC secret for incoming UniFi webhooks | — |
DATABASE_URL | Turns on fleet mode (Postgres) | — |
.env.example lists every setting with comments, including audit logging, SIEM export, metrics, Supermemory and agnost.ai.
The skills/ directory holds agent skills: Markdown files an AI agent loads on demand, so it knows which UniFi tools exist and how to use them safely without keeping every tool definition in context. Each skill is a folder with a SKILL.md, in the layout Claude Code and other agents install.
Using the server (operator skills)
| Skill | Covers |
|---|---|
unifi-network | Clients, networks and VLANs, WiFi, DHCP, DNS, WAN, vouchers |
unifi-devices | Inventory, adoption, restarts and upgrades, ports, switching, topology |
unifi-security | Firewall rules and groups, zone-based firewall, ACLs, port forwarding, VPN |
unifi-system | Sites, backups, QoS, traffic flows, DPI, RADIUS, guest portal |
unifi-channel-planning | Low-interference WiFi channel plans from neighbor scans |
Changing this codebase (developer skills)
| Skill | Covers |
|---|---|
unifi-mcp-tool-builder | Adding any MCP tool: model, function, registration, tests, docs |
unifi-network-config-tools | Network configuration tools: URL spaces, site IDs, read-modify-write |
unifi-security-tools | Firewall, ZBF, ACL and port forward tools, and their risk tiers |
unifi-protect-tools | The protect_* modules and the Protect client |
unifi-cloud-fleet-tools | Cloud API tools and the fleet stack |
Claude Code loads skills from ~/.claude/skills/ /SKILL.md (every session) or /.claude/skills/ /SKILL.md (one project). Copy the folders you want:
git clone https://github.com/enuno/unifi只显示了开头部分;其余内容请在仓库中阅读