Home Assistant

v1.0.0Business Applicationsstable

A Model Context Protocol (MCP) server for interacting with Home Assistant. This server provides tools to control and monitor your Home Assistant devices through MCP-enabled applications.

homeassistant-servermcpai-integration
Share:
48
Stars
0
Downloads
0
Weekly
0/5

What is Home Assistant?

Home Assistant is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to model context protocol (mcp) server for interacting with home assistant. this server provides tools to control and monitor your home assistant devices through mcp-enabled applications.

A Model Context Protocol (MCP) server for interacting with Home Assistant. This server provides tools to control and monitor your Home Assistant devices through MCP-enabled applications.

This server falls under the Business Applications category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A Model Context Protocol (MCP) server for interacting with H

Use Cases

Control Home Assistant devices via natural language
Monitor smart home status and create automations
hekmon8

Maintainer

LicenseMIT
Languagejavascript
Versionv1.0.0
UpdatedApr 1, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx homeassistant-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Home Assistant

The Home Assistant MCP Server bridges AI assistants such as Claude with your Home Assistant smart home instance, letting you query device states, toggle switches and lights, trigger automations, and enumerate all entities using natural language. It connects over the Home Assistant REST API using a long-lived access token, so it works with both local and remote (Nabu Casa cloud) installations. Smart home enthusiasts and developers who want to control their home through conversational AI — without writing automations manually — will find this the quickest integration path.

Prerequisites

  • A running Home Assistant instance (version 2023.x or later recommended) reachable over HTTP/HTTPS
  • A Home Assistant long-lived access token (generated in your profile under Security > Long-Lived Access Tokens)
  • Node.js 18+ installed on the machine running the MCP server
  • An MCP-compatible client such as Claude Desktop or Cursor
1

Clone and build the server

Clone the repository and install dependencies, then build the TypeScript source.

git clone https://github.com/hekmon8/Homeassistant-server-mcp.git
cd Homeassistant-server-mcp
npm install
npm run build
2

Generate a long-lived access token in Home Assistant

In the Home Assistant UI, go to your Profile (bottom-left avatar icon), scroll to the Security section, and click 'Create Token'. Give it a descriptive name like 'MCP Server' and copy the token — it is shown only once.

3

Identify your Home Assistant URL

Note the base URL for your Home Assistant instance. For local access this is typically http://homeassistant.local:8123 or the machine's IP address. For remote access it may be your Nabu Casa URL or a reverse-proxy domain.

4

Add the server to your MCP client config

Edit your Claude Desktop or Cursor MCP config to launch the server, passing HA_URL and HA_TOKEN as environment variables.

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

Restart your MCP client and verify

Restart Claude Desktop or Cursor. Ask the AI to list your Home Assistant entities — a successful response confirms the server is connected and the token is valid.

Home Assistant Examples

Client configuration

Claude Desktop configuration for the Home Assistant MCP server with the required HA_URL and HA_TOKEN environment variables.

{
  "mcpServers": {
    "homeassistant": {
      "command": "node",
      "args": ["/Users/yourname/Homeassistant-server-mcp/dist/index.js"],
      "env": {
        "HA_URL": "http://192.168.1.100:8123",
        "HA_TOKEN": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
      }
    }
  }
}

Prompts to try

Natural language prompts that exercise the server's entity listing, state reading, toggle, and automation capabilities.

- "List all my Home Assistant entities in the light domain"
- "What is the current temperature reported by sensor.living_room_temperature?"
- "Turn on the kitchen lights"
- "Toggle switch.garage_door"
- "Trigger the automation 'goodnight_routine'"
- "Show the state of all entities in the climate domain"

Troubleshooting Home Assistant

401 Unauthorized error when connecting to Home Assistant

The HA_TOKEN is incorrect or has been revoked. Re-generate a long-lived access token in your Home Assistant profile under Security > Long-Lived Access Tokens and update the env block in your MCP config.

Connection refused or timeout — server cannot reach Home Assistant

Verify the HA_URL is correct and reachable from the machine running the MCP server. Try opening it in a browser. If using https with a self-signed certificate, you may need to disable strict TLS verification or add the cert to your system trust store.

Entity not found or toggle has no effect

Use the list_entities tool first to get exact entity IDs (e.g. light.kitchen_overhead). Entity IDs are case-sensitive and must include the domain prefix. Confirm the entity exists and is not unavailable in the Home Assistant UI.

Frequently Asked Questions about Home Assistant

What is Home Assistant?

Home Assistant is a Model Context Protocol (MCP) server that model context protocol (mcp) server for interacting with home assistant. this server provides tools to control and monitor your home assistant devices through mcp-enabled applications. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Home Assistant?

Follow the installation instructions on the Home Assistant GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Home Assistant?

Home Assistant works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Home Assistant free to use?

Yes, Home Assistant is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Home Assistant Alternatives — Similar Business Applications Servers

Looking for alternatives to Home Assistant? Here are other popular business applications servers you can use with Claude, Cursor, and VS Code.

n8n

189.1k

A comprehensive MCP server that provides full control over n8n automation workflows through natural language. It offers 43 tools for managing workflows, executions, credentials, and data tables, with safety features like write-mode protection and dou

LobeHub

77.5k

🤯 LobeHub is your Chief Agent Operator, organizing your agents into 7×24 operations by hiring, scheduling, and reporting on your entire AI team.

Jeecgboot

46.4k

AI 低代码平台,「低代码 + 零代码」双模式驱动:低代码一键生成前后端代码,零代码 5 分钟搭建系统,AI Skills 一句话画流程、设计表单、生成整套系统。内置 AI聊天、知识库、流程编排、MCP插件等,兼容主流大模型。引领「AI 生成 → 在线配置 → 代码生成 → 手工合并->AI修改」开发模式,消除 Java 项目 80% 的重复工作,提效而不失灵活。

CowAgent

44.7k

CowAgent (chatgpt-on-wechat) 是基于大模型的超级AI助理,能主动思考和任务规划、访问操作系统和外部资源、创造和执行Skills、通过长期记忆和知识库不断成长,比OpenClaw更轻量和便捷。同时支持微信、飞书、钉钉、企微、QQ、公众号、网页等接入,可选择DeepSeek/OpenAI/Claude/Gemini/ MiniMax/Qwen/GLM/LinkAI,能处理文本、语音、图片和文件,可快速搭建个人AI助理和企业数字员工。

Minds Platform

39.2k

Platform dedicated to building an open foundation for applied Artificial Intelligence, designed for people seeking production-ready AI systems they can truly control, extend and deploy anywhere.

Astrbot

32.8k

AI Agent Assistant & development framework that integrates lots of IM platforms, LLMs, plugins and AI feature, and can be your openclaw alternative. ✨

Browse More Business Applications MCP Servers

Explore all business applications servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "homeassistant-server": { "command": "npx", "args": ["-y", "homeassistant-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Home Assistant?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides