unifi-network-mcp

unifi-network-mcp

3.4

If you are the rightful owner of unifi-network-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A self-hosted Model Context Protocol (MCP) server for UniFi Network Controller, providing programmable tools for network management.

The UniFi Network MCP Server is a self-hosted solution that transforms your UniFi Network Controller into a comprehensive set of programmable tools. It leverages the Model Context Protocol (MCP) to expose every capability of the UniFi controller through standard MCP tools prefixed with 'unifi_'. This allows any LLM or agent that supports MCP, such as Claude Desktop, mcp-cli, or LangChain, to query, analyze, and modify your network, provided explicit confirmation is given. The server supports operations like firewall management, traffic routing, port forwarding, QoS, VPN, WLANs, and more. It ensures that all mutating actions require a 'confirm=true' parameter to prevent accidental changes. The server can be launched via a console script and is compatible with Python 3.10 or higher, packaged with pyproject.toml for easy distribution via PyPI.

Features

  • Full catalog of UniFi controller operations including firewall, traffic routes, port forwards, QoS, VPN, WLANs, stats, devices, and clients.
  • All mutating tools require 'confirm=true' to prevent accidental network changes.
  • Supports both stdio (FastMCP) and an SSE HTTP endpoint (default: 3000).
  • One-liner launch via the console-script 'mcp-server-unifi-network'.
  • Packaged for Python ≥ 3.10 with pyproject.toml, ready for PyPI.