MCP Server UniFi
MCPサーバー UniFi
MCP(Management Control Protocol)を介してUniFiネットワークデバイスを管理・制御するためのサーバー実装。このサーバーは、UniFi Network APIをラップすることで、GooseやClaudeなどのAIエージェントを使用してUniFiネットワークとの自然言語によるインタラクションを可能にします。
特徴
AIエージェントを通じて自然言語を使用してUniFiサイトとデバイスをクエリする
UniFi Networkアプリケーションに接続するローカルサーバーの実装
Goose AIとClaude Desktopの両方と互換性があります
安全なAPIキーベースの認証
Related MCP server: UnifiyMe
前提条件
Python 3.8以上
uvパッケージマネージャーUniFiネットワークアプリケーション
UniFi APIキー(UniFiコンソールから取得)
設定
API キーを作成します。
https://unifi.ui.comで UniFi コンソールにアクセスします。
「設定」>「コントロールプレーン」>「統合」に移動します
「APIキーを作成」をクリックします
リポジトリをクローンしてセットアップします。
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"サーバーの実行
MCP 開発サーバーを起動します。
uv run mcp dev main.pyMCP インスペクターは、テストとデバッグのためにhttp://localhost:5173で利用できます。
AIエージェント統合
ガチョウAIのセットアップ
Gooseを開き、「設定」>「拡張機能」>「カスタム拡張機能を追加」に移動します
拡張機能を設定します。
ID: ユニフィ
名前: ユニフィ
説明: UniFiネットワークに関する情報を取得します
コマンド:
/Users/username/.local/bin/uv --directory /path/to/mcp-server-unifi run main.py環境変数: UNIFI_API_KEY を API キーに設定します
クロードデスクトップセットアップ
Claudeを開き、「設定」>「開発者」>「設定の編集」に移動します
claude_desktop_config.jsonに追加します:
{
"mcpServers": {
"unifi": {
"command": "/Users/username/.local/bin/uv",
"args": [
"--directory",
"/path/to/mcp-server-unifi",
"run",
"main.py"
]
}
}
}Maintenance
Related MCP Connectors
An MCP server that provides an API to LLMs to manage their JumpCloud resources.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP server that turns Claude into a UniFi network specialist. Manage devices, optimize WiFi, audit security, and troubleshoot your network through natural language.3121 npm2MIT
- AlicenseCqualityBmaintenanceA Model Context Protocol (MCP) server for UniFi Network Controllers that enables LLMs to interact with UniFi infrastructure for monitoring and control.51MIT
- AlicenseBqualityCmaintenanceAn MCP server that enables AI assistants to manage UniFi network infrastructure, including cloud management, local network devices, and Protect cameras, through natural language.62MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for UniFi Network Controller enabling AI assistants to manage UniFi infrastructure via natural language. It supports firewall rules, IPv6, and uses lazy/eager tool modes to minimize context usage.6Mozilla Public 2.0