unifi-mcp-server
Verified Safeby enuno
Overview
A Model Context Protocol (MCP) server that exposes the UniFi Network Controller API, enabling AI agents and applications to interact with UniFi network infrastructure in a standardized way.
Installation
docker-compose up -dEnvironment Variables
- UNIFI_API_KEY
- UNIFI_API_TYPE
- UNIFI_CLOUD_API_URL
- UNIFI_LOCAL_HOST
- UNIFI_LOCAL_PORT
- UNIFI_LOCAL_VERIFY_SSL
- UNIFI_DEFAULT_SITE
- UNIFI_SITE_MANAGER_ENABLED
- UNIFI_RATE_LIMIT_REQUESTS
- UNIFI_RATE_LIMIT_PERIOD
- UNIFI_MAX_RETRIES
- UNIFI_RETRY_BACKOFF_FACTOR
- UNIFI_REQUEST_TIMEOUT
- UNIFI_CACHE_ENABLED
- UNIFI_CACHE_TTL
- LOG_LEVEL
- LOG_API_REQUESTS
- UNIFI_AUDIT_LOG_ENABLED
- WEBHOOK_SECRET
- AGNOST_ENABLED
- AGNOST_ORG_ID
- AGNOST_ENDPOINT
- AGNOST_DISABLE_INPUT
- AGNOST_DISABLE_OUTPUT
- DEBUG
- REDIS_HOST
- REDIS_PORT
- REDIS_DB
- REDIS_PASSWORD
Security Notes
The server implements strong security practices including reading API keys from environment variables, HMAC signature verification for webhooks, mandatory confirmation flags for all mutating operations, dry-run mode for previewing changes, and comprehensive audit logging. It uses httpx for API calls with configurable SSL verification. A 'debug_api_request' tool is present but is guarded by a 'DEBUG' environment variable, mitigating accidental exposure in production. There is no evidence of direct 'eval' or similar dangerous patterns used without clear context. The caching layer (Redis) is optional and handles its absence gracefully.
Similar Servers
unifi-network-mcp
Programmatic management and automation of UniFi Network Controllers, enabling external systems (like LLMs or custom scripts) to interact with UniFi devices, clients, and network configurations.
advanced-homeassistant-mcp
A powerful, secure, and extensible Model Context Protocol (MCP) server that enables AI assistants like Claude, GPT, and Cursor to seamlessly interact with Home Assistant. Control your lights, climate, automations, and more through natural language commands.
muster
Muster is a control plane that aggregates and manages Model Context Protocol (MCP) servers, providing AI agents with intelligent tool discovery, dynamic service orchestration, and workflow automation for infrastructure management.
git-netai
Provides a unified, asynchronous Model Context Protocol (MCP) server for managing multi-platform network infrastructure (routers, firewalls, WiFi, monitoring, data centers) via a single AI-accessible API.