Home Assistant MCP Server
by jarahkonio.github.jarahkon/hass-mcp-serverv1.0.6
MCP server for full Home Assistant control — dashboards, files, automations, add-ons, and more
context tax
queued
security
queued
cold start
queued
freshness
Stale6mo ago
Install Home Assistant MCP server
Install in Claude Code
claude mcp add hass -e HA_URL='<ha-url>' -e HA_TOKEN='<ha-token>' -e HA_SSH_PASSWORD='<ha-ssh-password>' -- npx -y @jarahkon/hass-mcp-serverInstall in Cursor
{
"mcpServers": {
"hass": {
"command": "npx",
"args": [
"-y",
"@jarahkon/hass-mcp-server"
],
"env": {
"HA_URL": "<ha-url>",
"HA_TOKEN": "<ha-token>",
"HA_SSH_PASSWORD": "<ha-ssh-password>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"hass": {
"command": "npx",
"args": [
"-y",
"@jarahkon/hass-mcp-server"
],
"env": {
"HA_URL": "<ha-url>",
"HA_TOKEN": "<ha-token>",
"HA_SSH_PASSWORD": "<ha-ssh-password>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"hass": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@jarahkon/hass-mcp-server"
],
"env": {
"HA_URL": "<ha-url>",
"HA_TOKEN": "<ha-token>",
"HA_SSH_PASSWORD": "<ha-ssh-password>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"hass": {
"command": "npx",
"args": [
"-y",
"@jarahkon/hass-mcp-server"
],
"env": {
"HA_URL": "<ha-url>",
"HA_TOKEN": "<ha-token>",
"HA_SSH_PASSWORD": "<ha-ssh-password>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| HA_URL | yes | — | Home Assistant base URL (e.g. http://homeassistant.local:8123) |
| HA_TOKEN | yes | yes | Home Assistant long-lived access token |
| HA_SSH_HOST | — | — | SSH hostname for file management (optional) |
| HA_SSH_PORT | — | — | SSH port (default: 22) |
| HA_SSH_USER | — | — | SSH username (must be root) |
| HA_SSH_KEY_PATH | — | — | Path to SSH private key |
| HA_SSH_PASSWORD | — | yes | SSH password (alternative to key) |
Freshness
Stale — last maintenance signal 6mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-04-10 · 6mo ago · GitHub
Latest release
2026-03-30 · 6mo ago · GitHub · v1.0.10
Package published
no data · npm/PyPI
Registry entry updated
2026-03-25 · 7mo ago · official registry · v1.0.6
FAQ
›How do I install the Home Assistant MCP server in Claude Code?
Run: claude mcp add hass -e HA_URL='<ha-url>' -e HA_TOKEN='<ha-token>' -e HA_SSH_PASSWORD='<ha-ssh-password>' -- npx -y @jarahkon/hass-mcp-server. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Home Assistant require an API key?
Yes. It expects HA_URL, HA_TOKEN, HA_SSH_PASSWORD, of which 2 are secrets.
›Can I use Home Assistant as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Home Assistant in the official MCP registry?
Yes, as io.github.jarahkon/hass-mcp-server.
Alternatives to Home Assistant
Other iot & home automation MCP servers.