Skip to main content
Glama

mcp-服务器-家庭助理

适用于 Home Assistant 的模型上下文协议服务器。请参阅模型上下文协议了解上下文。

此集成所需的自定义组件正在移至 Home Assistant Core,网址为https://github.com/home-assistant/core/pull/134122

在 Claude Desktop 中的使用

  1. 在您的 Home Assistant 实例中安装home-assistant-model-context-protocol自定义组件

  2. 创建长期访问令牌

  3. 将此 git repo 克隆到类似/Users/allen/Development/mcp-server-home-assistant路径

  4. 使用类似这样的内容编辑您的claude_desktop_config.json并包含您的家庭助理 URL 和 api 令牌:

    {
        "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. 您可以查看日志,例如~Library/Logs/Claude/mcp-server-Home-assistant.log来了解正在发生的事情

-
security - not tested
A
license - permissive license
-
quality - not tested

Resources

Looking for Admin?

Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/allenporter/mcp-server-home-assistant'

If you have feedback or need assistance with the MCP directory API, please join our Discord server