
An MCP server for Home Assistant
An MCP server for Home Assistant
·
A Model Context Protocol (MCP) server project that integrates with Home Assistant to provide smart home control capabilities.
The server provides prompts for each domain's set of tools.
The server implements control for various Home Assistant domains. Currently supports:
Example tools include:
light-turn_on()
climate-turn_off()
alarm_control_panel-disarm()
lock-lock()
humidifier-turn_off()Create a .env file in the root directory with:
HOMEASSISTANT_TOKEN=your_long_lived_access_token_here # get it from your Home Assistant instance after onboarding
HOMEASSISTANT_BASE_URL=your_home_assistant_url_here # e.g. http://homeassistant.local:8123Follow the instructions on how to install Home Assistant and get a long lived access token.
On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
To prepare the package for distribution:
uv syncuv buildThis will create source and wheel distributions in the dist/ directory.
uv publishNote: You'll need to set PyPI credentials via environment variables or command flags:
--token or UV_PUBLISH_TOKEN--username/UV_PUBLISH_USERNAME and --password/UV_PUBLISH_PASSWORDSince MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the MCP Inspector.
You can launch the MCP Inspector via npm with this command:
npx @modelcontextprotocol/inspector uv --directory /Users/miguel/Documents/home-assistant-server/home-assistant-server run home-assistant-serverUpon launching, the Inspector will display a URL that you can access in your browser to begin debugging.
Thanks for your interest in contributing to this project!
Please see CONTRIBUTING.md for guidelines.
MIT License - see LICENSE for details.
Pick your client and paste the snippet. Each one is the same server, written the way that client expects it.
claude mcp add home-assistant-server -- uv --directory /path/to/home-assistant-server run home-assistant-server{
"mcpServers": {
"home-assistant-server": {
"args": [
"--directory",
"/path/to/home-assistant-server",
"run",
"home-assistant-server"
],
"command": "uv"
}
}
}code --add-mcp '{"name":"home-assistant-server","args":["--directory","/path/to/home-assistant-server","run","home-assistant-server"],"command":"uv"}'[mcp_servers.home-assistant-server]
command = "uv"
args = ["--directory", "/path/to/home-assistant-server", "run", "home-assistant-server"]Runs locally on your device. Your client starts the server itself, so nothing has to be hosted.
Paste this prompt into your agent. It reads this page and does the setup for you.
Read https://aiagentslisting.com/mcp/home-assistant-mcp-server to learn what the "Home Assistant MCP Server" MCP server does and how to install it. Add it to my coding agent's MCP configuration as documented on that page, then confirm the server connects and list the tools it exposes.Agents can also browse this directory over MCP at https://aiagentslisting.com/api/mcp
npx @modelcontextprotocol/inspector uv --directory /Users/miguel/Documents/home-assistant-server/home-assistant-server run home-assistant-serverThis server runs locally, so we can't read its tool list over the web yet.
We could not run this server: it ships no npx package for our sandbox and no public endpoint. The four checks that need a live server are left out, and the grade tops out at B until one exists.
Maintain this server? Claiming proves you own the listing and earns the last 4 points.
Claim this listingPaste this line near the top of your repository's README. The badge always renders the current score.
[](https://aiagentslisting.com/mcp/home-assistant-mcp-server)Nothing comparable is listed yet.
No tagged releases on record.
Connect to the AI Agents Listing MCP server at https://aiagentslisting.com/api/mcp using the HTTP transport and complete the sign-in when it asks. Then call the submit_review tool for the listing "home-assistant-mcp-server" with a rating from 1 to 5 and a short note on what worked and what did not.No reviews yet
Be the first to share your experience with this tool.
One email a week. New agents, MCP servers and skills, and what is actually getting traction.