Skip to main content
Glama

Home Assistant MCP Server

by miguelg719

🤝 ホームアシスタント MCP サーバー

Home Assistant と統合してスマート ホーム制御機能を提供するモデル コンテキスト プロトコル (MCP) サーバー プロジェクト。

プロンプト

サーバーは、各ドメインのツール セットのプロンプトを提供します。

ツール

サーバーは、Home Assistantの様々なドメインの制御を実装します。現在サポートしているのは以下です。

  • 💡 ライト:オン/オフ、明るさ調節
  • 🌡️ 気候: 温度制御、HVAC モード
  • 🔒 ロック:ロック/ロック解除機能
  • 🚨 警報制御パネル: セキュリティシステムの作動/解除
  • 💧 加湿器:湿度コントロール

ツールの例には次のものがあります:

light-turn_on() climate-turn_off() alarm_control_panel-disarm() lock-lock() humidifier-turn_off()

構成

環境変数

ルート ディレクトリに次の.envファイルを作成します。

HOMEASSISTANT_TOKEN=your_long_lived_access_token_here # get it from your Home Assistant instance after onboarding HOMEASSISTANT_BASE_URL=your_home_assistant_url_here # e.g. http://homeassistant.local:8123

クイックスタート

インストール

Home Assistant をインストールして長期アクセス トークンを取得する方法についての指示に従ってください。

クロードデスクトップ

MacOS の場合: ~/Library/Application\ Support/Claude/claude_desktop_config.json Windows の場合: %APPDATA%/Claude/claude_desktop_config.json

発達

建築と出版

配布用のパッケージを準備するには:

  1. 依存関係を同期し、ロックファイルを更新します。
uv sync
  1. パッケージディストリビューションをビルドします。
uv build

これにより、 dist/ディレクトリにソースとホイールのディストリビューションが作成されます。

  1. PyPI に公開:
uv publish

注: 環境変数またはコマンド フラグを使用して PyPI 資格情報を設定する必要があります。

  • トークン: --tokenまたはUV_PUBLISH_TOKEN
  • またはユーザー名/パスワード: --username / UV_PUBLISH_USERNAMEおよび--password / UV_PUBLISH_PASSWORD

デバッグ

MCPサーバーはstdio経由で実行されるため、デバッグが困難になる場合があります。最適なデバッグ環境を実現するには、 MCP Inspectorの使用を強くお勧めします。

次のコマンドを使用して、 npm経由で MCP Inspector を起動できます。

npx @modelcontextprotocol/inspector uv --directory /Users/miguel/Documents/home-assistant-server/home-assistant-server run home-assistant-server

起動すると、ブラウザでアクセスしてデバッグを開始できる URL がインスペクタに表示されます。

貢献

このプロジェクトへの貢献にご興味をお持ちいただきありがとうございます。

ガイドラインについてはCONTRIBUTING.mdをご覧ください。

ライセンス

MIT ライセンス - 詳細についてはライセンスを参照してください。

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

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Home Assistant と統合して自然言語によるスマート ホーム制御機能を提供し、照明、気候システム、ロック、アラーム、加湿器などのデバイスをサポートするモデル コンテキスト プロトコル サーバーです。

  1. プロンプト
    1. ツール
      1. 構成
        1. 環境変数
      2. クイックスタート
        1. インストール
      3. 発達
        1. 建築と出版
        2. デバッグ
      4. 貢献
        1. ライセンス

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            A 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 -
            4
            43
            JavaScript
            MIT License
            • Apple
          • -
            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 -
            14
            Python
            • Apple
            • Linux
          • A
            security
            A
            license
            A
            quality
            A Model Context Protocol server that enables AI assistants like Claude to interact directly with Home Assistant, allowing them to query device states, control smart home entities, and perform automation tasks.
            Last updated -
            12
            142
            Python
            MIT License
            • Apple
            • Linux
          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol server that allows large language models to control and query Home Assistant smart home systems through natural language interactions.
            Last updated -
            9
            1
            TypeScript
            MIT License
            • Apple

          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/miguelg719/home-assistant-mcp'

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