Skip to main content
Glama

대장간 배지

홈 어시스턴트 MCP

이는 Home Assistant와 통합하기 위한 도구를 제공하는 MCP(Model Context Protocol) 서버로, AI 어시스턴트가 스마트 홈 기기와 상호 작용할 수 있도록 해줍니다.

설정

Smithery를 통해 설치

Smithery를 통해 Claude Desktop용 Home Assistant 통합을 자동으로 설치하려면:

지엑스피1

수동 설치

  1. 종속성 설치:

npm install
  1. 환경 변수 구성:

    • Home Assistant에서 장기 액세스 토큰을 받으세요

    • 프로젝트 루트의 .env 파일에서 환경 변수를 구성합니다.

HOME_ASSISTANT_URL=http://your-home-assistant:8123
HOME_ASSISTANT_TOKEN=your_token_here

Related MCP server: Home Assistant MCP Server

서버 시작

npm start

개발을 위해:

npm run dev

사용 가능한 도구

홈 어시스턴트 API 검증

  • homeassistant_api : Home Assistant API가 온라인 상태인지 확인합니다.

    • 매개변수: 없음

    • 예: homeassistant_api()

엔티티 상태 가져오기

  • homeassistant_get_state : Home Assistant 엔티티의 현재 상태를 가져옵니다.

    • 매개변수: entity_id (엔터티 ID)

    • 예: homeassistant_get_state("light.living_room")

콜 서비스

  • homeassistant_call_service : Home Assistant 엔티티에 대한 서비스를 호출합니다.

    • 매개변수:

      • entity_id (엔터티 ID)

      • domain (서비스 도메인)

      • service (전화할 서비스)

    • 예: homeassistant_call_service("light.living_room", "light", "turn_on")

개발

이 프로젝트에서는 TypeScript와 MCP SDK 라이브러리를 사용하여 Claude, GPT 등의 언어 모델에서 액세스할 수 있는 도구를 만듭니다.

새로운 도구를 추가하려면:

  1. src/tools/[category] 에 모듈을 생성합니다.

  2. 기존 패턴에 따라 도구를 구현하세요

  3. src/index.ts 에 모듈을 등록합니다.

기여

기여를 환영합니다! 이슈를 개설하거나 풀 리퀘스트를 제출해 주세요.

특허

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

Available Tools

3 tools
homeassistant_apiB

Verify if the Home Assistant API is online

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

B3.1/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool verifies if the API is online, implying a read-only check, but doesn't specify what 'online' means (e.g., connectivity, authentication status), potential side effects, or response format. This is a significant gap for a tool with zero annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, clear sentence with no wasted words. It's front-loaded with the core purpose, making it easy to parse and understand quickly. Every part of the sentence earns its place by directly contributing to the tool's intent.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (zero parameters, no output schema), the description is minimal but adequate for basic understanding. However, without annotations or an output schema, it lacks details on behavioral traits (e.g., what 'verify' entails, error handling) and return values, making it incomplete for reliable agent use in more complex scenarios.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has zero parameters, and schema description coverage is 100%, so the schema fully documents the lack of inputs. The description doesn't need to add parameter information, and it appropriately doesn't mention any. A baseline of 4 is applied for zero-parameter tools with high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with a specific verb ('verify') and resource ('Home Assistant API'), making it immediately understandable. However, it doesn't explicitly differentiate from sibling tools like homeassistant_get_state, which might also check system status, so it doesn't reach the highest score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like homeassistant_get_state or homeassistant_call_service. There's no mention of prerequisites, context, or exclusions, leaving the agent to infer usage based solely on the tool name and description.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

homeassistant_call_serviceC

Call a service of a Home Assistant entity

ParametersJSON Schema
NameRequiredDescriptionDefault
domainYesThe domain of the service
entity_idYesThe entity ID of the Home Assistant entity
serviceYesThe service to call

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool calls a service but doesn't explain what that entails—whether it's a read, write, or destructive operation, what permissions are needed, or how errors are handled. This leaves significant gaps for a tool that likely performs mutations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence with zero waste. It's appropriately sized and front-loaded, directly stating the tool's purpose without unnecessary elaboration.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of calling a service (likely a mutation), the lack of annotations and output schema, and the description's minimal detail, this is incomplete. The agent lacks crucial information about behavior, return values, and error handling, making it inadequate for safe and effective use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 100%, so the schema already documents all three parameters (domain, entity_id, service). The description adds no additional meaning beyond what the schema provides, such as examples or contextual usage, but meets the baseline for adequate coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('call a service') and the target ('Home Assistant entity'), providing a specific verb+resource combination. However, it doesn't distinguish this tool from its siblings (homeassistant_api and homeassistant_get_state), which would require explicit differentiation to earn a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like homeassistant_api or homeassistant_get_state. There's no mention of prerequisites, use cases, or exclusions, leaving the agent with minimal context for tool selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

homeassistant_get_stateC

Get the state of a Home Assistant entity

ParametersJSON Schema
NameRequiredDescriptionDefault
entity_idYesThe entity ID of the Home Assistant entity

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. It states the action ('Get the state') but doesn't describe what the state includes (e.g., attributes, last_changed), error conditions (e.g., invalid entity_id), authentication requirements, or rate limits. This leaves significant gaps for a read operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, clear sentence with zero waste. It's appropriately sized for a simple tool and front-loads the core purpose without unnecessary elaboration. Every word earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no annotations and no output schema, the description is incomplete. It doesn't explain what the state return value includes (e.g., JSON structure with attributes), error handling, or how it differs from sibling tools. For a state retrieval tool, this leaves the agent guessing about behavioral outcomes.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, with the 'entity_id' parameter fully documented. The description adds no additional meaning beyond what the schema provides (e.g., no examples of entity_id format or constraints). Baseline 3 is appropriate since the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with a specific verb ('Get') and resource ('state of a Home Assistant entity'). It distinguishes from siblings like 'homeassistant_call_service' by focusing on state retrieval rather than service invocation. However, it doesn't explicitly differentiate from 'homeassistant_api' which might be more generic.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. There's no mention of prerequisites, when to choose this over 'homeassistant_api' for state retrieval, or any context about entity availability. Usage is implied but not explicitly stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 3 tool updatesv1.0.0
    • First observedhomeassistant_api
    • First observedhomeassistant_call_service
    • First observedhomeassistant_get_state

TDQS

B3.3/5.0

Scored across 3 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: one checks API status, one calls services, and one retrieves entity states. There is no overlap in functionality, making it easy for an agent to select the correct tool without confusion.

Naming Consistency5/5

All tool names follow a consistent snake_case pattern with a 'homeassistant_' prefix and descriptive verb_noun combinations (api, call_service, get_state). This uniformity enhances readability and predictability.

Tool Count3/5

With only 3 tools, the set feels thin for a Home Assistant integration, which typically involves more operations like listing entities, setting states, or handling events. While the tools cover basic needs, the scope could be expanded for better coverage.

Completeness3/5

The tools provide core functionality (API check, service calls, state retrieval) but lack operations like listing entities, updating states, or handling events. This creates minor gaps that agents might need to work around, though basic workflows are supported.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to interact with Home Assistant smart home devices through natural language. Control devices, manage automations, query entity states, and retrieve historical data across your home automation system.
    1
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables AI assistants to interact with Home Assistant to control smart home devices, query entity states, and manage automations using natural language. It provides over 90 tools for comprehensive system management, including dashboard configuration, service execution, and automation debugging.
    MIT
  • A
    license
    A
    quality
    F
    maintenance
    Enables controlling and querying Home Assistant devices and services via natural language. Supports state retrieval, listing states, and calling any Home Assistant service.
    13
    138 npm
    5
    MIT