Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-us-all-unifi": {
"command": "npx",
"args": [
"-y",
"@us-all/unifi-mcp"
],
"env": {
"UNIFI_API_KEY": "<YOUR_VALUE>",
"UNIFI_API_URL": "https://api.ui.com/v1",
"UNIFI_API_KEY_OWNER": "<YOUR_VALUE>",
"UNIFI_TOOLS": "<VALUE>",
"UNIFI_DISABLE": "<VALUE>",
"UNIFI_LOCAL_URL": "<VALUE>",
"UNIFI_LOCAL_USER": "<VALUE>",
"UNIFI_LOCAL_PASS": "<YOUR_VALUE>",
"UNIFI_LOCAL_SITE": "default",
"UNIFI_LOCAL_INSECURE": "<VALUE>",
"MCP_HTTP_HOST": "127.0.0.1",
"MCP_HTTP_PORT": "3000",
"MCP_TRANSPORT": "stdio",
"MCP_HTTP_TOKEN": "<VALUE>",
"MCP_HTTP_SKIP_AUTH": "false"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-us-all-unifi": {
"command": "npx",
"args": [
"-y",
"@us-all/unifi-mcp"
],
"env": {
"UNIFI_API_KEY": "<YOUR_VALUE>",
"UNIFI_API_URL": "https://api.ui.com/v1",
"UNIFI_API_KEY_OWNER": "<YOUR_VALUE>",
"UNIFI_TOOLS": "<VALUE>",
"UNIFI_DISABLE": "<VALUE>",
"UNIFI_LOCAL_URL": "<VALUE>",
"UNIFI_LOCAL_USER": "<VALUE>",
"UNIFI_LOCAL_PASS": "<YOUR_VALUE>",
"UNIFI_LOCAL_SITE": "default",
"UNIFI_LOCAL_INSECURE": "<VALUE>",
"MCP_HTTP_HOST": "127.0.0.1",
"MCP_HTTP_PORT": "3000",
"MCP_TRANSPORT": "stdio",
"MCP_HTTP_TOKEN": "<VALUE>",
"MCP_HTTP_SKIP_AUTH": "false"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-us-all-unifi": {
"command": "npx",
"args": [
"-y",
"@us-all/unifi-mcp"
],
"env": {
"UNIFI_API_KEY": "<YOUR_VALUE>",
"UNIFI_API_URL": "https://api.ui.com/v1",
"UNIFI_API_KEY_OWNER": "<YOUR_VALUE>",
"UNIFI_TOOLS": "<VALUE>",
"UNIFI_DISABLE": "<VALUE>",
"UNIFI_LOCAL_URL": "<VALUE>",
"UNIFI_LOCAL_USER": "<VALUE>",
"UNIFI_LOCAL_PASS": "<YOUR_VALUE>",
"UNIFI_LOCAL_SITE": "default",
"UNIFI_LOCAL_INSECURE": "<VALUE>",
"MCP_HTTP_HOST": "127.0.0.1",
"MCP_HTTP_PORT": "3000",
"MCP_TRANSPORT": "stdio",
"MCP_HTTP_TOKEN": "<VALUE>",
"MCP_HTTP_SKIP_AUTH": "false"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-us-all-unifi": {
"command": "npx",
"args": [
"-y",
"@us-all/unifi-mcp"
],
"env": {
"UNIFI_API_KEY": "<YOUR_VALUE>",
"UNIFI_API_URL": "https://api.ui.com/v1",
"UNIFI_API_KEY_OWNER": "<YOUR_VALUE>",
"UNIFI_TOOLS": "<VALUE>",
"UNIFI_DISABLE": "<VALUE>",
"UNIFI_LOCAL_URL": "<VALUE>",
"UNIFI_LOCAL_USER": "<VALUE>",
"UNIFI_LOCAL_PASS": "<YOUR_VALUE>",
"UNIFI_LOCAL_SITE": "default",
"UNIFI_LOCAL_INSECURE": "<VALUE>",
"MCP_HTTP_HOST": "127.0.0.1",
"MCP_HTTP_PORT": "3000",
"MCP_TRANSPORT": "stdio",
"MCP_HTTP_TOKEN": "<VALUE>",
"MCP_HTTP_SKIP_AUTH": "false"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-us-all-unifi": {
"command": "npx",
"args": [
"-y",
"@us-all/unifi-mcp"
],
"env": {
"UNIFI_API_KEY": "<YOUR_VALUE>",
"UNIFI_API_URL": "https://api.ui.com/v1",
"UNIFI_API_KEY_OWNER": "<YOUR_VALUE>",
"UNIFI_TOOLS": "<VALUE>",
"UNIFI_DISABLE": "<VALUE>",
"UNIFI_LOCAL_URL": "<VALUE>",
"UNIFI_LOCAL_USER": "<VALUE>",
"UNIFI_LOCAL_PASS": "<YOUR_VALUE>",
"UNIFI_LOCAL_SITE": "default",
"UNIFI_LOCAL_INSECURE": "<VALUE>",
"MCP_HTTP_HOST": "127.0.0.1",
"MCP_HTTP_PORT": "3000",
"MCP_TRANSPORT": "stdio",
"MCP_HTTP_TOKEN": "<VALUE>",
"MCP_HTTP_SKIP_AUTH": "false"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-us-all-unifi": {
"command": "npx",
"args": [
"-y",
"@us-all/unifi-mcp"
],
"env": {
"UNIFI_API_KEY": "<YOUR_VALUE>",
"UNIFI_API_URL": "https://api.ui.com/v1",
"UNIFI_API_KEY_OWNER": "<YOUR_VALUE>",
"UNIFI_TOOLS": "<VALUE>",
"UNIFI_DISABLE": "<VALUE>",
"UNIFI_LOCAL_URL": "<VALUE>",
"UNIFI_LOCAL_USER": "<VALUE>",
"UNIFI_LOCAL_PASS": "<YOUR_VALUE>",
"UNIFI_LOCAL_SITE": "default",
"UNIFI_LOCAL_INSECURE": "<VALUE>",
"MCP_HTTP_HOST": "127.0.0.1",
"MCP_HTTP_PORT": "3000",
"MCP_TRANSPORT": "stdio",
"MCP_HTTP_TOKEN": "<VALUE>",
"MCP_HTTP_SKIP_AUTH": "false"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| UNIFI_API_KEY secret | Yes | API key from unifi.ui.com (any admin role) |
| UNIFI_API_URL | No | API base URL Default: https://api.ui.com/v1 |
| UNIFI_API_KEY_OWNER secret | No | Owner-role API key — enables 35 Cloud Connector tools. If your key has owner role, set this to the same value. |
| UNIFI_TOOLS | No | Comma-sep allowlist of categories. |
| UNIFI_DISABLE | No | Comma-sep denylist. Ignored when UNIFI_TOOLS is set. |
| UNIFI_LOCAL_URL | No | Local controller URL (e.g. https://10.10.1.1). Enables 2 local-only tools (get-port-errors, list-port-flap-summary) that surface per-port errors + SFP DDM the Cloud API does not expose. Requires LAN reachability. |
| UNIFI_LOCAL_USER | No | Controller local account username (required when UNIFI_LOCAL_URL set). Viewer/Limited-Admin role is sufficient. |
| UNIFI_LOCAL_PASS secret | No | Controller local account password (required when UNIFI_LOCAL_URL set). |
| UNIFI_LOCAL_SITE | No | Site slug for legacy /api/s/{site}/* (default: default). Default: default |
| UNIFI_LOCAL_INSECURE | No | Set to 'true' to accept self-signed cert from the local controller (typical for UDM Pro). |
| MCP_HTTP_HOST | No | HTTP bind host Default: 127.0.0.1 |
| MCP_HTTP_PORT | No | HTTP listen port Default: 3000 |
| MCP_TRANSPORT | No | http to enable Streamable HTTP transport Default: stdio |
| MCP_HTTP_TOKEN | No | Bearer token. Required when MCP_TRANSPORT=http |
| MCP_HTTP_SKIP_AUTH | No | Skip Bearer auth Default: false |