56
/ 100
1 month ago
glama

UniFi MCP Server

Control your UniFi network via AI with a lightweight 2-tool MCP server that supports both cloud and local UniFi controllers.

Is this your MCP?

Claim it to get a verified publisher badge, a free copy of our full audit findings, and direct contact for any high-priority issues we find.

Install from

M8ven verifies MCPs across every public registry — install directly from whichever one you prefer.

// key findings
🚨
Known vulnerabilities in dependencies: 2 critical, 17 high
Affects packages this MCP installs at runtime. Upgrade or remove the affected dependency.
🔐
You'll be asked for 3 credentials: UNIFI_API_KEY, UNIFI_CSRF_TOKEN, UNIFI_PASSWORD
These are read from process.env at runtime. Make sure you trust where they’ll be sent.
// known CVEs in dependencies2 critical17 high13 low

Disclosed vulnerabilities in this server's declared npm dependencies (via OSV). Whether each is reachable depends on the installed versions.

criticalvitest@3.0.0GHSA-5xrq-8626-4rwp

When Vitest UI server is listening, arbitrary file can be read and executed

criticalvitest@3.0.0GHSA-9crc-q9x8-hgqq

Vitest allows Remote Code Execution when accessing a malicious website while Vitest API server is listening

high@modelcontextprotocol/sdk@1.0.0GHSA-8r9q-7v3j-jr4g

Anthropic's MCP TypeScript SDK has a ReDoS vulnerability

high@modelcontextprotocol/sdk@1.0.0GHSA-w48q-cv73-mx4w

Model Context Protocol (MCP) TypeScript SDK does not enable DNS rebinding protection by default

highaxios@1.7.0GHSA-35jp-ww65-95wh

axios Vulnerable to Full Man-in-the-Middle via Prototype Pollution Gadget in `config.proxy`

Depend on this server? Get alerted when its CVEs change.Watch this server free →
// required environment variables
This server reads these from process.env. You'll be asked to provide them before it can run.
🔐 secretUNIFI_API_KEYUNIFI_API_TYPE=cloud-ea =your-key-here npx @bakhshb/unifi-mcp
configUNIFI_API_TYPEcloud-ea UNIFI_API_KEY=your-key-here npx @bakhshb/unifi-mcp
🔐 secretUNIFI_CSRF_TOKENNote: For local mode, you can also use session cookies (UNIFI_SESSION_COOKIE + ) instead of API key, but API key is simpler.
configUNIFI_LOCAL_HOST192.168.1.1
configUNIFI_LOCAL_VERIFY_SSL"": "false"
🔐 secretUNIFI_PASSWORDYes - UniFi password (required if not using API key)
configUNIFI_SESSION_COOKIENote: For local mode, you can also use session cookies ( + UNIFI_CSRF_TOKEN) instead of API key, but API key is simpler.
configUNIFI_SITE_IDNo default Your UniFi site identifier
configUNIFI_TIMEOUTNo 30000 Request timeout in milliseconds
configUNIFI_URLYes - Your UniFi controller URL (e.g., https://192.168.1.1 or https://api.ui.com for cloud)
configUNIFI_USERNAMEYes - UniFi username (required if not using API key)
// full audit trail
The full breakdown of what we checked, the deductions that landed, the network hosts, the dependency advisories, and concrete fix guidance is available to verified publishers.
// improvement guidance — verified publishers only
We have 3 concrete improvements we can share with the publisher of this MCP. Each comes with specific guidance to raise the trust score.
// embed badge in your README
[![M8ven Score](https://m8ven.ai/badge/mcp/bakhshb-unifi-mcp-openapi-14n5zn)](https://m8ven.ai/mcp/bakhshb-unifi-mcp-openapi-14n5zn)
commit: 439549c8471e333e23811770fa8dae9a570fde91
code hash: 4c6bdaa7d3f5ed23f02e8c7908a1412b1ee7ef126e9207c1e3be86898861f6a4
verified: 6/24/2026, 10:14:02 AM
view raw JSON →