H
hpohlmann/home-assistant-mcp
Find and control Home Assistant devices from Cursor
View on GitHub ↗Link checked 2026-11-12 · HTTP 200 · opens the vendor's own site
Install & config
Client config (built from the install command this repo gives)
{
"mcpServers": {
"hpohlmann-home-assistant-mcp": {
"command": "npx",
"args": ["-y", "@smithery/cli"]
}
}
}Parsed from the README we fetched on 2026-11-06; we have not executed it.
command/args come from the install command the repository states. When it is ambiguous, the project README wins.
VS Code (.vscode/mcp.json - the key is servers)
{
"servers": {
"hpohlmann-home-assistant-mcp": {
"command": "npx",
"args": ["-y", "@smithery/cli"]
}
}
}Same server, but VS Code keeps it under <code>servers</code>.
Claude Code (command line)
claude mcp add --transport stdio hpohlmann-home-assistant-mcp -- npx -y @smithery/cli
Claude Code does not read a config file; add the server with this command.
Key names differ by client: Clients & CLI
- Source
- collected from the abordage/awesome-mcp list · type: MCP server
- Harvest history
- first seen 2026-11-05 · last seen 2026-11-14 · seen 10× · listed by 10 sources
- Score
- score 1,003 · 10 sources · mcp
- Install
npx -y @smithery/cli
FAQ (answers come from our records)
How do I install it?
The repository provides this install command:
npx -y @smithery/cli. It comes from the repository itself; we cannot guarantee it runs as-is in your client.Who is it for?
We filed it under these tags: MCP 服务. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
first catalogued 2026-11-05;last seen 2026-11-14。There is no official certification or quality rating here — we record sources and dates only.
# Home Assistant MCP
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
A Model Context Protocol (MCP) integration for controlling Home Assistant devices using AI assistants.
## Overview
This MCP allows AI assistants to control your Home Assistant devices. It provides tools to:
1. Search for entities in your Home Assistant instance
2. Control devices (turn them on/off)
3. Control light colors and brightness
## Prerequisites
Python 3.11 or higher
Home Assistant instance running and accessible via API
Home Assistant Long-Lived Access Token
## Installation
### Installing via Smithery
To install Home Assistant Integration for Claude Desktop automatically via Smithery:
bash
npx -y @smithery/cli install @hpohlmann/home-assistant-mcp --client claude
### Manual Installation
1. Clone this repository
2. Set up a Python environment:
bash
cd home-assistant
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -U pip
pip install uv
uv pip install -e .
## Configuration
### Get a Home Assistant Long-Lived Access Token
1. Go to your Home Assistant instance
2. Navigate to your profile (click on your username in the sidebar)
3. Scroll down to "Long-Lived Access Tokens"
4. Create a new token with a descriptive name like "MCP Integration"
5. Copy the token (you'll only see it once)
### Set up in Cursor AI
Add the following configuration to your MCP configuration in Cursor:
json
"mcpServers": {
"homeassistant": {
"command": "uv",
"args": [
"--directory",
"/path/to/your/home-assistant-mcp",
"run",
"main.py"
],
"env": {
"HOMEASSISTANTTOKEN": "yourhomeassistanttokenhere"
},
"inheritEnv": true
Replace:
/path/to/your/home-assistant with the actual path to this directory
yourhomeassistanttokenhere with your Home Assistant Long-Lived Access Token
### Home Assistant URL Configuration
By default, the MCP tries to connect to Home Assistant at http://homeassistant.local:8123.
If your Home Assistant is at a different URL, you can modify the HAURL variable in app/config.py.
## Usage
Once configured, you can use Cursor AI to control your Home Assistant devices:
Search for devices: "Find my living room lights"
Control devices: "Turn on the kitchen light"
Control light colors: "Set my living room lights to red"
Adjust brightness: "Set my dining room lights to blue at 50% brightness"
### Light Control Features
The MCP now supports advanced light control capabilities:
1. Color Control: Set any RGB color for compatible lights
Specify colors using RGB values (0-255 for each component)
Example: setdevicecolor("light.livingroom", 255, 0, 0) for red
2. Brightness Control: Adjust light brightness
Optional brightness parameter (0-255)
Can be combined with color changes
Example: setdevicecolor("light.diningroom", 0, 0, 255, brightness=128) for medium-bright blue
## Troubleshooting
If you get authentication errors, verify your token is correct and has not expired
## Overview
This MCP allows AI assistants to control your Home Assistant devices. It provides tools to:
1. Search for entities in your Home Assistant instance
2. Control devices (turn them on/off)
3. Control light colors and brightness
## Prerequisites
Python 3.11 or higher
Home Assistant instance running and accessible via API
Home Assistant Long-Lived Access Token
## Installation
### Installing via Smithery
To install Home Assistant Integration for Claude Desktop automatically via Smithery:
bash
npx -y @smithery/cli install @hpohlmann/home-assistant-mcp --client claude
### Manual Installation
1. Clone this repository
2. Set up a Python environment:
bash
cd home-assistant
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -U pip
pip install uv
uv pip install -e .
## Configuration
### Get a Home Assistant Long-Lived Access Token
1. Go to your Home Assistant instance
2. Navigate to your profile (click on your username in the sidebar)
3. Scroll down to "Long-Lived Access Tokens"
4. Create a new token with a descriptive name like "MCP Integration"
5. Copy the token (you'll only see it once)
### Set up in Cursor AI
Add the following configuration to your MCP configuration in Cursor:
json
"mcpServers": {
"homeassistant": {
"command": "uv",
"args": [
"--directory",
"/path/to/your/home-assistant-mcp",
"run",
"main.py"
],
"env": {
"HOMEASSISTANTTOKEN": "yourhomeassistanttokenhere"
},
"inheritEnv": true
Replace:
/path/to/your/home-assistant with the actual path to this directory
yourhomeassistanttokenhere with your Home Assistant Long-Lived Access Token
### Home Assistant URL Configuration
By default, the MCP tries to connect to Home Assistant at http://homeassistant.local:8123.
If your Home Assistant is at a different URL, you can modify the HAURL variable in app/config.py.
## Usage
Once configured, you can use Cursor AI to control your Home Assistant devices:
Search for devices: "Find my living room lights"
Control devices: "Turn on the kitchen light"
Control light colors: "Set my living room lights to red"
Adjust brightness: "Set my dining room lights to blue at 50% brightness"
### Light Control Features
The MCP now supports advanced light control capabilities:
1. Color Control: Set any RGB color for compatible lights
Specify colors using RGB values (0-255 for each component)
Example: setdevicecolor("light.livingroom", 255, 0, 0) for red
2. Brightness Control: Adjust light brightness
Optional brightness parameter (0-255)
Can be combined with color changes
Example: setdevicecolor("light.diningroom", 0, 0, 255, brightness=128) for medium-bright blue
## Troubleshooting
If you get authentication errors, verify your token is correct and has not expired
Listed badge (optional)
Copy this line into the README if you want the listing mark. Optional, and it does not affect being listed.
[](https://anclum.com/en/s/hpohlmann-home-assistant-mcp/)
- Source
- awesome · https://github.com/hpohlmann/home-assistant-mcp
- Browse by field
- MCP servers
- Listed by
- 10 independent sources
- added
- today
More like this
Filed under
Every tag opens the full list for that filter. Counts are the live catalogue figures.