Skip to main content
Glama

Home Assistant MCP

ホームアシスタントMCP

これは、Home Assistant との統合ツールを提供し、AI アシスタントがスマート ホーム デバイスと対話できるようにする MCP (Model Context Protocol) サーバーです。

設定

Smithery経由でインストール

Smithery経由で Claude Desktop の Home Assistant Integration を自動的にインストールするには:

npx -y @smithery/cli install @guilhermelirio/homeassistant-mpc --client claude

手動インストール

  1. 依存関係をインストールします:
npm install
  1. 環境変数を設定します。
    • ホームアシスタントから長期アクセストークンを取得する
    • プロジェクト ルートの.envファイルで環境変数を設定します。
HOME_ASSISTANT_URL=http://your-home-assistant:8123 HOME_ASSISTANT_TOKEN=your_token_here

サーバーの起動

npm start

開発の場合:

npm run dev

利用可能なツール

ホームアシスタント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 などの言語モデルからアクセスできるツールを作成します。

新しいツールを追加するには:

  1. src/tools/[category]にモジュールを作成する
  2. 既存のパターンに従ってツールを実装する
  3. src/index.tsにモジュールを登録する

貢献

貢献を歓迎します!お気軽に問題を報告したり、プルリクエストを送信してください。

ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細については LICENSE ファイルを参照してください。

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

AI アシスタントが Home Assistant を通じてスマート ホーム デバイスと対話するためのツールを提供し、エンティティの状態の確認やサービスの呼び出しなどの操作を可能にします。

  1. 設定
    1. Smithery経由でインストール
    2. 手動インストール
  2. サーバーの起動
    1. 利用可能なツール
      1. ホームアシスタントAPI検証
      2. エンティティの状態を取得する
      3. 通話サービス
    2. 発達
      1. 貢献
        1. ライセンス

          Related MCP Servers

          • -
            security
            A
            license
            -
            quality
            Access Home Assistant data and control devices (lights, switches, thermostats, etc).
            Last updated -
            6
            123
            TypeScript
            Apache 2.0
          • A
            security
            A
            license
            A
            quality
            Enables AI assistants to control SwitchBot devices, providing functionalities like device management, scene execution, and sensor information monitoring through the SwitchBot API.
            Last updated -
            3
            JavaScript
            ISC License
          • -
            security
            F
            license
            -
            quality
            A versatile Model Context Protocol server that enables AI assistants to manage calendars, track tasks, handle emails, search the web, and control smart home devices.
            Last updated -
            2
            Python
            • Apple
            • Linux

          View all related MCP servers

          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/guilhermelirio/homeassistant-mpc'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server