Homeassistant MCP 9bcc37c0

MCP浏览器工具

提供方 geekychris

浏览器工具 未标注 Token 社区 / 第三方

一个通过AI控制Home Assistant的综合解决方案,提供MCP服务器、Spring Boot服务和AI聊天助手功能,适用于智能家居设备管理和自动化控制。

一句话选型结论

按资料字段整理

Homeassistant MCP 9bcc37c0 属于浏览器工具类 MCP 服务器,传输方式未标注,Token,没有现成安装命令,需按官方文档接入。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

分类浏览器工具 传输方式未标注 鉴权Token 部署方式未标注
GitHub 星标 1 仓库热度,无公开仓库时显示未标注
工具数 未标注 暴露给模型的工具数量
资源 / 提示词 0 / 0 资源与提示词模板数量
维护方 社区 / 第三方 核验等级 仅资料核对

工具与能力

浏览器工具
数量来自来源目录的标注,具体工具清单以官方文档为准
工具数量未标注暴露给模型可调用的工具个数
资源数量0可读取的资源条目
提示词数量0内置提示词模板数量

能力标签

适用场景

智能家居JavaScript本地部署AI控制HomeAssistantRESTAPI自动化

安装与配置

未标注 Token
上游未给出传输方式
  1. 1
    准备运行环境

    按官方文档确认运行环境(常见为 Node.js 或 Python),装好后再执行安装命令。

  2. 2
    安装服务

    复制上面的安装命令执行;命令里带占位符的位置,换成自己的密钥或路径。

  3. 3
    写入客户端配置

    在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4
    验证是否可用

    连接成功后随便调一个只读工具,确认能返回结果,再接入正式流程。

典型使用场景

3 类
按分类与标签整理的常见用法,具体以官方文档为准
自动操作网页

打开页面、点击、填表,把浏览器动作交给模型执行。

抓取结构化数据

把页面内容整理成表格或 JSON,省掉手工复制粘贴。

关键流程回归

按步骤检查页面是否正常,回归时少漏环节。

选择建议

选之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 基础信息齐全,可以先按官方文档接入试跑。

先想清楚的地方

  • 没有现成安装命令,需要按官方文档自己填启动命令和参数。
  • 使用前要准备好Token对应的凭据,并按最小权限配置。
  • 资料没标注工具数量,实际能力要装好后确认。
  • 版本更新与行为细节以官方仓库为准。

更适合

  • 需要在浏览器工具场景里让模型直接调用外部能力的人。
  • 想先快速试一下、能接受在本地或自有环境跑服务的人。

不太适合

  • 不方便管理密钥或第三方授权的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
Homeassistant MCP 9bcc37c0当前 未标注 未标注 未标注 无 2026-05-17
Playwright MCP Server 21 stdio · 本地进程 本地部署 有 2026-05-18
Fetch 9a2682de 1 SSE · 服务端推送 支持远程部署 有 2026-05-18
Browser 738d52bc 未标注 stdio · 本地进程 本地部署 有 2026-05-17
MCP 40600ece 未标注 stdio · 本地进程 本地部署 有 2026-05-17
Skyvern MCP 未标注 stdio · 本地进程 本地部署 有 2026-05-17

服务器档案

浏览器工具
字段来自项目仓库与公开索引,中文说明由本站标注
提供方geekychris上游标注的维护方 geekychris
分类浏览器工具本站按上游分类展示
连接方式未标注上游未给出传输方式
鉴权方式Token远程服务建议用最小权限凭据
维护方社区 / 第三方核验等级 仅资料核对
包名 / 运行时未标注 · 未标注本地安装时用到的包标识与运行时
部署类型未标注上游给出的部署形态
最近核验2026-05-17上游最后核验时间

详细介绍

5.8 KB
来自项目仓库与上游目录的原文,未做删改

Home Assistant MCP Server & AI Control Service

A comprehensive solution for controlling Home Assistant with AI, featuring:
- MCP Server: Model Context Protocol server for Home Assistant integration
- Spring Boot Service: Web service with REST API, Vaadin Flow UI, and Spring AI + Ollama integration

Project Structure```

homeassistant-mcp/
├── mcp-server/ # Java MCP server for Home Assistant
│ └── src/main/java/com/homeassistant/mcp/
│ ├── HomeAssistantMcpServer.java
│ └── HomeAssistantClient.java
│
└── spring-service/ # Spring Boot web service
└── src/main/java/com/homeassistant/ai/
├── client/ # Home Assistant REST client
├── config/ # Configuration classes
├── controller/ # REST API controllers
├── service/ # AI chat service
└── view/ # Vaadin Flow UI


## Features

### MCP Server
- Standard MCP protocol implementation
- Tools for Home Assistant operations:
  - `get_states` - Get all entity states
  - `get_state` - Get specific entity state
  - `call_service` - Execute Home Assistant services
  - `get_services` - List available services
  - `get_config` - Get Home Assistant configuration

### Spring Boot Service
- **REST API**: Full Home Assistant control via HTTP endpoints
- **Vaadin Flow UI**: Interactive web interface with:
  - AI chat assistant powered by Ollama
  - Real-time device listing and control
  - Turn on/off lights, switches, fans, etc.
- **Spring AI Integration**: Chat with AI about your home and control devices

## Prerequisites

- Java 21 (Amazon Corretto 23 JDK)
- Maven 3.8+
- Home Assistant instance running at `http://homeassistant.local:8123`
- Ollama running locally at `http://localhost:11434`
- Ollama model installed (e.g., `ollama pull llama3.2`)

## Configuration

### Home Assistant Access Token
The projects are pre-configured with your Home Assistant access token. To change it:

**MCP Server**: Edit `mcp-server/src/main/java/com/homeassistant/mcp/HomeAssistantMcpServer.java` or set environment variable:```bash
export HA_ACCESS_TOKEN="your-token-here"
export HA_BASE_URL="http://homeassistant.local:8123"

Spring Service: Edit spring-service/src/main/resources/application.properties:```properties
homeassistant.base-url=http://homeassistant.local:8123
homeassistant.access-token=your-token-here


### Ollama Configuration
Configure Ollama settings in `spring-service/src/main/resources/application.properties`:```properties
spring.ai.ollama.base-url=http://localhost:11434
spring.ai.ollama.chat.options.model=llama3.2
spring.ai.ollama.chat.options.temperature=0.7

Building & Running

MCP Server```bash

cd mcp-server
mvn clean package


Run:```bash
java -jar target/homeassistant-mcp-server-1.0.0.jar

The MCP server communicates via stdin/stdout following the MCP protocol.

Spring Boot Service```bash

cd spring-service
mvn clean package


Run:```bash
mvn spring-boot:run

Or run the JAR:```bash
java -jar target/homeassistant-ai-service-1.0.0.jar


Access the application:
- **Web UI**: http://localhost:8080
- **REST API**: http://localhost:8080/api/

## REST API Endpoints

### Home Assistant Control
- `GET /api/homeassistant/states` - Get all entity states
- `GET /api/homeassistant/states/{entityId}` - Get specific entity state
- `POST /api/homeassistant/services/{domain}/{service}` - Call a service
- `GET /api/homeassistant/services` - List all services
- `GET /api/homeassistant/config` - Get configuration

### AI Chat
- `POST /api/chat` - Send a message to the AI```json
  {
    "message": "Turn on the living room lights"
  }
  ```
- `POST /api/chat/clear` - Clear conversation history

## Usage Examples

### Using the Web UI
1. Navigate to http://localhost:8080
2. Chat with the AI assistant about your home
3. Control devices directly with the on/off buttons
4. Ask questions like:
   - "What lights are currently on?"
   - "Turn off all the lights in the bedroom"
   - "What's the temperature?"

### Using the REST API

Get all states:```bash
curl http://localhost:8080/api/homeassistant/states

Turn on a light:```bash
curl -X POST http://localhost:8080/api/homeassistant/services/light/turn_on \
-H "Content-Type: application/json" \
-d '{"entity_id": "light.living_room"}'


Chat with AI:```bash
curl -X POST http://localhost:8080/api/chat \
  -H "Content-Type: application/json" \
  -d '{"message": "What devices are on right now?"}'

Using the MCP Server

The MCP server follows the Model Context Protocol. Example initialization:```json
{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2024-11-05",
"capabilities": {}
}
}


## Development

### Adding New Features
- **MCP Server**: Add new tools in `HomeAssistantMcpServer.handleToolsList()`
- **REST API**: Create new controllers in `spring-service/src/main/java/com/homeassistant/ai/controller/`
- **UI**: Modify `MainView.java` or add new Vaadin views

### Testing
Test Home Assistant connection:```bash
curl -H "Authorization: Bearer YOUR_TOKEN" \
  http://homeassistant.local:8123/api/states

Test Ollama:bash curl http://localhost:11434/api/generate -d '{ "model": "llama3.2", "prompt": "Hello, world!" }'

Troubleshooting

Cannot connect to Home Assistant:
- Verify Home Assistant is running
- Check the URL and access token
- Ensure the token has the necessary permissions

Cannot connect to Ollama:
- Start Ollama: ollama serve
- Verify the model is installed: ollama list
- Pull the model if needed: ollama pull llama3.2

Vaadin compilation issues:
- Run mvn vaadin:prepare-frontend
- Clear npm cache if needed: rm -rf node_modules

License

MIT License - feel free to modify and use as needed.

Contributing

Contributions are welcome! Feel free to submit issues or pull requests.

常见问题

5 问
答案由本站依据条目字段整理,不引用上游原文
Homeassistant MCP 9bcc37c0 怎么安装?

资料没有给出安装命令,请到官方仓库或文档按说明接入;这类条目多数是生态应用,或尚未发布可安装包。

Homeassistant MCP 9bcc37c0 怎么在客户端里配置?

它的传输方式未标注,在客户端 MCP 配置里按官方文档填写启动命令和参数,保存后重启客户端生效。

Homeassistant MCP 9bcc37c0 收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Homeassistant MCP 9bcc37c0 需要 API Key 吗?

资料标注需要Token认证,使用前准备好对应凭据,并按最小权限配置。

Homeassistant MCP 9bcc37c0 能提供哪些能力?

资料显示能力标签包括 智能家居、AI控制、JavaScript、API集成。具体工具清单以官方文档为准。

热门专题

按标签挑服务器
全部专题 →

服务器信息以作者仓库与官方文档为准;分类、传输方式与鉴权方式的中文说明为中文整理,最近核验 2026-05-17。