UniFi网络控制
STDIO通过AI管理UniFi网络设备的服务器
通过AI管理UniFi网络设备的服务器
A server implementation for managing and controlling UniFi network devices through MCP (Management Control Protocol). This server enables natural language interactions with your UniFi network using AI agents like Goose and Claude by wrapping the UniFi Network API.
uv
package managerCreate an API key:
Clone and set up the repository:
git clone https://github.com/zcking/mcp-server-unifi cd mcp-server-unifi uv venv source .venv/bin/activate # On Unix/macOS # or .venv\Scripts\activate # On Windows
uv sync
export UNIFI_API_KEY="your_api_key_here"
Start the MCP development server:
uv run mcp dev main.py
The MCP Inspector will be available at http://localhost:5173 for testing and debugging.
/Users/username/.local/bin/uv --directory /path/to/mcp-server-unifi run main.py
claude_desktop_config.json
:{ "mcpServers": { "unifi": { "command": "/Users/username/.local/bin/uv", "args": [ "--directory", "/path/to/mcp-server-unifi", "run", "main.py" ] } } }