Skip to main content
Claude Desktop is the desktop application for Anthropic’s Claude AI, and it supports MCP servers natively. Once you add the UniFi MCP Server to Claude Desktop’s configuration file, Claude gains direct access to your UniFi network—so you can ask questions and issue commands in plain language without leaving your conversation.

Prerequisites

  • Claude Desktop installed on macOS or Windows
  • A UniFi API key (from Settings → Control Plane → Integrations in the UniFi Site Manager)
  • One of the following: the unifi-mcp-server PyPI package installed, uv installed, or Docker

Config file location

Claude Desktop reads its MCP server list from a JSON file on your machine:
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
If the file does not exist yet, create it as an empty JSON object ({}).

Setup

1

Install the package

Choose the installation method that matches your setup.
Install unifi-mcp-server from PyPI using pip or uv:
After installation, the unifi-mcp-server command is available in your PATH.
2

Edit the config file

Open your Claude Desktop config file and add the mcpServers block. Use the tab below that matches your installation method.
For cloud API access instead of a local gateway, replace the env block with:
Replace your-api-key-here with your actual UniFi API key and 192.168.2.1 with your gateway’s IP address.
3

Restart Claude Desktop

Save the config file and fully quit Claude Desktop—not just close the window. On macOS, right-click the Dock icon and choose Quit. On Windows, right-click the taskbar icon and choose Exit.Reopen Claude Desktop. The UniFi MCP Server starts automatically in the background.
Claude Desktop only reads the config file at startup. Any time you change the config, you must restart the application for changes to take effect.
4

Test with a sample prompt

Start a new conversation in Claude Desktop and try one of these prompts:
  • “List my UniFi devices”
  • “Show connected clients on site default”
  • “What is the current status of my UniFi access points?”
Claude will invoke the appropriate MCP tool and return results from your network. If you see an error, double-check that the API key and gateway IP in your config file are correct.

Environment variables reference

The local gateway API (UNIFI_API_TYPE=local) gives you full access to device management, network configuration, firewall rules, and more. Cloud API modes are limited to aggregate statistics and monitoring.