unifi-mcp
by sirkirby·★ 339·综合分 53
为 UniFi 应用(网络、安防、门禁)提供 MCP 服务器,总共 169 个工具,支持跨产品关联分析。
概述
UniFi MCP 是一组 MCP 服务器,使 AI 助手能够与 Ubiquiti UniFi 控制器交互。该项目包含三个主要服务器:网络版(稳定,169个工具)、安防版(测试版,43个工具)和门禁版(测试版,29个工具)。每个服务器都将各自 UniFi 应用的功能作为 MCP 工具暴露,这些工具可查询、可组合且默认安全。项目还包含用于连接远程代理的云端中继,以及用于非 MCP 消费者的可选 REST/GraphQL API。
试试问 AI
装完之后,这里有 7 个你可以让 AI 做的事:
什么时候选它
如果您已经在使用 Ubiquiti UniFi 基础设施,并希望获得具有预览-确认式修改和跨产品事件关联等高级功能的 AI 管理能力,请选择 UniFi MCP。
什么时候不要选它
如果您不使用 Ubiquiti 硬件,请不要选择 UniFi MCP,因为该服务器仅支持 UniFi 控制器,不与其他网络生态系统集成。
此 server 暴露的工具
从 README 抽取出 12 个工具show_clientsShow all clients connected to the network with their details
create_firewall_ruleCreate a new firewall rule to control network traffic
audit_firewallAudit firewall policies for redundant or conflicting rules
list_motion_camerasList all cameras that detected motion in a specified time period
show_smart_detectionShow smart detection events from cameras with filtering options
badge_access_eventsShow timeline of door access events and badge information
create_visitor_passCreate a visitor pass with specific access permissions
network_health_checkRun batch diagnostics across devices and health subsystems
firewall_managerManage firewall policies with templates and change tracking
security_digestSummarize cross-product events with severity classification
correlate_eventsCorrelate Network, Protect, and Access events in a single timeline
audit_firewall_policiesComprehensive security audit of firewall policies with scoring
可对比工具
安装
安装
Claude Desktop(推荐)
添加到您的 claude_desktop_config.json:
{
"mcpServers": {
"unifi-network": {
"command": "uvx",
"args": ["unifi-network-mcp@latest"],
"env": {
"UNIFI_HOST": "192.168.1.1",
"UNIFI_USERNAME": "admin",
"UNIFI_PASSWORD": "your-password"
}
},
"unifi-protect": {
"command": "uvx",
"args": ["unifi-protect-mcp@latest"],
"env": {
"UNIFI_PROTECT_HOST": "192.168.1.1",
"UNIFI_PROTECT_USERNAME": "admin",
"UNIFI_PROTECT_PASSWORD": "your-password"
}
},
"unifi-access": {
"command": "uvx",
"args": ["unifi-access-mcp@latest"],
"env": {
"UNIFI_ACCESS_HOST": "192.168.1.1",
"UNIFI_ACCESS_USERNAME": "admin",
"UNIFI_ACCESS_PASSWORD": "your-password"
}
}
}
}直接安装
uvx unifi-network-mcp@latest
uvx unifi-protect-mcp@latest
uvx unifi-access-mcp@latestFAQ
- 这需要 UniFi API 密钥吗?
- 不需要,默认使用用户名/密码认证。API 密钥是可选的且为实验性质,仅限于只读访问。
- 我可以用这个管理多个控制器吗?
- 可以,每个服务器都支持带前缀的环境变量,可以连接到不同的控制器或使用不同的凭据。
- 什么是预览然后确认流程?
- 在应用任何更改之前,MCP 工具会显示将要修改的确切内容,让您可以在更改生效前确认或拒绝它们。
unifi-mcp 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。