MCP server exposing Home Assistant REST API functionality
Project description
mcp-homeassistant
MCP server exposing Home Assistant 2026.4.1 REST API functionality.
mcp-name: io.github.daedalus/mcp-homeassistant
Install
pip install mcp-homeassistant
Configuration
Set the following environment variables:
HA_URL: Home Assistant URL (default: http://localhost:8123)HA_TOKEN: Long-Lived Access Token (required)
Usage
export HA_URL="http://homeassistant:8123"
export HA_TOKEN="your_long_lived_access_token"
mcp-homeassistant
Tools
The MCP server exposes the following tools:
get_api_status- Check if the API is runningget_config- Get HA configurationget_components- List loaded componentsget_events- List event types and listener countsget_services- List available services by domainget_states- Get all entity statesget_state- Get a specific entity stateset_state- Update or create an entity statedelete_state- Delete an entity statefire_event- Fire a custom eventcall_service- Call a Home Assistant servicerender_template- Render a Jinja templateget_history- Get historical state changesget_logbook- Get logbook entriescheck_config- Validate configuration.yamlhandle_intent- Handle an intentget_error_log- Get error logget_calendars- List calendar entitiesget_calendar_events- Get calendar events
Resources
homeassistant://config- Current confighomeassistant://states- All entity stateshomeassistant://services- Available serviceshomeassistant://components- Loaded components
Development
git clone https://github.com/daedalus/mcp-homeassistant.git
cd mcp-homeassistant
pip install -e ".[test]"
# run tests
pytest
# format
ruff format src/ tests/
# lint
ruff check src/ tests/
# type check
mypy src/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_homeassistant-0.1.0.tar.gz.
File metadata
- Download URL: mcp_homeassistant-0.1.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42ab7f4ace22b871b15783cbd616ff9d71ba48f8e8af26097bf0c32b6d96e624
|
|
| MD5 |
842c1173e92376d3d414d247e0a4808c
|
|
| BLAKE2b-256 |
c6390a4fb6f3ad763091d11d6e8b7b85cd0b3f27a71c35d1c1ac8f8049e93e44
|
Provenance
The following attestation bundles were made for mcp_homeassistant-0.1.0.tar.gz:
Publisher:
pypi-publish.yml on daedalus/mcp-homeassistant
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_homeassistant-0.1.0.tar.gz -
Subject digest:
42ab7f4ace22b871b15783cbd616ff9d71ba48f8e8af26097bf0c32b6d96e624 - Sigstore transparency entry: 1239494637
- Sigstore integration time:
-
Permalink:
daedalus/mcp-homeassistant@f53faae965985fdc47f5541980b2c42dbfdc71d2 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/daedalus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@f53faae965985fdc47f5541980b2c42dbfdc71d2 -
Trigger Event:
release
-
Statement type:
File details
Details for the file mcp_homeassistant-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mcp_homeassistant-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
192d64a6a625588b252c81480084be7456071d25c028547e78d479ed0d6060bc
|
|
| MD5 |
3e3f0191b700480a81c7020943789f7d
|
|
| BLAKE2b-256 |
9e978b8b77914fa4ebcc32dd32cbc42495d8d82a431dec6435e3bee40c06c93c
|
Provenance
The following attestation bundles were made for mcp_homeassistant-0.1.0-py3-none-any.whl:
Publisher:
pypi-publish.yml on daedalus/mcp-homeassistant
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_homeassistant-0.1.0-py3-none-any.whl -
Subject digest:
192d64a6a625588b252c81480084be7456071d25c028547e78d479ed0d6060bc - Sigstore transparency entry: 1239494638
- Sigstore integration time:
-
Permalink:
daedalus/mcp-homeassistant@f53faae965985fdc47f5541980b2c42dbfdc71d2 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/daedalus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@f53faae965985fdc47f5541980b2c42dbfdc71d2 -
Trigger Event:
release
-
Statement type: