Skip to main content

ha-config-mcp

CLI & MCP server for Home Assistant configuration management via WebSocket API.

Manage integrations, config flows, and Lovelace dashboards without touching the HA web UI.

Note: This project is fully developed and maintained by Claude (Anthropic). Don't expect it to work out of the box, though it probably will.

Install

# Nix (recommended)
nix run github:aster-void/ha-config-mcp -- --help
nix profile install github:aster-void/ha-config-mcp

# uvx / pipx
uvx ha-config-mcp --help
pipx install ha-config-mcp

Authentication

Set a Long-Lived Access Token:

export HA_TOKEN="your-token"
# Or place it in ~/.config/ha-assist-token

CLI Usage

# List integrations
ha-config entries list
ha-config entries list -d music_assistant

# Add a new integration (interactive config flow)
ha-config flow start hue
# → returns flow_id and data_schema
ha-config flow step <flow_id> '{"host": "192.168.1.100"}'

# Edit an existing integration's settings
ha-config options start <entry_id>
ha-config options step <flow_id> '{"option": "value"}'

# Delete an integration
ha-config entries delete <entry_id>

# Lovelace dashboards
ha-config lovelace list
ha-config lovelace get
ha-config lovelace get my-dashboard
ha-config lovelace save dashboard.yaml my-dashboard

Output is YAML by default. Use --json for JSON output.

MCP Server

# Start MCP server (stdio)
ha-config mcp

# Add to Claude Code
claude mcp add ha-config -- ha-config mcp
# or with nix
claude mcp add ha-config -- nix run github:aster-void/ha-config-mcp -- mcp

MCP Tools

Tool Description
config_entries_list(domain?) List installed integrations
config_entries_get(entry_id) Get a single config entry
config_entries_update(entry_id, ...) Update entry title/preferences
config_entries_delete(entry_id) Delete an integration
config_flow_start(domain) Start setup wizard
config_flow_step(flow_id, user_input) Advance a setup step
config_flow_abort(flow_id) Cancel a setup flow
options_flow_start(entry_id) Start options editor
options_flow_step(flow_id, user_input) Advance an options step
lovelace_dashboards_list() List all dashboards
lovelace_config_get(url_path?) Get dashboard config
lovelace_config_save(config, url_path?) Save dashboard config (full overwrite)

Environment Variables

Variable Default Description
HA_URL ws://localhost:8123/api/websocket HA WebSocket URL
HA_TOKEN — Long-Lived Access Token
HA_OUTPUT yaml Output format: yaml or json

License

MIT

Metadata

Release files for ha-config-mcp 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ha-config-mcp 0.1.1
File Size Uploaded Provenance Actions
ha_config_mcp-0.1.1.tar.gz 56.9 kB With provenance Details for ha_config_mcp-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ha-config-mcp 0.1.1
File Interpreter ABI Platform Actions
ha_config_mcp-0.1.1-py3-none-any.whl Python 3 none any Details for ha_config_mcp-0.1.1-py3-none-any.whl

Total release size: 63.5 kB

Release files / ha_config_mcp-0.1.1.tar.gz

Download URL ha_config_mcp-0.1.1.tar.gz
Size 56.9 kB
Tags Source
SHA-256 checksum
How to use checksums
54acf5b7ea6354448c31b134567c483c48cc9b9d96184e33b0dc77b47e63ddc0
BLAKE2b-256 checksum
How to use checksums
1bd546933957cdb5108ed28f1213dba29232d42f852b59e1984c4e81ba05f04a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 23, 2026.

Transparency log

Release files / ha_config_mcp-0.1.1-py3-none-any.whl

Download URL ha_config_mcp-0.1.1-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
40059174fce63d86490fc97a0ab4f0a8cecfbddc219211d20d2bcad14aa0f060
BLAKE2b-256 checksum
How to use checksums
345554b21f32ad4d462ab05e2129af221de6ed41f7f03fdafa8280c782bc8ca2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 23, 2026.

Transparency log

Security for ha-config-mcp 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ha_config_mcp-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page