Home Assistant for VS Code
com.foreverworks/home-assistant
Read your Home Assistant's states, areas and history, and run its actions, approving locks first.
client:VS Code
transport:stdio
runtime:npm
Install Home Assistant in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "home-assistant-url",
"description": "HOME_ASSISTANT_URL",
"password": true
},
{
"type": "promptString",
"id": "home-assistant-token-file",
"description": "HOME_ASSISTANT_TOKEN_FILE",
"password": true
},
{
"type": "promptString",
"id": "home-assistant-confirm-domains",
"description": "HOME_ASSISTANT_CONFIRM_DOMAINS",
"password": true
}
],
"servers": {
"home-assistant": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@foreverworks/mcp-home-assistant"
],
"env": {
"HOME_ASSISTANT_URL": "${input:home-assistant-url}",
"HOME_ASSISTANT_TOKEN_FILE": "${input:home-assistant-token-file}",
"HOME_ASSISTANT_CONFIRM_DOMAINS": "${input:home-assistant-confirm-domains}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs