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

weishaupt-wem-mcp-server

Weishaupt WEM Portal MCP Server

WEM Portalを介して、AIアシスタントでWeishaupt暖房システムを制御・監視します

Version npm License: MIT Blog Website

MCP TypeScript Node.js semantic-release

GitHub Stars GitHub Issues CI


特徴

  • Device Discovery - WEM Portalアカウントのすべてのデバイスとモジュールを一覧表示します

  • Live Parameters - 温度、圧力、運転モードを現在値で読み取ります

  • Full Overview - 1回の呼び出しで暖房システム全体の完全なスナップショットを取得します

  • Write Parameters - 目標温度、運転モード、スケジュールを調整します

  • Device Status - デバイスの接続状態を確認します

  • Writable Filter - 実際に変更できるパラメータのみを一覧表示します

  • Session Management - 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

デバイスの完全な概要:全モジュールの全パラメータを1回の呼び出しで取得します

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と表示される

一部のパラメータ(例:室温)は、デバイスに物理センサーが接続されている必要があります


コントリビューション

コントリビューションを歓迎します!問題を報告するか、プルリクエストを送信してください。


ライセンス

MIT - LICENSE を参照


disane.dev | Blog | 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