Back to Home
enuno icon

unifi-mcp-server

Verified Safe

by 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

Run Command
docker-compose up -d

Environment 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

Stats

Interest Score41
Security Score9
Cost ClassLow
Avg Tokens1
Stars17
Forks2
Last Update2026-01-08

Tags

UniFiNetwork ManagementAPIAI AgentsMCPAutomationFastMCP