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-serverPyPI package installed,uvinstalled, 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
{}).
Setup
1
Install the package
Choose the installation method that matches your setup.
- PyPI package
- uvx
- Docker
Install After installation, the
unifi-mcp-server from PyPI using pip or uv:unifi-mcp-server command is available in your PATH.2
Edit the config file
Open your Claude Desktop config file and add the For cloud API access instead of a local gateway, replace the Replace
mcpServers block. Use the tab below that matches your installation method.- PyPI package
- uvx
- Docker
env block with: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?”