unifi-safe-mcp
Enables read-only, bounded access to UniFi Network appliance health, devices, and active clients through three safe MCP tools with TLS verification and redirect rejection.
README
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, andclients; no configuration, command, adoption, restart, block, or other mutation tools. - Appliance data requests use HTTP
GETonly (authentication necessarily usesPOST /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.
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.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
E2B
Using MCP to run code via e2b.