MCP Server UniFi

by zcking

10 stars
314 downloads
Not rated
GitHub

About

MCP Server UniFi is a server that wraps the UniFi Network API, enabling natural language interactions with your UniFi network devices through AI agents like Goose and Claude. It allows querying sites and devices on a local UniFi network using the Management Control Protocol…

Details

Author
zcking
GitHub stars
10
Downloads
314
Categories
Other

- Query UniFi sites and devices using natural language
- Works with both Goose AI and Claude Desktop
- Local server connects directly to your UniFi Network application
- Secure API key‑based authentication

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name MCP Server UniFi
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Obtain a UniFi API key from your UniFi console (Settings » Control Plane » Integrations). Clone the repository, create a virtual environment with uv, install dependencies via uv sync, and set the UNIFI_API_KEY environment variable. Start the development server with uv run mcp dev main.py, then integrate with Goose AI (via custom extension configuration) or Claude Desktop (by editing claude_desktop_config.json).

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mcp server unifi": {
            "mcp-server-unifi": {
                "command": "uv",
                "args": [
                    "venv"
                ]
            }
        }
    }
}

McpServers

{
    "mcp-server-unifi": {
        "command": "uv",
        "args": [
            "venv"
        ]
    }
}
# MCP Server UniFi A server implementation for managing and controlling UniFi network devices through MCP (Management Control Protocol). This server enables natural language interactions with your UniFi network using AI agents like Goose and Claude by wrapping the UniFi Network API. ## Features - Query UniFi sites and devices using natural language through AI agents - Local server implementation that connects to your UniFi Network application - Compatible with both Goose AI and Claude Desktop - Secure API key-based authentication ## Prerequisites - Python 3.8 or higher - `uv` package manager - UniFi Network application - UniFi API key (obtained from UniFi console) ## Setup 1. Create an API key: - Go to your UniFi console at https://unifi.ui.com - Navigate to Settings » Control Plane » Integrations - Click "Create API Key" 2. Clone and set up the repository: ```bash git clone https://github.com/zcking/mcp-server-unifi cd mcp-server-unifi uv venv source .venv/bin/activate # On Unix/macOS # or .venv\Scripts\activate # On Windows ``` 3. Install dependencies: ```bash uv sync ``` 4. Configure environment variables: ```bash export UNIFI_API_KEY="your_api_key_here" ``` ## Running the Server Start the MCP development server: ```bash uv run mcp dev main.py ``` The MCP Inspector will be available at http://localhost:5173 for testing and debugging. ## AI Agent Integration ### Goose AI Setup 1. Open Goose and go to Settings » Extensions » Add custom extension 2. Configure the extension: - ID: unifi - Name: unifi - Description: Get information about your UniFi network - Command: `/Users/username/.local/bin/uv --directory /path/to/mcp-server-unifi run main.py` - Environment Variables: Set UNIFI_API_KEY to your API key ### Claude Desktop Setup 1. Open Claude and go to Settings » Developer » Edit Config 2. Add to your `claude_desktop_config.json`: ```json { "mcpServers": { "unifi": { "command": "/Users/username/.local/bin/uv", "args": [ "--directory", "/path/to/mcp-server-unifi", "run", "main.py" ] } } } ```
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.