Skip to main content

A Model Context Protocol Server for Home Assistant

Project description

mcp-server-home-assistant

A Model Context Protocol Server for Home Assistant. See Model Context Protocol for context.

Usage in Claude Desktop

  1. Install the home-assistant-model-context-protocol custom component in your Home Assistant instance

  2. Create a Long Lived Access Token

  3. Clone this git repo to a path like /Users/allen/Development/mcp-server-home-assistant

  4. Edit your claude_desktop_config.json with something like this and include your home assistant url and api token:

    {
        "mcpServers": {
            "Home-assistant": {
                "command": "uv",
                "args": [
                    "--directory",
                    "/Users/allen/Development/mcp-server-home-assistant",
                    "run",
                    "mcp-server-home-assistant",
                    "-v",
                    "-v"
                ],
                "env": {
                    "HOME_ASSISTANT_WEB_SOCKET_URL": "http://localhost:8123/api/websocket",
                    "HOME_ASSISTANT_API_TOKEN": "byJhbVci0iJIUzI1ii1sInR5cCI6IkpXVCJ9.....
                }
            }
        }
    }
    
  5. You can view the logs e.g. ~Library/Logs/Claude/mcp-server-Home-assistant.log to understand what is happening

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_server_home_assistant-0.1.0.tar.gz (44.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_server_home_assistant-0.1.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_home_assistant-0.1.0.tar.gz.

File metadata

File hashes

Hashes for mcp_server_home_assistant-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bd2105b93584d7f714df879b8152d6141f87302df0a5a74200e701831d5c1add
MD5 cc4116df7f2af4c10d05405315c242e6
BLAKE2b-256 c780f02bef1bc5116782ad64f46d1f4b3d844926e6504f0b1b20db5691fcf0b3

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_server_home_assistant-0.1.0.tar.gz:

Publisher: publish.yaml on allenporter/mcp-server-home-assistant

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_server_home_assistant-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_home_assistant-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aa315c8ce68dfa41810dbad03c6238343912c6912cf8b6ba6873475510b53e35
MD5 e180e3d2fc9ecf0d7dd363638d4adc8c
BLAKE2b-256 257d5774c72ec98ab6bee849462dbf3d56dd67583afcee4dda989054a19343f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_server_home_assistant-0.1.0-py3-none-any.whl:

Publisher: publish.yaml on allenporter/mcp-server-home-assistant

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page