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

weishaupt-wem-mcp-server

Weishaupt WEM Portal MCP Server

Управляйте и контролируйте вашу систему отопления Weishaupt с помощью ИИ-ассистентов через WEM Portal

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

Да

Ваш email для WEM Portal

WEM_PASSWORD

Да

Ваш пароль для WEM Portal

WEM_API_URL

Нет

Базовый URL API (по умолчанию: 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

Модуль GROUND


Разработка

Команда

Описание

npm run build

Собрать проект

npm run watch

Режим наблюдения (автопересборка при изменениях)

npm start

Запустить сервер напрямую

npm test

Проверить подключение к API

npm run inspector

Официальный MCP Inspector (веб-интерфейс)

npm run inspector:cli -- devices

CLI-инспектор для быстрых проверок API


Устранение неполадок

[!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