ホームアシスタントMCP
これは、Home Assistant との統合ツールを提供し、AI アシスタントがスマート ホーム デバイスと対話できるようにする MCP (Model Context Protocol) サーバーです。
設定
Smithery経由でインストール
Smithery経由で Claude Desktop の Home Assistant Integration を自動的にインストールするには:
手動インストール
- 依存関係をインストールします:
- 環境変数を設定します。
- ホームアシスタントから長期アクセストークンを取得する
- プロジェク��� ルートの
.env
ファイルで環境変数を設定します。
サーバーの起動
開発の場合:
利用可能なツール
ホームアシスタントAPI検証
- homeassistant_api : Home Assistant APIがオンラインかどうかを確認します
- パラメータ: なし
- 例:
homeassistant_api()
エンティティの状態を取得する
- homeassistant_get_state : Home Assistantエンティティの現在の状態を取得します
- パラメータ:
entity_id
(エンティティID) - 例:
homeassistant_get_state("light.living_room")
- パラメータ:
通話サービス
- homeassistant_call_service : Home Assistantエンティティのサービスを呼び出す
- パラメータ:
entity_id
(エンティティID)domain
(サービスドメイン)service
(呼び出すサービス)
- 例:
homeassistant_call_service("light.living_room", "light", "turn_on")
- パラメータ:
発達
このプロジェクトでは、TypeScript と MCP SDK ライブラリを使用して、Claude、GPT などの言語モデルからアクセスできるツールを作成します。
新しいツールを追加するには:
src/tools/[category]
にモジュールを作成する- 既存のパターンに従ってツールを実装する
src/index.ts
にモジュールを登録する
貢献
貢献を歓迎します!お気軽に問題を報告したり、プルリクエストを送信してください。
ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細については LICENSE ファイルを参照してください。
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
AI アシスタントが Home Assistant を通じてスマート ホーム デバイスと対話するためのツールを提供し、エンティティの状態の確認やサービスの呼び出しなどの操作を可能にします。
Related MCP Servers
- -securityAlicense-qualityAccess Home Assistant data and control devices (lights, switches, thermostats, etc).Last updated -6387TypeScriptApache 2.0
- -securityFlicense-qualityEnables users to control Google Home smart plugs using the Smart Home API with OAuth2 authentication, offering real-time device state management and control operations.Last updated -1TypeScript
- AsecurityAlicenseAqualityEnables AI assistants to control SwitchBot devices, providing functionalities like device management, scene execution, and sensor information monitoring through the SwitchBot API.Last updated -33JavaScriptISC License
- AsecurityAlicenseAqualityA server that enables interaction with Home Assistant devices and automations through the Model Context Protocol, allowing users to monitor device states, control devices, trigger automations, and list entities.Last updated -443JavaScriptMIT License