Koskamo

The Real UniFi MCP

An unofficial, community-built MCP server providing 169 tools for read/write access to UniFi Site Manager and Network cloud APIs. It features ergonomic hand-wrappers, auto-generated tools, lazy ID discovery, and an optional write-confirm guard to prevent accidental destructive actions.

Package and access

Local package with source-attributed installation metadata. Koskamo does not execute packages during review.

The Real UniFi MCP logo, by mguttmannCommunity listingLocal stdioSource reviewed; not executedPublished by mguttmann
You need:UniFi Site Manager API key with Network scopeUniFi Console with firmware ≥ 5.0.3 (required by the Network API)
Vendor documentation

What you can do with it

  • List consoles and inspect devices and clients
  • Manage networks and WiFi settings
  • Configure firewall policies
  • Execute raw API requests via escape hatch

Source and maintenance

Community listingRegistry 0.4.0
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

the-real-unifi-mcp 0.4.0

npmnpx
the-real-unifi-mcp package definition
{
  "version": "0.4.0",
  "transport": "stdio",
  "identifier": "the-real-unifi-mcp",
  "runtimeHint": "npx",
  "registryType": "npm",
  "environmentVariables": [
    {
      "name": "UNIFI_API_KEY",
      "format": "string",
      "isRequired": true,
      "description": "UniFi Site Manager API key with Network scope (unifi.ui.com, Settings > API). It controls your whole network: treat it like an admin password."
    },
    {
      "name": "UNIFI_CONFIRM_WRITES",
      "format": "boolean",
      "default": "true",
      "description": "Write confirmation: destructive tools return a preview and run only when called again with confirm \"YES\". Only false, 0, no or off turn it off."
    },
    {
      "name": "UNIFI_API_BASE",
      "format": "string",
      "default": "https://api.ui.com",
      "description": "API base URL; this host receives the API key. https origin only (http only for loopback test stubs). Keep the default."
    },
    {
      "name": "UNIFI_TIMEOUT_MS",
      "format": "number",
      "default": "30000",
      "description": "Per-request timeout in milliseconds, covering response headers and body."
    },
    {
      "name": "UNIFI_LOG_LEVEL",
      "format": "string",
      "choices": [
        "debug",
        "info",
        "warn",
        "error"
      ],
      "default": "info",
      "description": "Log level on stderr: debug, info, warn or error."
    },
    {
      "name": "UNIFI_CONSOLE_ID",
      "format": "string",
      "description": "Pins the UniFi console instead of discovering it (needed when the account has several consoles)."
    },
    {
      "name": "UNIFI_NETWORK_SITE_ID",
      "format": "string",
      "description": "Pins the Network site instead of discovering it."
    },
    {
      "name": "UNIFI_SITE_MANAGER_SITE_ID",
      "format": "string",
      "description": "Pins the Site Manager site instead of discovering it."
    },
    {
      "name": "UNIFI_READ_ONLY",
      "format": "boolean",
      "default": "false",
      "description": "Read-only mode: every write tool returns an error and sends no request; reads still work. Off by default."
    },
    {
      "name": "UNIFI_REDACT_SECRETS",
      "format": "boolean",
      "default": "false",
      "description": "Masks passwords, WiFi passphrases, pre-shared keys and other secret fields in every tool result with (redacted); write tools refuse a body that contains that placeholder. Off by default."
    },
    {
      "name": "UNIFI_MAX_RESULT_BYTES",
      "format": "string",
      "default": "100000",
      "description": "Cuts tool results longer than this many bytes and marks them as truncated. Unset or empty: 100000. 0, off or none: no cap."
    }
  ]
}

Tools

Reported by the attributed source; not independently observed by Koskamo.

No tool definitions available.

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "mcpServers": {
    "the-real-unifi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "the-real-unifi-mcp@0.4.0"
      ],
      "env": {
        "UNIFI_API_KEY": "<YOUR_UNIFI_API_KEY>",
        "UNIFI_CONFIRM_WRITES": "<YOUR_UNIFI_CONFIRM_WRITES>",
        "UNIFI_API_BASE": "<YOUR_UNIFI_API_BASE>",
        "UNIFI_TIMEOUT_MS": "<YOUR_UNIFI_TIMEOUT_MS>",
        "UNIFI_LOG_LEVEL": "<YOUR_UNIFI_LOG_LEVEL>",
        "UNIFI_CONSOLE_ID": "<YOUR_UNIFI_CONSOLE_ID>",
        "UNIFI_NETWORK_SITE_ID": "<YOUR_UNIFI_NETWORK_SITE_ID>",
        "UNIFI_SITE_MANAGER_SITE_ID": "<YOUR_UNIFI_SITE_MANAGER_SITE_ID>",
        "UNIFI_READ_ONLY": "<YOUR_UNIFI_READ_ONLY>",
        "UNIFI_REDACT_SECRETS": "<YOUR_UNIFI_REDACT_SECRETS>",
        "UNIFI_MAX_RESULT_BYTES": "<YOUR_UNIFI_MAX_RESULT_BYTES>"
      }
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "the-real-unifi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "the-real-unifi-mcp@0.4.0"
      ],
      "env": {
        "UNIFI_API_KEY": "<YOUR_UNIFI_API_KEY>",
        "UNIFI_CONFIRM_WRITES": "<YOUR_UNIFI_CONFIRM_WRITES>",
        "UNIFI_API_BASE": "<YOUR_UNIFI_API_BASE>",
        "UNIFI_TIMEOUT_MS": "<YOUR_UNIFI_TIMEOUT_MS>",
        "UNIFI_LOG_LEVEL": "<YOUR_UNIFI_LOG_LEVEL>",
        "UNIFI_CONSOLE_ID": "<YOUR_UNIFI_CONSOLE_ID>",
        "UNIFI_NETWORK_SITE_ID": "<YOUR_UNIFI_NETWORK_SITE_ID>",
        "UNIFI_SITE_MANAGER_SITE_ID": "<YOUR_UNIFI_SITE_MANAGER_SITE_ID>",
        "UNIFI_READ_ONLY": "<YOUR_UNIFI_READ_ONLY>",
        "UNIFI_REDACT_SECRETS": "<YOUR_UNIFI_REDACT_SECRETS>",
        "UNIFI_MAX_RESULT_BYTES": "<YOUR_UNIFI_MAX_RESULT_BYTES>"
      }
    }
  }
}

VS Code

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "servers": {
    "the-real-unifi-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "the-real-unifi-mcp@0.4.0"
      ],
      "env": {
        "UNIFI_API_KEY": "<YOUR_UNIFI_API_KEY>",
        "UNIFI_CONFIRM_WRITES": "<YOUR_UNIFI_CONFIRM_WRITES>",
        "UNIFI_API_BASE": "<YOUR_UNIFI_API_BASE>",
        "UNIFI_TIMEOUT_MS": "<YOUR_UNIFI_TIMEOUT_MS>",
        "UNIFI_LOG_LEVEL": "<YOUR_UNIFI_LOG_LEVEL>",
        "UNIFI_CONSOLE_ID": "<YOUR_UNIFI_CONSOLE_ID>",
        "UNIFI_NETWORK_SITE_ID": "<YOUR_UNIFI_NETWORK_SITE_ID>",
        "UNIFI_SITE_MANAGER_SITE_ID": "<YOUR_UNIFI_SITE_MANAGER_SITE_ID>",
        "UNIFI_READ_ONLY": "<YOUR_UNIFI_READ_ONLY>",
        "UNIFI_REDACT_SECRETS": "<YOUR_UNIFI_REDACT_SECRETS>",
        "UNIFI_MAX_RESULT_BYTES": "<YOUR_UNIFI_MAX_RESULT_BYTES>"
      }
    }
  }
}

Claude Desktop

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "mcpServers": {
    "the-real-unifi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "the-real-unifi-mcp@0.4.0"
      ],
      "env": {
        "UNIFI_API_KEY": "<YOUR_UNIFI_API_KEY>",
        "UNIFI_CONFIRM_WRITES": "<YOUR_UNIFI_CONFIRM_WRITES>",
        "UNIFI_API_BASE": "<YOUR_UNIFI_API_BASE>",
        "UNIFI_TIMEOUT_MS": "<YOUR_UNIFI_TIMEOUT_MS>",
        "UNIFI_LOG_LEVEL": "<YOUR_UNIFI_LOG_LEVEL>",
        "UNIFI_CONSOLE_ID": "<YOUR_UNIFI_CONSOLE_ID>",
        "UNIFI_NETWORK_SITE_ID": "<YOUR_UNIFI_NETWORK_SITE_ID>",
        "UNIFI_SITE_MANAGER_SITE_ID": "<YOUR_UNIFI_SITE_MANAGER_SITE_ID>",
        "UNIFI_READ_ONLY": "<YOUR_UNIFI_READ_ONLY>",
        "UNIFI_REDACT_SECRETS": "<YOUR_UNIFI_REDACT_SECRETS>",
        "UNIFI_MAX_RESULT_BYTES": "<YOUR_UNIFI_MAX_RESULT_BYTES>"
      }
    }
  }
}

Let your agent find its tools

Find servers like The Real UniFi MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.