Home Assistant ServerSAFE
A Model Context Protocol (MCP) server for interacting with Home Assistant. This server provides tools to control and monitor your Home Assistant devices through MCP-enabled applications.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://smithery.ai/server/@hekmon8/Homeassistant-server-mcp)
🌟 Sponsors
A Model Context Protocol (MCP) server for interacting with Home Assistant. This server provides tools to control and monitor your Home Assistant devices through MCP-enabled applications.
This project is part of the AI Model Context Protocol (MCP) ecosystem. For more information and documentation about MCP tools, visit www.aimcp.info.
Features
- Get device states
- Control device states (on/off)
- Trigger automations
- List available entities
Installation
Installing via Smithery
To install Home Assistant MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @hekmon8/Homeassistant-server-mcp --client claude
Manual Installation
- Clone this repository:
git clone https://github.com/yourusername/homeassistant-server-mcp.git cd homeassi
af249b5e98b4OBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add homeassistant-server --env HA_TOKEN=${HA_TOKEN} -- npx -y [email protected]{
"mcpServers": {
"homeassistant-server": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"HA_TOKEN": "${HA_TOKEN}"
}
}
}
}Exposed tools (4)
3 read · 1 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
get_state | read | Get the current state of a Home Assistant entity |
list_entities | read | List all available entities in Home Assistant |
toggle_entity | read | Toggle a Home Assistant entity on/off |
trigger_automation | write | Trigger a Home Assistant automation |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | WARN |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- declared (3 observation(s))
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (2)
const HA_URL = process.env.HA_URL || 'http://192.168.100.250:8123';
axios, @types/node, typescript
Gates applied: no_behavioural_pass.
af249b5e98b4full audit observations/trust-audit/mcp-server/hekmon8__home-assistant-server.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | af249b5e98b4 | SAFE | B | 89 | first audit |
Questions
What is the Home Assistant Server MCP server?
A Model Context Protocol (MCP) server for interacting with Home Assistant. This server provides tools to control and monitor your Home Assistant devices through MCP-enabled applications.
What tools does Home Assistant Server expose?
4 in total: 3 read-only, 1 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Home Assistant Server safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Home Assistant Server need?
It reads HA_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Home Assistant Server run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as homeassistant-server at 0.1.0.
How current is this page?
The grade is for one exact copy of the source (af249b5e98b4), read on 2026-10-08. The repository is watched and re-audited when it changes.