Buva EcoStream MCP Server
Enables controlling and monitoring a Buva EcoStream WTW ventilation unit via natural language, including reading air quality data and adjusting fan settings.
README
Buva EcoStream MCP Server
An MCP (Model Context Protocol) server that connects Claude to a Buva EcoStream WTW ventilation unit over your local network.
Once installed, you can control your ventilation and read air quality data directly in conversation with Claude — no app needed.
Note: The EcoStream does not use a native WebSocket. It streams JSON state updates over a persistent HTTP long-poll connection. This server handles that automatically and falls back to polling if needed.
Features
- Read live sensor data: CO₂, TVOC, humidity, temperatures (ETA/EHA/ODA), fan RPM, bypass position, heat recovery efficiency, WiFi info
- Control fan presets (low / mid / high)
- Set a custom airflow in m³/h with optional duration
- Start/stop boost mode
- Open/close bypass valve
- Enable/disable schedule and summer comfort mode
- Reset filter timer
- Built-in endpoint discovery tool for diagnosing your specific device firmware
Requirements
- Python 3.11+
- Claude Desktop (or any MCP-compatible host)
- Buva EcoStream on your local network with a known IP address
Installation
1. Clone or download this repository
git clone https://github.com/YOUR_USERNAME/ecostream-mcp.git
cd ecostream-mcp
2. Install dependencies
pip3 install -r requirements.txt
3. Configure Claude Desktop
Open your Claude Desktop config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Add the following (adjust the path and IP address):
{
"mcpServers": {
"ecostream": {
"command": "python3",
"args": ["/absolute/path/to/ecostream-mcp/server.py"],
"env": {
"ECOSTREAM_HOST": "192.168.X.X",
"ECOSTREAM_PORT": "80",
"ECOSTREAM_STREAM": "/stream",
"ECOSTREAM_CONFIG": "/config"
}
}
}
}
4. Restart Claude Desktop
The EcoStream tools will now appear automatically in Claude.
Configuration
All settings are passed as environment variables:
| Variable | Default | Description |
|---|---|---|
ECOSTREAM_HOST |
192.168.17.253 |
IP address of your EcoStream |
ECOSTREAM_PORT |
80 |
HTTP port |
ECOSTREAM_STREAM |
/stream |
Endpoint for reading state |
ECOSTREAM_CONFIG |
/config |
Endpoint for sending commands |
If you're unsure which endpoints your firmware uses, run the discover_endpoints tool in Claude after installation — it probes all known paths and shows which ones respond.
Available Tools
| Tool | Description |
|---|---|
get_status |
Returns all current sensor values: CO₂, temperatures, airflow, fan speed, bypass, modes, WiFi |
set_preset |
Set ventilation to low, mid, or high preset |
set_airflow |
Set a custom airflow in m³/h with an optional duration in minutes |
set_boost |
Turn boost mode on or off (5, 10, 15, 30, or 60 minutes) |
set_bypass |
Open or close the bypass valve |
set_schedule |
Enable or disable the built-in ventilation schedule |
set_summer_comfort |
Enable or disable summer comfort mode (auto-bypass on warm days) |
reset_filter |
Reset the filter replacement timer after changing the filter |
discover_endpoints |
Scan the device for working HTTP endpoints — useful for initial setup or debugging |
Example prompts
Once connected, you can ask Claude things like:
- "What's the CO₂ level right now?"
- "Turn on boost mode for 15 minutes, it's stuffy in here."
- "Set ventilation to low for the night."
- "Is the bypass open? What's the outside temperature?"
- "Reset the filter timer, I just replaced the filter."
- "Scan which endpoints the EcoStream responds to."
How it works
The EcoStream device exposes a local HTTP server. When polled, it returns JSON containing the full device state (sensor readings, active modes, setpoints). Configuration changes are sent as HTTP POST requests with a JSON body.
This server implements the MCP stdio transport, meaning Claude Desktop launches it as a subprocess and communicates over stdin/stdout.
State is fetched on demand when you call get_status. The server tries the configured streaming endpoint first, then falls back to /Status and /api/status if that fails.
For sending commands, the server tries the EcoStream JSON format ({"config": {...}}) and, if that doesn't respond, falls back to the older Q-Stream {"Value": "TIMER ..."} format.
Troubleshooting
"Cannot reach EcoStream"
- Confirm the device IP with your router's DHCP table
- Make sure your computer and the EcoStream are on the same network/VLAN
- Try
curl http://192.168.x.x/Statusin a terminal to test basic connectivity
Tools appear but return errors
- Run
discover_endpointsin Claude to see which paths actually respond - Adjust
ECOSTREAM_STREAMandECOSTREAM_CONFIGin your config accordingly
Sensor values are missing or labeled "unknown"
- Your firmware may use different JSON field names
- Run
get_statusand look at the "Overige velden" section — those are unrecognised fields from the device - Open an issue with the raw output and I'll add support
Protocol notes
The reverse-engineered protocol is based on the community Home Assistant integration by @epodegrid and @Recognition2. This MCP server is an independent implementation and is not affiliated with BUVA.
Supported devices:
| Device | Status |
|---|---|
| BUVA EcoStream | ✅ Supported |
| BUVA EcoStream+ | ✅ Supported |
| BUVA Q-Stream 2.0 | ⚠️ Partial (different protocol, timer commands only) |
| Other BUVA models | ❌ Not supported |
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。