Home Assistant MCP Server
Provides tools for browsing and controlling Home Assistant devices and services, including listing entities, checking device states, and calling services to control lights, switches, sensors, and other smart home devices.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Home Assistant MCP Server turn on the living room lights"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Home Assistant MCP Server
A Model Context Protocol (MCP) server that provides access to Home Assistant entities and services.
Features
List Entities: Browse all your Home Assistant devices (lights, switches, sensors, etc.)
Get Entity State: Check the current state and attributes of any entity
Call Services: Control devices (turn lights on/off, adjust climate, etc.)
List Services: Discover available Home Assistant services
Installation
npm install
npm run buildConfiguration
Set the following environment variables:
HASS_HOST: Your Home Assistant URL (e.g.,https://your-instance.ui.nabu.casa)HASS_TOKEN: Your Home Assistant long-lived access token
Usage with VS Code
Add to your VS Code settings.json:
{
"github.copilot.chat.mcp.servers": {
"homeassistant": {
"command": "node",
"args": ["C:/Repos/HomeAssistant-mcp/dist/index.js"],
"env": {
"HASS_HOST": "https://your-instance.ui.nabu.casa",
"HASS_TOKEN": "your-long-lived-token"
}
}
}
}Available Tools
list_entities
List all Home Assistant entities, optionally filtered by domain.
Parameters:
domain(optional): Filter by domain (e.g., "light", "switch", "sensor")
get_entity_state
Get the current state and attributes of a specific entity.
Parameters:
entity_id(required): The entity ID (e.g., "light.living_room")
call_service
Call a Home Assistant service to control devices.
Parameters:
domain(required): Service domain (e.g., "light", "switch")service(required): Service name (e.g., "turn_on", "turn_off")entity_id(optional): Target entity IDdata(optional): Additional service data (brightness, color, etc.)
list_services
List all available Home Assistant services.
License
MIT
Available Tools
4 toolscall_serviceC
Call a Home Assistant service (e.g., turn on a light, set climate)
Inputs: domain (required), service (required), entity_id, data.
get_entity_stateC
Get the current state and attributes of a specific entity
Inputs: entity_id (required).
list_entitiesB
List all Home Assistant entities (lights, switches, sensors, etc.)
Inputs: domain.
list_servicesB
List all available Home Assistant services
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose with no overlap: call_service performs actions, get_entity_state retrieves specific entity data, list_entities enumerates all entities, and list_services enumerates all services. The descriptions make it unambiguous which tool to use for each operation.
All tools follow a consistent verb_noun pattern (call_service, get_entity_state, list_entities, list_services) with clear, descriptive names. The naming convention is uniform throughout the set, making it easy to predict tool functions.
With 4 tools, the count is appropriate for a Home Assistant server, covering core operations like querying and controlling entities. It might be slightly lean for advanced workflows (e.g., missing event listening or configuration tools), but it's well-scoped for basic automation tasks.
The toolset covers essential CRUD-like operations for Home Assistant: listing and getting entities, and calling services. A minor gap exists in not providing tools for entity creation/deletion or event handling, but agents can perform core tasks effectively with the available tools.
Related MCP Connectors
A TypeScript MCP server for Home Assistant, enabling programmatic management of entities, automati…
Control your existing Philips lights, Sonos speakers, Roborock vacuums and other supported devices through Port OS cloud. Give ChatGPT, Claude and other MCP-compatible assistants access to the devices you connect. Turn off the living room lights, play music on your speakers, adjust the thermostat, run a vacuum in a room, check a camera snapshot or find a connected tracker. Available actions depend on your linked provider accounts and each device’s supported capabilities. Port OS runs in the cloud; no local server is required. You choose the account, device and capability permissions each assistant receives. Device operations require user OAuth; public tool discovery does not grant device access. Port OS is in alpha. Setup: https://portoperatingsystem.com/docs/getting-started/ Support: https://portoperatingsystem.com/contact/
MCP connector that lets ChatGPT list, search, and run your Apple Shortcuts via a local Mac agent