Home Assistant MCP Server
About
MCP server for full Home Assistant control — dashboards, files, automations, add-ons, and more
Use this server
Add it to your MCP client. The catalogue lists this config verbatim from its source — it does not run, download, or vouch for the server. Review the command before you run it.
Transportstdio (runs a local command)
Env vars
HA_URL HA_TOKEN HA_SSH_HOST HA_SSH_PORT HA_SSH_USER HA_SSH_KEY_PATH HA_SSH_PASSWORDClaude Code
claude mcp add --env HA_URL= --env HA_TOKEN= --env HA_SSH_HOST= --env HA_SSH_PORT= --env HA_SSH_USER= --env HA_SSH_KEY_PATH= --env HA_SSH_PASSWORD= hass-mcp-server -- npx @jarahkon/hass-mcp-server
Cursor
If the button doesn't open Cursor, use the JSON below — Cursor accepts the same mcpServers config.
VS Code
code --add-mcp '{"name":"hass-mcp-server","command":"npx","args":["@jarahkon/hass-mcp-server"],"env":{"HA_URL":"","HA_TOKEN":"","HA_SSH_HOST":"","HA_SSH_PORT":"","HA_SSH_USER":"","HA_SSH_KEY_PATH":"","HA_SSH_PASSWORD":""}}'
JSON
{
"mcpServers": {
"hass-mcp-server": {
"command": "npx",
"args": [
"@jarahkon/hass-mcp-server"
],
"env": {
"HA_URL": "",
"HA_TOKEN": "",
"HA_SSH_HOST": "",
"HA_SSH_PORT": "",
"HA_SSH_USER": "",
"HA_SSH_KEY_PATH": "",
"HA_SSH_PASSWORD": ""
}
}
}
}
Environment variables are listed by name only — fill in your own values. Entries never carry secrets.