Home Assistant MCP Server

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Allows to interact with Home Assistant devices, including getting device states, controlling device states (on/off), triggering automations, and listing available entities

홈 어시스턴트 MCP 서버

Home Assistant와 상호 작용하기 위한 모델 컨텍스트 프로토콜(MCP) 서버입니다. 이 서버는 MCP 지원 애플리케이션을 통해 Home Assistant 기기를 제어하고 모니터링하는 도구를 제공합니다.

이 프로젝트는 AI 모델 컨텍스트 프로토콜(MCP) 생태계의 일부입니다. MCP 도구에 대한 자세한 정보와 문서는 www.aimcp.info 에서 확인하세요.

특징

  • 장치 상태 가져오기
  • 제어 장치 상태(켜짐/꺼짐)
  • 자동화 트리거
  • 사용 가능한 엔터티 나열

설치

  1. 이 저장소를 복제하세요:

지엑스피1

  1. 종속성 설치:
npm install
  1. 프로젝트를 빌드하세요:
npm run build
  1. 다음을 MCP 설정 파일(일반적으로 VSCode의 경우 ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json 에 위치)에 추가하여 MCP 서버를 구성합니다.
{ "mcpServers": { "homeassistant": { "command": "node", "args": ["/path/to/homeassistant-mcp/homeassistant-server/build/index.js"], "env": { "HA_URL": "http://your-homeassistant-url:8123", "HA_TOKEN": "your-long-lived-access-token" } } } }

your-homeassistant-urlyour-long-lived-access-token Home Assistant 인스턴스 URL과 액세스 토큰으로 바꾸세요.

용법

서버는 다음과 같은 도구를 제공합니다.

1. 장치 상태 가져오기

// Example usage use_mcp_tool({ server_name: "homeassistant", tool_name: "get_state", arguments: { entity_id: "light.living_room" } });

2. 장치 상태 전환

// Example usage use_mcp_tool({ server_name: "homeassistant", tool_name: "toggle_entity", arguments: { entity_id: "switch.bedroom", state: "on" // or "off" } });

3. 트리거 자동화

// Example usage use_mcp_tool({ server_name: "homeassistant", tool_name: "trigger_automation", arguments: { automation_id: "automation.morning_routine" } });

4. 엔터티 나열

// Example usage use_mcp_tool({ server_name: "homeassistant", tool_name: "list_entities", arguments: { domain: "light" // optional, filters by domain } });

기여하다

참여를 환영합니다! 다음과 같은 방법으로 도움을 주세요.

  1. 저장소를 포크하세요
  2. 기능 브랜치를 생성합니다( git checkout -b feature/amazing-feature )
  3. 변경 사항을 커밋하세요( git commit -m 'Add some amazing feature' )
  4. 브랜치에 푸시( git push origin feature/amazing-feature )
  5. 풀 리퀘스트 열기

적절하게 테스트를 업데이트하고 기존 코드 스타일을 따르세요.

선적 서류 비치

MCP 도구 및 생태계에 대한 자세한 설명서는 다음과 같습니다.

  • www.aimcp.info 를 방문하세요
  • 웹사이트에서 MCP 도구 디렉토리를 확인하세요
  • 통합 가이드와 모범 사례를 읽어보세요

특허

이 프로젝트는 MIT 라이선스에 따라 라이선스가 부여되었습니다. 자세한 내용은 아래를 참조하세요.

MIT License Copyright (c) 2024 homeassistant-mcp Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

보안

이 서버를 안전하게 사용하려면:

  1. Home Assistant 인스턴스에는 항상 HTTPS를 사용하세요.
  2. 액세스 토큰을 안전하게 보관하고 버전 제어에 커밋하지 마십시오.
  3. 액세스 토큰을 정기적으로 순환하세요
  4. 민감한 정보에는 환경 변수를 사용하세요

지원하다

문제가 발생하거나 질문이 있는 경우 다음을 확인하세요.

  1. 저장소에 있는 기존 이슈를 확인하세요
  2. 문제가 보고되지 않은 경우 새 문제를 생성하세요.
  3. 문제를 보고할 때 가능한 한 많은 맥락을 제공하세요.
  4. 추가 지원 리소스를 보려면 www.aimcp.info를 방문하세요.

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

모델 컨텍스트 프로토콜을 통해 Home Assistant 장치 및 자동화와의 상호작용을 가능하게 하는 서버로, 이를 통해 사용자는 장치 상태를 모니터링하고, 장치를 제어하고, 자동화를 트리거하고, 엔터티를 나열할 수 있습니다.

  1. Features
    1. Installation
      1. Usage
        1. 1. Get Device State
        2. 2. Toggle Device State
        3. 3. Trigger Automation
        4. 4. List Entities
      2. Contributing
        1. Documentation
          1. License
            1. Security
              1. Support
                ID: io8m0yc5wq