unifi-safe-mcp
UniFi Safe MCP
一个专注的、只读的 UniFi Network MCP 服务器,提供有界的健康、设备和活动客户端视图。提取自 spectrenet-mcp 提交 2e63f009d8f4642e17398685baef0251811d6637;此仓库是自包含的。
安全契约
恰好三个只读工具:
network_health、devices和clients;没有配置、命令、采用、重启、阻止或其他变更工具。设备数据请求仅使用 HTTP
GET(身份验证必然使用POST /api/auth/login)。默认启用 TLS 证书和主机名验证。
拒绝身份验证和设备数据重定向,而不是跟随。
配置的站点编码为一个 URL 路径段,端点后缀采用封闭白名单。
HTTP 响应字节、返回列表长度、投影字段和审计字段均有界。
不审计凭据和完整响应。
Related MCP server: UniFi MCP Server
兼容性
这针对 UniFi OS 控制台代理路径 /api/auth/login 和 /proxy/network/api/s/{site}/...,在现代 UniFi OS 设备上观察到。较旧的自托管 UniFi Network Controller 通常使用 /api/login 和非代理的 /api/s/...;这些不受支持。Ubiquiti 在设备和 Network Application 版本之间更改私有/内部端点。没有经过认证的版本矩阵:在非生产环境中,针对您的确切控制台固件和 Network Application 版本测试此 alpha 版本,并在操作上固定升级。
安装和运行
uv sync --extra test
uv run unifi-safe-mcp --help
uv run unifi-safe-mcp服务器使用 MCP stdio,不加载 .env。将 .env.example 仅视为虚假文档;通过监督者/密钥管理器注入专用的只读账户。
验证
uv sync --locked --extra test
uv run --locked pytest
uv run --locked python -m compileall -q src tests
uv buildMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI assistants to manage and monitor UniFi Network Controllers through natural language. Provides 25 read-only tools for discovering devices and clients, viewing security configurations, analyzing network statistics, and exporting configuration data.41MIT
- AlicenseNot gradedqualityDmaintenanceEnables comprehensive management of UniFi Network infrastructure through 24 tools for monitoring and controlling devices, clients, wireless networks, security, and guest access. Supports network administration tasks like device restarts, client blocking, WLAN configuration, and backup creation.36MIT
- AlicenseAqualityAmaintenanceUniFi semantic-analysis MCP — 54 tools on Site Manager API and Cloud Connector. 8 workflow Prompts (4 fleet-ops + 4 MSP). Read-only.19982MIT
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Ubiquiti UISP API for managing network devices, sites, and monitoring through dynamically generated read-only tools.1MIT
Related MCP Connectors
XFA's remote MCP server — query device posture, compliance, policies & CVEs. Read-only.
Read-only MCP access to sessions, funnels, campaigns, errors, live visitors, and anomalies.
Read-only Remote MCP for externally grounded AI agent trust receipts.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/bgauger/unifi-safe-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server