Skip to content
VS Code

home assistant mcp for VS Code

io.github.coolver/home-assistant-mcp

Vibecode your Home Assistant setup from your IDE: automations, dashboards, themes and configs

client:VS Code transport:stdio runtime:npm

Install home assistant mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "ha-agent-url",
      "description": "HA_AGENT_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ha-agent-key",
      "description": "HA_AGENT_KEY",
      "password": true
    }
  ],
  "servers": {
    "home-assistant-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@coolver/home-assistant-mcp"
      ],
      "env": {
        "HA_AGENT_URL": "${input:ha-agent-url}",
        "HA_AGENT_KEY": "${input:ha-agent-key}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

home assistant mcp in other clients