UnifiyMe
Pre-configured Caddy integration for automated TLS/HTTPS termination.
Manage and monitor your network directly from Discord.
Run the entire stack (UnifiyMe, Prometheus, Grafana) using Docker Compose.
Pre-configured dashboards for visualizing network health and performance.
Export UniFi metrics to Prometheus for long-term monitoring and alerting.
Specialized tools for managing YouTube access via UniFi firewall rules.
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., "@UnifiyMeShow me the current network health"
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.
UnifiyMe
A Model Context Protocol (MCP) server for UniFi Network Controllers. This server allows you to interact with your UniFi network infrastructure through LLMs, providing both high-level monitoring and deep system-level control.
Features
Network Monitoring: Quick overview of devices, clients, and site health.
Client Management: Block/unblock clients, force reconnections, and search historical connection data.
Physical Control: Power cycle PoE ports and flash device LEDs for easy location.
Advanced Analytics: Deep Packet Inspection (DPI) stats, subsystem health, and alarm tracking.
Guest Access: Create guest WiFi vouchers on the fly.
SSH Diagnostics: Execute commands directly on the router and fetch system logs for deep troubleshooting.
Discord Integration: Manage and monitor your network directly from Discord.
Prometheus Exporter: Export UniFi metrics to Prometheus for long-term monitoring and alerting.
Grafana Dashboards: Pre-configured dashboards for visualizing network health and performance.
Restricted YouTube Blocker: Specialized tools for managing YouTube access via UniFi firewall rules.
Related MCP server: UniFi MCP Server
Optimization
This server includes specialized optimizations for UniFi controllers:
Monkey-patched Session Management: Reduces redundant heartbeat checks, cutting request overhead by up to 50%.
Intelligent Caching: 10-second TTL cache for frequent lookups to improve responsiveness and reduce controller load.
Reliability & Security
Persistence Layer: Automated background monitoring ensures that critical traffic rules (like YouTube blocking) are re-enforced every 60 seconds if they are tampered with.
Health Monitoring: Integrated
/healthendpoint and Docker health checks ensure maximum uptime and automated container recovery.API Hardening: All Gateway actions are strictly validated with MAC address regex and required field checks.
Secure Reverse Proxy: Pre-configured Caddy integration for automated TLS/HTTPS termination.
Setup
Clone the repository.
Install dependencies:
npm installCreate a
.envfile with your UniFi credentials:UNIFI_HOST=https://your-unifi-controller-ip UNIFI_USERNAME=your-username UNIFI_PASSWORD=your-password UNIFI_SITE=default # Optional: SSH Credentials for diagnostics SSH_HOST=192.168.1.1 SSH_USERNAME=root SSH_PASSWORD=your-ssh-password # Optional: Discord Bot Configuration DISCORD_TOKEN=your-discord-bot-token DISCORD_CLIENT_ID=your-discord-client-idBuild the project:
npm run build
Usage
1. Installation via npm (Published)
This is the recommended way for most users. You can run the server directly using npx in your Claude Desktop configuration.
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"unifyme": {
"command": "npx",
"args": ["-y", "unifiyme"],
"env": {
"UNIFI_HOST": "https://<CONTROLLER-IP>",
"UNIFI_USERNAME": "<YOUR-USERNAME>",
"UNIFI_PASSWORD": "<YOUR-PASSWORD>",
"UNIFI_SITE": "default"
}
}
}
}2. Local Development Setup
If you prefer to run from source or are contributing:
Clone the repository.
Install dependencies:
npm installBuild the project:
npm run buildUse the following config:
{
"mcpServers": {
"unifyme": {
"command": "node",
"args": ["/path/to/UnifiyMe/dist/index.js"],
"env": {
"UNIFI_HOST": "...",
"UNIFI_USERNAME": "...",
"UNIFI_PASSWORD": "...",
"UNIFI_SITE": "default"
}
}
}
}Discord Bot
To start the Discord bot:
npm run start # If built
# OR
npm run dev # For developmentPrometheus Exporter
The server automatically starts a Prometheus exporter on port 9090 (configurable). Metrics are available at /metrics.
Docker Support
You can run the entire stack (UnifiyMe, Prometheus, Grafana) using Docker Compose:
docker-compose up -dTools
Monitoring & Discovery
get_network_status: Get overall network health and status.list_devices: List all network devices (APs, switches, gateways).list_clients: List all connected network clients.get_device_details: Get detailed information about a specific device.search_network: Search for devices or clients by IP, MAC, hostname, or alias.get_bandwidth_stats: Get top bandwidth consumers.get_network_topology: Get network topology (simplified view of uplinks).get_client_history: Search historical client data.get_network_health: Get detailed subsystem health status.get_alarms: List recent alerts and IPS/IDS events.get_dpi_stats: Get application usage statistics.get_wlan_config: Get WiFi network configurations (SSIDs, security, etc.).get_network_config: Get logical network configurations (VLANs, subnets, DHCP).get_firmware_status: Check for available firmware updates across all devices.get_firewall_rules: Get all configured firewall rules.get_firewall_groups: Get all configured firewall groups (IP, Port).get_deep_dive: Perform a deep dive into network health, DPI stats, and active client traffic.get_events: Get recent network events.
Control & Management
reboot_device: Restart a device by MAC address.cycle_poe_port: Power cycle a PoE port on a switch.locate_device: Flash/Stop flashing the LED on a device.block_client/unblock_client: Manage network access for clients.reconnect_client: Force a client to reconnect.create_voucher: Create guest WiFi vouchers.set_client_user_group: Assign a client to a specific user group (for throttling).create_user_group: Create a new user group with bandwidth limits.
Specialized Management
block_restricted_youtube/unblock_restricted_youtube: Manage YouTube access for Restricted devices.get_restricted_youtube_status: Check current YouTube blocking status for Restricted.detect_iot_devices: Identify potential IoT devices not on the IoT VLAN.migrate_iot_devices: Propose migration of detected IoT devices to a target network.enforce_iot_limits: Throttle high-bandwidth IoT devices.protect_vips: Ensure VIP devices are not throttled.ensure_traffic_rule: Create or update complex traffic rules.
Diagnostics (SSH)
run_ssh_command: Execute a command directly on the router.get_router_logs: Fetch system logs from the router.
Contributing
Contributions are welcome! Please see CONTRIBUTING.md for guidelines on how to report issues, suggest features, and submit pull requests.
License
This project is licensed under the MIT License.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/lobsterclause/UnifiyMe'
If you have feedback or need assistance with the MCP directory API, please join our Discord server