HA MCP Server
by koneistoio.github.Koneisto/HomeAssistant-Light-MCPv0.6.1
Control Home Assistant lights and scenes. Lights only by design for safety.
context tax
queued
security
queued
cold start
queued
freshness
Stale9mo ago
Install HA MCP server
Install in Claude Code
claude mcp add ha -e HA_URL='<ha-url>' -e HA_TOKEN='<ha-token>' -- npx -y ha-mcp-serverInstall in Cursor
{
"mcpServers": {
"ha": {
"command": "npx",
"args": [
"-y",
"ha-mcp-server"
],
"env": {
"HA_URL": "<ha-url>",
"HA_TOKEN": "<ha-token>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"ha": {
"command": "npx",
"args": [
"-y",
"ha-mcp-server"
],
"env": {
"HA_URL": "<ha-url>",
"HA_TOKEN": "<ha-token>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"ha": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"ha-mcp-server"
],
"env": {
"HA_URL": "<ha-url>",
"HA_TOKEN": "<ha-token>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"ha": {
"command": "npx",
"args": [
"-y",
"ha-mcp-server"
],
"env": {
"HA_URL": "<ha-url>",
"HA_TOKEN": "<ha-token>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| HA_URL | yes | — | Home Assistant URL (e.g., http://192.168.1.100:8123) |
| HA_TOKEN | yes | yes | Home Assistant long-lived access token |
Freshness
Stale — last maintenance signal 9mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-01-27 · 9mo ago · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
Registry entry updated
2025-12-08 · 10mo ago · official registry · v0.6.1
FAQ
›How do I install the HA MCP server in Claude Code?
Run: claude mcp add ha -e HA_URL='<ha-url>' -e HA_TOKEN='<ha-token>' -- npx -y ha-mcp-server. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does HA require an API key?
Yes. It expects HA_URL, HA_TOKEN, of which 1 is a secret.
›Can I use HA as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is HA in the official MCP registry?
Yes, as io.github.Koneisto/HomeAssistant-Light-MCP.
Alternatives to HA
Other design MCP servers.