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": {
"ai-dinglebear-runifi": {
"command": "npx",
"args": [
"-y",
"@dinglebear/runifi"
],
"env": {
"UNIFI_URL": "unset",
"UNIFI_API_KEY": "<YOUR_VALUE>",
"UNIFI_RMCP_VERSION": "v0.2.3",
"UNIFI_RMCP_REPO": "jmagar/runifi",
"UNIFI_RMCP_RELEASE_BASE_URL": "<VALUE>",
"RUST_LOG": "info",
"UNIFI_SITE": "default",
"UNIFI_LEGACY": "false",
"UNIFI_NOAUTH": "false",
"UNIFI_SITE_ID": "unset",
"UNIFI_MCP_HOME": "~/.unifi-rmcp",
"UNIFI_MCP_HOST": "0.0.0.0",
"UNIFI_MCP_PORT": "40030",
"UNIFI_MCP_TOKEN": "unset",
"UNIFI_MCP_NO_AUTH": "false",
"UNIFI_MCP_AUTH_MODE": "bearer",
"UNIFI_MCP_PUBLIC_URL": "unset",
"UNIFI_SKIP_TLS_VERIFY": "true",
"UNIFI_MCP_ALLOWED_HOSTS": "empty",
"UNIFI_MCP_AUTH_KEY_PATH": "/data/auth-jwt.pem",
"UNIFI_MCP_ALLOWED_ORIGINS": "empty",
"UNIFI_MCP_AUTH_ADMIN_EMAIL": "unset",
"UNIFI_MCP_AUTH_SQLITE_PATH": "/data/auth.db",
"UNIFI_MCP_GOOGLE_CLIENT_ID": "unset",
"UNIFI_MCP_DISABLE_HTTP_AUTH": "false",
"UNIFI_MCP_GOOGLE_CLIENT_SECRET": "unset"
}
}
}
}
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": {
"ai-dinglebear-runifi": {
"command": "npx",
"args": [
"-y",
"@dinglebear/runifi"
],
"env": {
"UNIFI_URL": "unset",
"UNIFI_API_KEY": "<YOUR_VALUE>",
"UNIFI_RMCP_VERSION": "v0.2.3",
"UNIFI_RMCP_REPO": "jmagar/runifi",
"UNIFI_RMCP_RELEASE_BASE_URL": "<VALUE>",
"RUST_LOG": "info",
"UNIFI_SITE": "default",
"UNIFI_LEGACY": "false",
"UNIFI_NOAUTH": "false",
"UNIFI_SITE_ID": "unset",
"UNIFI_MCP_HOME": "~/.unifi-rmcp",
"UNIFI_MCP_HOST": "0.0.0.0",
"UNIFI_MCP_PORT": "40030",
"UNIFI_MCP_TOKEN": "unset",
"UNIFI_MCP_NO_AUTH": "false",
"UNIFI_MCP_AUTH_MODE": "bearer",
"UNIFI_MCP_PUBLIC_URL": "unset",
"UNIFI_SKIP_TLS_VERIFY": "true",
"UNIFI_MCP_ALLOWED_HOSTS": "empty",
"UNIFI_MCP_AUTH_KEY_PATH": "/data/auth-jwt.pem",
"UNIFI_MCP_ALLOWED_ORIGINS": "empty",
"UNIFI_MCP_AUTH_ADMIN_EMAIL": "unset",
"UNIFI_MCP_AUTH_SQLITE_PATH": "/data/auth.db",
"UNIFI_MCP_GOOGLE_CLIENT_ID": "unset",
"UNIFI_MCP_DISABLE_HTTP_AUTH": "false",
"UNIFI_MCP_GOOGLE_CLIENT_SECRET": "unset"
}
}
}
}
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": {
"ai-dinglebear-runifi": {
"command": "npx",
"args": [
"-y",
"@dinglebear/runifi"
],
"env": {
"UNIFI_URL": "unset",
"UNIFI_API_KEY": "<YOUR_VALUE>",
"UNIFI_RMCP_VERSION": "v0.2.3",
"UNIFI_RMCP_REPO": "jmagar/runifi",
"UNIFI_RMCP_RELEASE_BASE_URL": "<VALUE>",
"RUST_LOG": "info",
"UNIFI_SITE": "default",
"UNIFI_LEGACY": "false",
"UNIFI_NOAUTH": "false",
"UNIFI_SITE_ID": "unset",
"UNIFI_MCP_HOME": "~/.unifi-rmcp",
"UNIFI_MCP_HOST": "0.0.0.0",
"UNIFI_MCP_PORT": "40030",
"UNIFI_MCP_TOKEN": "unset",
"UNIFI_MCP_NO_AUTH": "false",
"UNIFI_MCP_AUTH_MODE": "bearer",
"UNIFI_MCP_PUBLIC_URL": "unset",
"UNIFI_SKIP_TLS_VERIFY": "true",
"UNIFI_MCP_ALLOWED_HOSTS": "empty",
"UNIFI_MCP_AUTH_KEY_PATH": "/data/auth-jwt.pem",
"UNIFI_MCP_ALLOWED_ORIGINS": "empty",
"UNIFI_MCP_AUTH_ADMIN_EMAIL": "unset",
"UNIFI_MCP_AUTH_SQLITE_PATH": "/data/auth.db",
"UNIFI_MCP_GOOGLE_CLIENT_ID": "unset",
"UNIFI_MCP_DISABLE_HTTP_AUTH": "false",
"UNIFI_MCP_GOOGLE_CLIENT_SECRET": "unset"
}
}
}
}
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": {
"ai-dinglebear-runifi": {
"command": "npx",
"args": [
"-y",
"@dinglebear/runifi"
],
"env": {
"UNIFI_URL": "unset",
"UNIFI_API_KEY": "<YOUR_VALUE>",
"UNIFI_RMCP_VERSION": "v0.2.3",
"UNIFI_RMCP_REPO": "jmagar/runifi",
"UNIFI_RMCP_RELEASE_BASE_URL": "<VALUE>",
"RUST_LOG": "info",
"UNIFI_SITE": "default",
"UNIFI_LEGACY": "false",
"UNIFI_NOAUTH": "false",
"UNIFI_SITE_ID": "unset",
"UNIFI_MCP_HOME": "~/.unifi-rmcp",
"UNIFI_MCP_HOST": "0.0.0.0",
"UNIFI_MCP_PORT": "40030",
"UNIFI_MCP_TOKEN": "unset",
"UNIFI_MCP_NO_AUTH": "false",
"UNIFI_MCP_AUTH_MODE": "bearer",
"UNIFI_MCP_PUBLIC_URL": "unset",
"UNIFI_SKIP_TLS_VERIFY": "true",
"UNIFI_MCP_ALLOWED_HOSTS": "empty",
"UNIFI_MCP_AUTH_KEY_PATH": "/data/auth-jwt.pem",
"UNIFI_MCP_ALLOWED_ORIGINS": "empty",
"UNIFI_MCP_AUTH_ADMIN_EMAIL": "unset",
"UNIFI_MCP_AUTH_SQLITE_PATH": "/data/auth.db",
"UNIFI_MCP_GOOGLE_CLIENT_ID": "unset",
"UNIFI_MCP_DISABLE_HTTP_AUTH": "false",
"UNIFI_MCP_GOOGLE_CLIENT_SECRET": "unset"
}
}
}
}
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": {
"ai-dinglebear-runifi": {
"command": "npx",
"args": [
"-y",
"@dinglebear/runifi"
],
"env": {
"UNIFI_URL": "unset",
"UNIFI_API_KEY": "<YOUR_VALUE>",
"UNIFI_RMCP_VERSION": "v0.2.3",
"UNIFI_RMCP_REPO": "jmagar/runifi",
"UNIFI_RMCP_RELEASE_BASE_URL": "<VALUE>",
"RUST_LOG": "info",
"UNIFI_SITE": "default",
"UNIFI_LEGACY": "false",
"UNIFI_NOAUTH": "false",
"UNIFI_SITE_ID": "unset",
"UNIFI_MCP_HOME": "~/.unifi-rmcp",
"UNIFI_MCP_HOST": "0.0.0.0",
"UNIFI_MCP_PORT": "40030",
"UNIFI_MCP_TOKEN": "unset",
"UNIFI_MCP_NO_AUTH": "false",
"UNIFI_MCP_AUTH_MODE": "bearer",
"UNIFI_MCP_PUBLIC_URL": "unset",
"UNIFI_SKIP_TLS_VERIFY": "true",
"UNIFI_MCP_ALLOWED_HOSTS": "empty",
"UNIFI_MCP_AUTH_KEY_PATH": "/data/auth-jwt.pem",
"UNIFI_MCP_ALLOWED_ORIGINS": "empty",
"UNIFI_MCP_AUTH_ADMIN_EMAIL": "unset",
"UNIFI_MCP_AUTH_SQLITE_PATH": "/data/auth.db",
"UNIFI_MCP_GOOGLE_CLIENT_ID": "unset",
"UNIFI_MCP_DISABLE_HTTP_AUTH": "false",
"UNIFI_MCP_GOOGLE_CLIENT_SECRET": "unset"
}
}
}
}
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": {
"ai-dinglebear-runifi": {
"command": "npx",
"args": [
"-y",
"@dinglebear/runifi"
],
"env": {
"UNIFI_URL": "unset",
"UNIFI_API_KEY": "<YOUR_VALUE>",
"UNIFI_RMCP_VERSION": "v0.2.3",
"UNIFI_RMCP_REPO": "jmagar/runifi",
"UNIFI_RMCP_RELEASE_BASE_URL": "<VALUE>",
"RUST_LOG": "info",
"UNIFI_SITE": "default",
"UNIFI_LEGACY": "false",
"UNIFI_NOAUTH": "false",
"UNIFI_SITE_ID": "unset",
"UNIFI_MCP_HOME": "~/.unifi-rmcp",
"UNIFI_MCP_HOST": "0.0.0.0",
"UNIFI_MCP_PORT": "40030",
"UNIFI_MCP_TOKEN": "unset",
"UNIFI_MCP_NO_AUTH": "false",
"UNIFI_MCP_AUTH_MODE": "bearer",
"UNIFI_MCP_PUBLIC_URL": "unset",
"UNIFI_SKIP_TLS_VERIFY": "true",
"UNIFI_MCP_ALLOWED_HOSTS": "empty",
"UNIFI_MCP_AUTH_KEY_PATH": "/data/auth-jwt.pem",
"UNIFI_MCP_ALLOWED_ORIGINS": "empty",
"UNIFI_MCP_AUTH_ADMIN_EMAIL": "unset",
"UNIFI_MCP_AUTH_SQLITE_PATH": "/data/auth.db",
"UNIFI_MCP_GOOGLE_CLIENT_ID": "unset",
"UNIFI_MCP_DISABLE_HTTP_AUTH": "false",
"UNIFI_MCP_GOOGLE_CLIENT_SECRET": "unset"
}
}
}
}
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_URL | Yes | Controller base URL, e.g. https://unifi.local. Default: unset |
| UNIFI_API_KEY secret | Yes | API key for the X-API-KEY header. Default: unset |
| UNIFI_RMCP_VERSION | No | Optional GitHub release tag override for the downloaded UniFi RMCP binary. |
| UNIFI_RMCP_REPO | No | Optional GitHub owner/repo override for release asset downloads. Default: jmagar/runifi |
| UNIFI_RMCP_RELEASE_BASE_URL | No | Optional release download base URL override. |
| RUST_LOG | No | Tracing filter for UniFi RMCP logs. Default: info |
| UNIFI_SITE | No | UniFi site name. Default: default |
| UNIFI_LEGACY | No | Legacy controller mode without /proxy/network prefix. Default: false |
| UNIFI_NOAUTH | No | Trust an upstream gateway to enforce auth. Default: false |
| UNIFI_SITE_ID | No | Official API site UUID used by live tests and explicit generated calls. Default: unset |
| UNIFI_MCP_HOME | No | Appdata dir override; read by setup only. Default: ~/.unifi-rmcp |
| UNIFI_MCP_HOST | No | HTTP bind host. Default: 0.0.0.0 |
| UNIFI_MCP_PORT | No | HTTP bind port. Default: 40030 |
| UNIFI_MCP_TOKEN | No | Static bearer token for HTTP MCP. Default: unset |
| UNIFI_MCP_NO_AUTH | No | Disable auth only for loopback development. Default: false |
| UNIFI_MCP_AUTH_MODE | No | bearer or oauth. Default: bearer |
| UNIFI_MCP_PUBLIC_URL | No | Public URL for OAuth metadata. Default: unset |
| UNIFI_SKIP_TLS_VERIFY | No | Skip TLS certificate verification for self-signed controllers. Default: true |
| UNIFI_MCP_ALLOWED_HOSTS | No | Comma-separated Host header allowlist. Default: empty |
| UNIFI_MCP_AUTH_KEY_PATH | No | OAuth JWT signing key path. Default: /data/auth-jwt.pem |
| UNIFI_MCP_ALLOWED_ORIGINS | No | Comma-separated CORS Origin allowlist. Default: empty |
| UNIFI_MCP_AUTH_ADMIN_EMAIL | No | Admin email for OAuth bootstrap. Default: unset |
| UNIFI_MCP_AUTH_SQLITE_PATH | No | OAuth state database path. Default: /data/auth.db |
| UNIFI_MCP_GOOGLE_CLIENT_ID | No | Google OAuth client ID. Default: unset |
| UNIFI_MCP_DISABLE_HTTP_AUTH | No | Compatibility alias for UNIFI_MCP_NO_AUTH. Default: false |
| UNIFI_MCP_GOOGLE_CLIENT_SECRET | No | Google OAuth client secret. Default: unset |