これは Home Assistant 公式の MCP サーバーですか?
いいえ。tevonsb によるコミュニティプロジェクトです。Home Assistant の公式の選択肢は、home-assistant.io に記載されている組み込みの Model Context Protocol Server 統合です。
@tevonsb
基本情報
Home Assistant 向けの MCP サーバー
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"homeassistant-mcp": {
"command": "docker",
"args": [
"compose",
"up",
"-d"
]
}
}
}ツール一覧はまだありません
この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
この Home Assistant MCP サーバーは、tevonsb が開発したコミュニティ製の Node.js サーバーです。LLM がローカルの Home Assistant インスタンスにアクセスし、デバイスの操作と監視、オートメーション・アドオン・HACS パッケージの管理、リアルタイム更新の受信を行えるようにします。
TypeScript で書かれており、長期アクセストークンで Home Assistant に接続し、ソースからでも Docker でも実行できます。公式の統合ではありません。Home Assistant は現在、公式の Model Context Protocol Server 統合を標準で搭載しています(比較は後述)。
前提条件:
ソースからインストール:
git clone https://github.com/tevonsb/homeassistant-mcp.git
cd homeassistant-mcp
npm install
npm run build
.env ファイルを設定します(.env.example をコピー)。
HASS_HOST=http://homeassistant.local:8123
HASS_TOKEN=your_home_assistant_token
HASS_SOCKET_URL=ws://homeassistant.local:8123/api/websocket
PORT=3000
NODE_ENV=production
DEBUG=false
ビルドした dist のエントリーを Claude Desktop に指定し、同じ変数を渡します。README によると、この方法では MCP サーバーが Claude の中で動作し、Docker 構成は使いません。
{
"mcpServers": {
"homeassistant": {
"command": "node",
"args": ["/path/to/homeassistant-mcp/dist/index.js"],
"env": {
"NODE_ENV": "development",
"HASS_HOST": "http://homeassistant.local:8123",
"HASS_TOKEN": "your_home_assistant_token",
"HASS_SOCKET_URL": "ws://homeassistant.local:8123/api/websocket",
"PORT": "3000",
"LOG_LEVEL": "debug"
}
}
}
}
README には記載がありません。stdio サーバーなので、同じ node /path/to/homeassistant-mcp/dist/index.js コマンドと env の値を .cursor/mcp.json や .vscode/mcp.json に追加できます。
README では、HTTP サーバーの実行に Docker Compose を推奨しています。
cp .env.example .env
docker compose up -d
サーバーは http://localhost:3000 で待ち受け、/health でヘルスチェックできます。
サーバーは、アクション型のコンパクトなツール群を登録しています。
list_devices は利用可能なデバイスを一覧表示し、control は entity_id に対して turn_on、turn_off、toggle などのコマンドを実行します(照明では brightness や rgb_color なども指定可能)。get_history は過去の状態を読み取ります。automation は既存のオートメーションを管理し、automation_config は作成・更新・複製を行い、scene はシーンを管理・実行します。addon は Supervisor のアドオンを扱い(list、install、start、stop、restart)、package はカテゴリー別に HACS パッケージをインストール・一覧表示します。subscribe_events と get_sse_stats は SSE ストリームを扱い、notify は通知を送ります。公式の Model Context Protocol Server 統合は Home Assistant に組み込まれています。Settings > Devices & services で有効にすると、OAuth 2.0 + PKCE 対応の MCP エンドポイントが提供されます。Claude Code からは claude mcp add --transport http home-assistant <your_mcp_server_url> で接続し、続けて claude mcp login home-assistant を実行します。アシスタントに公開したエンティティだけが対象となり、デフォルトでは管理者アカウントが必要です。Claude などのクラウド型クライアントを使う場合は、インスタンスにインターネットからアクセスできる必要があります。多くのユーザーにとっては、公式統合のほうがシンプルでサポートも受けられます。このコミュニティ版サーバーは、公式の LLM API の範囲を超えるアドオン、HACS、オートメーション編集のツールを追加で提供します。ほかにもコミュニティ製の Home Assistant MCP サーバーがいくつか存在します。
toSorted is not a function:Node.js が古すぎます。20.10.0 以降に更新してください(例:nvm install 20.10.0)。HASS_HOST にアクセスできること、トークンの権限が正しいことを確認します。リアルタイム更新には HASS_SOCKET_URL も確認します。いいえ。tevonsb によるコミュニティプロジェクトです。Home Assistant の公式の選択肢は、home-assistant.io に記載されている組み込みの Model Context Protocol Server 統合です。
はい。オープンソースで、無料でセルフホストできます。自分の Home Assistant インスタンスが必要です。
`HASS_TOKEN` に Home Assistant の長期アクセストークン、`HASS_HOST` にインスタンスの URL、`HASS_SOCKET_URL` に WebSocket の URL を設定します。
README に記載されているのは Claude Desktop だけですが、stdio コマンドを起動できる MCP クライアントであれば、同じ環境変数で `node .../dist/index.js` を実行できます。公式統合のドキュメントには Claude、Claude Code、ChatGPT の手順があります。
自分のマシンやサーバー上で動作し、ローカルの Home Assistant と通信します。自分で外部公開しない限り、データはネットワーク内にとどまります。
トークンはロック、カメラ、アドオン、オートメーションを含む広い権限を持つため、秘密にし、可能なら専用ユーザーを使ってください。公式統合では、公開するエンティティを選んでアクセス範囲を限定できます。
はい。お使いの環境で Supervisor と HACS が使える場合、`addon` と `package` ツールで Supervisor のアドオンと HACS パッケージをインストール・管理できます。

We provide AI-powered tools for image enhancement, upscaling, background removal, photo restoration, colorization, denoising, and compression. All features are available through our API documentation.
AON MCP connects AI agents to real, buyable products and services with live pricing and tracked links—enabling builders to earn developer revenue share from attributed clicks and conversions.
TruVerifAI's Panel Review is the guardian agent for AI's highest-stakes coding decisions: four frontier models argue over an AI coding agent's riskiest designs, diffs, and commits before they execute, with local review g
Cartesia MCP is a remote MCP server for Cartesia (https://cartesia.ai) available at https://mcp.cartesia.ai.
NetFoundry LLM Gateway is an OpenAI-compatible API proxy that routes requests across multiple LLM providers using zero-trust networking. Zero trust LLM gateway. OpenAI-compatible proxy with semantic routing and load bala
コメント