Get the FREE Ultimate OpenClaw Setup Guide →

home-assistant-model-context-protocol

A Home Assistant Model Context Protocol Custom Component

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add allenporter-home-assistant-model-context-protocol

How to use

Note: This MCP server has been moved to the official Home Assistant MCP Server integration and is no longer maintained as a standalone server. If you are looking to use model-context capabilities with Home Assistant, install the official MCP Server integration in your Home Assistant instance and configure the model context features there. This repository no longer provides a runnable server, but the MCP concepts (model context requests, responses, and related tooling) are supported through the Home Assistant integration and its documentation.

If you already rely on this MCP server as a drop-in, consider migrating to the official integration, which handles context-aware model interactions within the Home Assistant ecosystem and provides built-in configuration options and security considerations.

How to install

Prerequisites:

  • Home Assistant instance (core or supervisor) running on a supported environment.
  • Basic familiarity with Home Assistant integrations and configuration.

Steps:

  1. Open your Home Assistant UI and navigate to Settings > Integrations.
  2. Add integration and search for “MCP Server” (official integration).
  3. Follow the on-screen prompts to configure the MCP Server integration, including endpoints, authentication if required, and any model-context options you want to enable.
  4. Save the configuration and restart Home Assistant if prompted.

Notes:

  • This repository previously provided a standalone MCP server; this functionality is now provided by the official MCP Server integration within Home Assistant.
  • If you require running a separate MCP server for other clients, you can still run a legacy setup in a different environment, but for Home Assistant usage the official integration is recommended.

Additional notes

Deprecation: The home-assistant-model-context-protocol server has been deprecated in favor of the official Home Assistant MCP Server integration. For model-context features, prefer the official integration to ensure compatibility and security updates. If you rely on external clients, you may need to adapt them to communicate with the MCP Server endpoints exposed by the Home Assistant integration. Always review the official documentation for authentication, endpoint formats, and event handling.

Environment variables and configuration options: No dedicated environment variables are required for the official integration within Home Assistant. If you operate a separate MCP server outside Home Assistant, you can refer to the MCP Server protocol specs for how to implement model-context requests and responses.

Related MCP Servers

Sponsor this space

Reach thousands of developers