Skip to main content
Glama
weishaupt-wem-mcp-server

weishaupt-wem-mcp-server

Weishaupt WEM Portal MCP 服务器

通过 WEM Portal 使用 AI 助手控制和监控您的 Weishaupt 供暖系统

Version npm License: MIT Blog Website

MCP TypeScript Node.js semantic-release

GitHub Stars GitHub Issues CI


功能特性

  • 设备发现 - 列出您 WEM Portal 账户中的所有设备和模块

  • 实时参数 - 读取温度、压力、运行模式及当前值

  • 全面概览 - 一次调用即可获取整个供暖系统的完整快照

  • 写入参数 - 调整目标温度、运行模式、时间计划

  • 设备状态 - 检查设备的连接状态

  • 可写筛选 - 仅列出您可以实际更改的参数

  • 会话管理 - 基于 Cookie 的自动认证,支持并发请求的登录锁


Related MCP server: victron-tcp

快速开始

通过 npx 安装(推荐)

无需安装。将您的 MCP 客户端配置为运行:

npx @disane-dev/weishaupt-wem-mcp-server

从源码安装

git clone https://github.com/Disane87/weishaupt-wem-mcp-server.git
cd weishaupt-wem-mcp-server
npm install
npm run build

配置

添加到您的 Claude Desktop 配置中:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "weishaupt-wem": {
      "command": "npx",
      "args": ["-y", "@disane-dev/weishaupt-wem-mcp-server"],
      "env": {
        "WEM_USERNAME": "your_email@example.com",
        "WEM_PASSWORD": "your_password"
      }
    }
  }
}
claude mcp add weishaupt-wem -- npx -y @disane-dev/weishaupt-wem-mcp-server

在启动前设置环境变量 WEM_USERNAME 和 WEM_PASSWORD。

{
  "mcpServers": {
    "weishaupt-wem": {
      "command": "node",
      "args": ["/path/to/wem-mcp/build/index.js"],
      "env": {
        "WEM_USERNAME": "your_email@example.com",
        "WEM_PASSWORD": "your_password"
      }
    }
  }
}

环境变量

变量

必需

描述

WEM_USERNAME

是

您的 WEM Portal 邮箱

WEM_PASSWORD

是

您的 WEM Portal 密码

WEM_API_URL

否

API 基础 URL(默认:https://www.wemportal.com/app)


可用工具

工具

描述

wem_get_devices

列出所有设备及其模块。请先调用此工具以发现 ID。

wem_get_device_status

获取设备的连接状态

wem_get_overview

完整设备概览:一次调用获取所有模块及所有参数

wem_get_parameters

获取模块的所有参数及当前值

wem_get_parameter_meta

获取参数元数据(名称、最小值/最大值、枚举值、可写标志)

wem_get_writable_parameters

仅列出可调参数及其范围和选项

wem_read_parameters

按 ID 读取特定参数值

wem_write_parameter

设置参数值(例如,目标温度)

[!TIP] 首先使用 wem_get_devices 发现您的 deviceId、moduleIndex 和 moduleType,然后使用 wem_get_overview 获取供暖系统的完整快照。


典型工作流程

1. wem_get_devices
   -> Returns devices with modules (WE0=heat generator, HZK0=heating circuit, WW0=hot water)

2. wem_get_overview (deviceId)
   -> Returns ALL modules with ALL parameters in one call

3. wem_get_writable_parameters (deviceId, moduleIndex, moduleType)
   -> Shows what you can adjust, with min/max ranges

4. wem_write_parameter (deviceId, moduleIndex, moduleType, parameterId, numericValue)
   -> Sets a writable parameter (e.g. target temperature)

常见模块类型

类型

名称

描述

1

SYSTEM

系统概览

2

HZK

供暖回路(温度、运行模式)

3

WW

热水(温度、推送、时间计划)

5

TERMINAL

控制面板

6

GATEWAY

通信网关

7

WE

热发生器(锅炉/热泵性能)

9

Device

物理设备单元

10

GROUND

地面模块


开发

命令

描述

npm run build

构建项目

npm run watch

监视模式(更改时自动重新构建)

npm start

直接运行服务器

npm test

测试 API 连接

npm run inspector

官方 MCP Inspector(Web UI)

npm run inspector:cli -- devices

用于快速 API 测试的 CLI 检查器


故障排除

[!NOTE] 在使用此服务器之前,请确保您可以登录 wemportal.com。

问题

解决方案

认证失败

验证凭据,检查 WEM Portal 是否因尝试次数过多而阻止

连接超时

检查网络,WEM Portal 可能暂时不可用(默认超时 30 秒)

参数值显示为 0

某些参数(例如室温)需要设备连接物理传感器


贡献

欢迎贡献!请提交 issue 或 pull request。


许可证

MIT - 请参阅 LICENSE


disane.dev | 博客 | GitHub | npm

Available Tools

8 tools
wem_get_devicesA

Get all WEM devices with their modules. Returns device IDs, names, connection status, and module list (each with Index, Type, Name). Use this first to discover deviceId, moduleIndex, and moduleType needed for other tools.

Inputs: no named parameters.

wem_get_device_statusB

Get connection/online status of a specific device.

Inputs: deviceId (required).

wem_get_overviewA

Get a complete overview of a device: all modules with all their parameters and current values in a single call. Useful for getting a full picture of the heating system state.

Inputs: deviceId (required).

wem_get_parameter_metaA

Get metadata for all parameters of a module: parameter IDs, names, writable flag, data types, min/max values, enum options. Use this to discover available parameters before reading values.

Inputs: deviceId (required), moduleType (required), moduleIndex (required).

wem_get_parametersA

Get all parameters of a module with current values. Combines metadata + refresh + read into one call. Returns parameter names, current numeric/string values, units, and writable flags.

Inputs: deviceId (required), moduleType (required), moduleIndex (required).

wem_get_writable_parametersA

Get only the writable parameters of a module (parameters that can be changed). Shows current values, min/max ranges, and enum options. Useful to see what can be adjusted.

Inputs: deviceId (required), moduleType (required), moduleIndex (required).

wem_read_parametersA

Read current values for specific parameters. Refreshes data from device first, then reads. Use when you only need specific parameter values instead of all.

Inputs: deviceId (required), moduleType (required), moduleIndex (required), parameterIds (required).

wem_write_parameterA

Set a parameter value (e.g., target temperature). Only works for writable parameters. Check wem_get_parameter_meta for min/max values and enum options first.

Inputs: deviceId (required), moduleType (required), moduleIndex (required), parameterId (required), +2 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 8 tools

    Disambiguation3/5

    Five of eight tools are read-oriented and overlap substantially: wem_get_parameters explicitly 'combines metadata + refresh + read', which duplicates wem_get_parameter_meta and wem_read_parameters, while wem_get_overview and wem_get_writable_parameters are largely views/filters over the same data. The descriptions do clarify scope (device-wide vs module-wide vs specific params vs writable-only), preventing total confusion, but an agent must read carefully to pick correctly.

    Naming Consistency4/5

    All tools use a clean wem_<verb>_<noun> snake_case pattern. The only blemish is inconsistent verb choice for the same operation: wem_get_parameters vs wem_read_parameters vs wem_get_parameter_meta, which mixes 'get' and 'read' for parameter retrieval.

    Tool Count4/5

    Eight tools is a reasonable, well-scoped size for a device-control server. However, the read surface (overview, all parameters, specific parameters, writable parameters, metadata) could likely be consolidated to 2-3 tools, so a couple of tools do not fully earn their place.

    Completeness4/5

    The lifecycle is well covered: device discovery, status, parameter metadata, reading values, and writing values form a complete read/inspect/write loop. Minor gaps remain: no batch write for multiple parameters, and no alarm/fault/error diagnostics beyond connection status.

    Maintenance

    ActivitySlowing
    ResponsivenessOutdated data

    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
      A
      quality
      B
      maintenance
      Connect AI assistants to Victron Energy systems to read real-time solar, battery, grid, and inverter data from your local network via Modbus TCP or MQTT.
      32
      23 npm
      7
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables LLM applications to query and visualize data from Bosch/Buderus heat pumps via ems-ESP, including temperatures, statistics, and heat curves through natural language.
      10
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      An unofficial MCP (Model Context Protocol) server that exposes a Vaillant heat pump's data to AI assistants like Claude. Query outdoor and room temperatures, hot water status, energy consumption, COP estimates, schedules, and diagnostics through natural conversation.
      4
      MIT