Skip to content
Cursor

Home Assistant for Cursor

com.foreverworks/home-assistant

Read your Home Assistant's states, areas and history, and run its actions, approving locks first.

client:Cursor transport:stdio runtime:npm

Install Home Assistant in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "home-assistant": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@foreverworks/mcp-home-assistant"
      ],
      "env": {
        "HOME_ASSISTANT_URL": "<HOME_ASSISTANT_URL>",
        "HOME_ASSISTANT_TOKEN_FILE": "<HOME_ASSISTANT_TOKEN_FILE>",
        "HOME_ASSISTANT_CONFIRM_DOMAINS": "<HOME_ASSISTANT_CONFIRM_DOMAINS>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

Home Assistant in other clients