Design Engineer Logo
Visit Repo
Open Graph preview

Homeassistant Serve MCP

This server provides tools to control and monitor your Home Assistant devices through MCP-enabled applications

Site favicon
🔌 MCP Tools

Overview

Home Assistant MCP Server

Description: Server for controlling and monitoring Home Assistant devices through AI interactions

Category: Smart Home Integration

Overview: This server enables AI-powered control of Home Assistant devices with key capabilities:

  • Get and control device states (on/off)
  • Trigger automations
  • List available entities by domain
  • Real-time monitoring of device states

The server requires a Home Assistant instance and long-lived access token for secure communication.

Installation:

git clone https://github.com/yourusername/homeassistant-server-mcp.git
cd homeassistant-server-mcp
npm install
npm run build

Configuration: Add to your MCP settings file:

{
  "mcpServers": {
    "homeassistant": {
      "command": "node",
      "args": ["/path/to/homeassistant-mcp/homeassistant-server/build/index.js"],
      "env": {
        "HA_URL": "http://your-homeassistant-url:8123",
        "HA_TOKEN": "your-long-lived-access-token"
      }
    }
  }
}

Security Notes:

  • Use HTTPS for Home Assistant instance
  • Store access tokens securely
  • Use environment variables for sensitive data
  • Implement regular token rotation

This server is licensed under MIT and provides a robust interface for AI-powered home automation control.