UniFi MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@UniFi MCP Servershow me all connected devices on my network"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
UniFi MCP Server
MCP server for UniFi Network Controller - manage your network with AI assistants using natural language.
Features
25 read-only tools across 4 categories:
Category | Tools | Examples |
Discovery | 8 | List devices, clients, networks, WLANs |
Security | 7 | Firewall rules, IPS status, port forwards |
Statistics | 7 | Network stats, top clients, DPI, alerts |
Migration | 3 | DHCP status, VLAN connectivity, config export |
Related MCP server: UniFi Network MCP Server
Quick Start
1. Install
# Using uvx (recommended)
uvx --from git+https://github.com/MidwestMountaineer/Unifi-MCP-Server.git unifi-mcp-server
# Or pip
pip install git+https://github.com/MidwestMountaineer/Unifi-MCP-Server.git2. Get API Key
Log into your Dream Machine
Settings → System → Advanced → API
Create new API key with Read Only permissions
Copy the key (shown only once)
3. Configure
Add to your MCP client config (e.g., .kiro/settings/mcp.json):
{
"mcpServers": {
"unifi": {
"command": "uvx",
"args": ["--from", "git+https://github.com/MidwestMountaineer/Unifi-MCP-Server.git", "unifi-mcp-server"],
"env": {
"UNIFI_HOST": "192.168.1.1",
"UNIFI_API_KEY": "your-api-key-here",
"UNIFI_VERIFY_SSL": "false"
}
}
}
}4. Test
Ask your AI assistant: "List all my UniFi devices"
Kiro Power
This repo is also a Kiro Power with guided workflows. Install via Kiro's "Add power from GitHub":
https://github.com/MidwestMountaineer/Unifi-MCP-ServerSee POWER.md for workflow documentation.
Configuration
Variable | Description | Default |
| Controller IP | (required) |
| API key | (required for UniFi OS) |
| Username | (for traditional controllers) |
| Password | (for traditional controllers) |
| Controller port |
|
| Site name |
|
| Verify SSL |
|
| Log verbosity |
|
Available Tools
Discovery
unifi_list_devices/unifi_get_device_detailsunifi_list_clients/unifi_get_client_detailsunifi_list_networks/unifi_get_network_detailsunifi_list_wlans/unifi_get_wlan_details
Security
unifi_list_firewall_rules/unifi_get_firewall_rule_detailsunifi_list_traffic_routes/unifi_get_route_detailsunifi_list_port_forwards/unifi_get_port_forward_detailsunifi_get_ips_status
Statistics
unifi_get_network_stats/unifi_get_system_healthunifi_get_client_stats/unifi_get_device_statsunifi_get_top_clients/unifi_get_dpi_statsunifi_get_alerts
Migration
unifi_get_dhcp_statusunifi_verify_vlan_connectivityunifi_export_configuration
Docker
docker-compose up -dSee docs/DOCKER.md for details.
Development
# Clone and install
git clone https://github.com/MidwestMountaineer/Unifi-MCP-Server.git
cd Unifi-MCP-Server
pip install -e ".[dev]"
# Run tests
pytest
# Dev console
python devtools/dev_console.pyTroubleshooting
Issue | Solution |
Connection refused | Check |
401 Unauthorized | Regenerate API key with correct permissions |
SSL errors | Set |
Empty results | Check |
License
MIT - See LICENSE
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseDqualityDmaintenanceEnables comprehensive management of UniFi network infrastructure through the UniFi Cloud API, including device control, client management, camera settings, and access door control through natural language.Last updated3948Apache 2.0
- AlicenseBqualityDmaintenanceEnables AI assistants to manage UniFi network infrastructure through 50+ tools covering devices, clients, networks, WiFi, firewall rules, and guest access using the official UniFi Network API.Last updated52664MIT
- Flicense-qualityDmaintenanceProvides AI assistants with access to UniFi Network and Protect infrastructure for managing devices, monitoring clients, analyzing network health, viewing camera snapshots, and getting optimization recommendations across multiple UniFi controllers.Last updated2
- Alicense-qualityDmaintenanceEnables comprehensive management of UniFi Network infrastructure through 24 tools for monitoring and controlling devices, clients, wireless networks, security, and guest access. Supports network administration tasks like device restarts, client blocking, WLAN configuration, and backup creation.Last updated61MIT
Related MCP Connectors
SaaS intelligence for AI agents. 5 unified tools cover 1,000+ services with 91-96% token savings.
Read-only access to your VortexIQ store data: audits, KPIs, alerts, Brand DNA, reports, Ask VIQ.
Universal AI API Orchestrator — 1,554 tools, 96 services. One install.
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/MidwestMountaineer/Unifi-MCP-Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server