Skip to main content
Glama
bgauger
by bgauger

UniFi Safe MCP

A focused, read-only UniFi Network MCP server providing bounded health, device, and active-client views. Extracted from spectrenet-mcp commit 2e63f009d8f4642e17398685baef0251811d6637; this repository is self-contained.

Safety contract

  • Exactly three read tools: network_health, devices, and clients; no configuration, command, adoption, restart, block, or other mutation tools.

  • Appliance data requests use HTTP GET only (authentication necessarily uses POST /api/auth/login).

  • TLS certificate and hostname verification are enabled by default.

  • Authentication and appliance data redirects are rejected rather than followed.

  • The configured site is encoded as one URL path segment, and endpoint suffixes are closed-allowlisted.

  • HTTP response bytes, returned list lengths, projected fields, and audit fields are bounded.

  • Credentials and full responses are not audited.

Related MCP server: UniFi MCP Server

Compatibility

This targets the UniFi OS console proxy paths /api/auth/login and /proxy/network/api/s/{site}/..., observed on modern UniFi OS appliances. Older self-hosted UniFi Network Controllers commonly use /api/login and non-proxied /api/s/...; those are not supported. Ubiquiti changes private/internal endpoints between appliance and Network Application versions. No version matrix is certified: test this alpha against your exact console firmware and Network Application version in non-production, and pin upgrades operationally.

Install and run

uv sync --extra test
uv run unifi-safe-mcp --help
uv run unifi-safe-mcp

The server uses MCP stdio and does not load .env. Treat .env.example as fake documentation only; inject a dedicated read-only account through a supervisor/secret manager.

Verify

uv sync --locked --extra test
uv run --locked pytest
uv run --locked python -m compileall -q src tests
uv build

See architecture, compatibility, and security. MIT © 2026 Ben Gauger.

Install Server
A
license - permissive license
D
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    Enables 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.
    41
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables 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.
    36
    MIT

View all related MCP servers

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.

View all MCP Connectors

Latest Blog Posts

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