Home Assistant MCP
家庭助理 MCP
这是一个MCP(模型上下文协议)服务器,提供与Home Assistant集成的工具,让AI助手可以与智能家居设备进行交互。
设置
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 Home Assistant Integration:
npx -y @smithery/cli install @guilhermelirio/homeassistant-mpc --client claude手动安装
安装依赖项:
npm install配置环境变量:
从你的 Home Assistant 获取长期访问令牌
在项目根目录下的
.env文件中配置环境变量:
HOME_ASSISTANT_URL=http://your-home-assistant:8123
HOME_ASSISTANT_TOKEN=your_token_hereRelated MCP server: Enhanced Home Assistant MCP
启动服务器
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 等语言模型访问的工具。
要添加新工具:
在
src/tools/[category]中创建一个模块按照现有模式实施你的工具
在
src/index.ts中注册模块
贡献
欢迎贡献代码!欢迎随时提交 issue 或 PR。
执照
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅 LICENSE 文件。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to control and monitor Home Assistant smart home devices through natural language interactions. Supports device control, entity state monitoring, history access, and automation generation with both MCP protocol and standalone HTTP REST API modes.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables comprehensive control and monitoring of Home Assistant smart home devices, automations, scenes, and system management through AI assistants. Supports lights, climate, media players, notifications, history tracking, and advanced automation workflows.92MIT
- AlicenseNot gradedqualityDmaintenanceEnables 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.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables 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
Related MCP Connectors
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Universal AI API Orchestrator — 1,554 tools, 96 services. One install.
Provides cloud browser automation capabilities using Stagehand and Browserbase, enabling LLMs to i…
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/guilhermelirio/homeassistant-mpc'
If you have feedback or need assistance with the MCP directory API, please join our Discord server