SSyncDev

MCP Ha Connect MCP Server

Smart home MCP server for Home Assistant plus Local AI integration

Local serverstdioTypeScript

What is the MCP Ha Connect MCP Server?

Smart home MCP server for Home Assistant plus Local AI integration

The short version

A production-ready Model Context Protocol (MCP) server for Home Assistant integration with AI assistants like Claude and LM Studio.

What it needs from you

  • Node.js 20+ (tested with v20.19.6) - for npm/npx methods - npm 10.8+ (tested with v10.8.2) - for npm/npx methods - Docker (optional) - for Docker method - Home Assistant instance with long-lived access token - Network access to your Home Assistant instance - (Optional) Ollama for AI-powered analysis

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
getStatesGet all entity states (paginated, 50/page default). Use includeAttributes=true for full data
getStateGet the state of a specific entity by entity_id
getEntitiesByDomainGet entities for a domain (paginated, 50/page default). Use includeAttributes=true for full data
searchEntitiesSearch entities by name/entity_id (paginated, 50/page default). Use includeAttributes=true for full data
getAllSensorsGet all sensors (paginated, 50/page default). Use includeAttributes=true for full data
listEntitiesList entities with filtering (domain, state, search, limit). Use includeAttributes=true for full data
getDomainSummaryGet summary statistics for a domain
getHistoryGet historical data for an entity
listPersonsList all household members with location state (home/away)
callServiceCall any Home Assistant service
entityActionSimple turn_on/turn_off/toggle actions
controlLightControl lights with brightness, color, temperature
controlClimateControl thermostats with temperature, HVAC mode
controlMediaPlayerControl media players with playback, volume

How to install the MCP Ha Connect MCP Server

claude mcp add ha-connect --env HA_URL=your-value --env HA_TOKEN=your-value --env AI_PROVIDER=your-value --env AI_URL=your-value --env AI_MODEL=your-value --env MCP_HTTP_PATH=your-value --env MCP_HTTP_HEALTHCHECK_PATH=your-value --env MCP_SSE_EVENTS_PATH=your-value -- npx -y methods

Configuration

  • Node.js 20+ (tested with v20.19.6) - for npm/npx methods - npm 10.8+ (tested with v10.8.2) - for npm/npx methods - Docker (optional) - for Docker method - Home Assistant instance with long-lived access token - Network access to your Home Assistant instance - (Optional) Ollama for AI-powered analysis
VariableDescriptionRequired
HA_URLEndpoint or connection string the server talks to.Yes
HA_TOKENCredential the server authenticates with.Yes
AI_PROVIDERConfiguration value read at startup.Optional
AI_URLEndpoint or connection string the server talks to.Yes
AI_MODELConfiguration value read at startup.Optional
MCP_HTTP_PATHFilesystem location the server is allowed to use.Optional
MCP_HTTP_HEALTHCHECK_PATHFilesystem location the server is allowed to use.Optional
MCP_SSE_EVENTS_PATHFilesystem location the server is allowed to use.Optional

Example prompts to try

  • “Use MCP Ha Connect to getStates.”
  • “Use MCP Ha Connect to getState.”
  • “Use MCP Ha Connect to getEntitiesByDomain.”

Frequently asked questions

Smart home MCP server for Home Assistant plus Local AI integration Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.