Home Assistant

by andrelandgraf

4 stars
Not rated
GitHub

About

Demonstrates light control in Home Assistant by comparing OpenAI function calling with a standardized protocol for external tool interaction

Details

Author
andrelandgraf
Repository
andrelandgraf/mcp-vs-function-calling
GitHub stars
4
Categories
Productivity, Developer Tools, AI, Infrastructure

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Home Assistant
    Command (node, npx, python, etc.) node
    Arguments
    • Argument 1 /Users/andrelandgraf/workspaces/mcps/mcp-server/dist/index.js
    Environment
    • HOME_ASSISTANT_API_TOKEN <your-home-assistant-api-token>

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

control_lights

Control the lights in your home through the Home Assistant API. This function allows LLMs to send commands to adjust the lighting conditions.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "home assistant": {
            "env": {
                "HOME_ASSISTANT_API_TOKEN": "<your-home-assistant-api-token>"
            },
            "args": [
                "/Users/andrelandgraf/workspaces/mcps/mcp-server/dist/index.js"
            ],
            "command": "node"
        }
    }
}

Linux

{
    "env": {
        "HOME_ASSISTANT_API_TOKEN": "<your-home-assistant-api-token>"
    },
    "args": [
        "/Users/andrelandgraf/workspaces/mcps/mcp-server/dist/index.js"
    ],
    "command": "node"
}

Macos

{
    "env": {
        "HOME_ASSISTANT_API_TOKEN": "<your-home-assistant-api-token>"
    },
    "args": [
        "/Users/andrelandgraf/workspaces/mcps/mcp-server/dist/index.js"
    ],
    "command": "node"
}

Windows

{
    "env": {
        "HOME_ASSISTANT_API_TOKEN": "<your-home-assistant-api-token>"
    },
    "args": [
        "/Users/andrelandgraf/workspaces/mcps/mcp-server/dist/index.js"
    ],
    "command": "node"
}

Home Assistant

Home Assistant is an open-source home automation platform. I run it on a Raspberry Pi in my home.
Home Assistant controls my lights, and you can control it via the Home Assistant WebSocket API.

I built out the ./data-manager and ./hass-ws-client utils while playing around with Home Assistant a while ago. I thought it would be a fun example for an external tool. However, the Home Assistant code isn't the focus of this repository.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.