victron-tcp
Interact with MQTT brokers on the local network to obtain real-time data from Victron devices, with debugging tools for MQTT topics and connectivity.
Debug Node-RED flows on Venus OS, including MQTT topic tracing and flow debugging.
Read real-time solar, battery, grid, and inverter data from Victron Energy systems on the local network via Modbus TCP or MQTT.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@victron-tcp Generate a daily energy report for today."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Victron TCP — MCP Server
Connect AI assistants to Victron Energy systems. Read real-time solar, battery, grid, and inverter data from your local network — no cloud required.
32 tools | 23 prompts | 2 resources | 900+ registers | Modbus TCP + MQTT
Which package do I want?
This is the local / LAN half of a pair. The remote / cloud half is victron-vrm-mcp.
| ||
Transport | stdio (local subprocess) | Streamable HTTP (remote) |
Data source | Modbus TCP + MQTT on your LAN | VRM cloud API |
Needs access to the GX on your LAN | Yes | No |
Works when you're away from the boat / house | No | Yes |
Works when the internet is down | Yes | No |
Latency | Real-time (~50 ms) | ~15 min (VRM sampling) |
Raw register access | Yes (900+ registers) | No |
Write coverage (planned) | Broad — anything D-Bus exposes | Narrow — only what VRM sanctions remotely (Dynamic ESS, clear-alarm, tags, …) |
MCP Connector API compatible | No (stdio) | Yes (HTTPS) |
Clients | Claude Code, Claude Desktop, Cursor, Windsurf | Anthropic Messages API + anything that speaks MCP over HTTP |
Auth | None locally (trusts LAN) | Per-request VRM personal access token |
Use this package when: you're on the same LAN as a GX device and want real-time, low-latency read access with raw-register support.
Use victron-vrm-mcp when: you need remote access, you're building an API-backed app via the MCP Connector, or you don't want to expose anything on your LAN.
You can use both simultaneously — they serve different use cases and carry different risk profiles.
Related MCP server: tesla-powerwall
Installation
Claude Code
claude mcp add-json victron-tcp '{"type":"stdio","command":"npx","args":["-y","victron-tcp"]}'Claude Desktop / Cursor / Windsurf
{
"mcpServers": {
"victron-tcp": {
"command": "npx",
"args": ["-y", "victron-tcp"],
"env": {
"VICTRON_HOST": "192.168.1.50",
"VICTRON_TRANSPORT": "mqtt",
"VICTRON_PORTAL_ID": "your-portal-id"
}
}
}
}Don't know your device IP?
Just ask the AI:
Find my Victron GX device on the network and set it up.It will scan your network, test connectivity, and generate the config for you.
Requirements
Victron GX device on your local network (Ekrano, Cerbo, Venus GX, etc.)
MQTT (enabled by default on Venus OS) or Modbus TCP (Settings → Services → Modbus TCP)
Node.js 18+
What you can do
Energy Reporting
Prompt | What it does |
| Quick power flow snapshot — SOC, PV, grid, load |
| Production, consumption, self-consumption ratio, grid dependency |
| Yield trends, battery health, load patterns, scheduling tips |
| Energy balance, cost savings, battery aging, seasonal comparison |
Energy Optimization
Prompt | What it does |
| AI-driven tuning — choose goal: self-consumption, cost savings, battery longevity, backup readiness, or balanced |
| Review ESS mode, grid setpoint, battery limits, Dynamic ESS |
| Pre-outage readiness check |
Monitoring & Troubleshooting
Prompt | What it does |
| Full health check with alarm scan |
| PV yield analysis, tracker comparison, shading detection |
| Guided debugging with error code lookup |
| Fuel, water, waste levels (marine/RV/off-grid) |
| Auto-start conditions, runtime, quiet hours |
Device Discovery
Prompt | What it does |
| First-time setup wizard |
| Scan network, discover all GX devices and their connected devices |
| "What is unit ID 247?" — identify any device |
| Map AC/DC buses, connections, energy flow paths |
| Full device table for documentation or support |
| Browse registers, explain types and scale factors |
| Firmware versions across all devices |
For Installers
Prompt | What it does |
| New system checklist — inventory, wiring, config, pass/fail |
| Communication, alarms, measurements, performance audit |
Integration
Prompt | What it does |
| Node-RED on Venus OS — MQTT topics, flow debugging |
| Broker connectivity, topic tracing, keepalive debugging |
Tools Reference
Tool | Description |
| Battery SOC, PV power, grid power, AC consumption, ESS status |
| SOC, voltage, current, power, temperature, cell data, time-to-go |
| PV power, yield today/yesterday/total, charger state, tracker data |
| Grid power per phase (L1/L2/L3), voltage, current, frequency |
| Multi/Quattro: AC in/out, current limit, mode, state, alarms |
| Tank level, capacity, remaining, fluid type |
| Temperature, sensor type, humidity, pressure |
| Standalone inverter: AC output, state, alarms |
| EV Charging Station: power, status, session energy |
Tool | Description |
| Multi RS inverter/charger |
| AC-coupled PV inverters (Fronius, SolarEdge, ABB) |
| AC genset controllers |
| DC generators |
| NMEA 2000 alternators |
| AC chargers (Skylla, Blue Smart) |
| Orion XS DC-DC converter |
| AC load / current sensors |
| DC energy meters (SmartShunts in DC meter mode) |
| GX device identity, relay states |
| Digital input state and type |
| GPS position, altitude, speed |
| Solar irradiance, wind speed, temperatures |
| Generator auto start/stop, runtime, alarms |
Tool | Description |
| Scan local network to find GX devices |
| Full setup: test transports, discover devices, generate config |
| Auto-discover MQTT portal ID, services, device instances |
| Scan Modbus unit IDs to find connected devices |
Tool | Description |
| Read all registers for any device category |
| Read raw register(s) by address (Modbus only) |
| List available registers for a device category |
| Search offline docs (registers + VRM API) |
| Get URLs for latest Victron docs |
Resources
URI | Content |
| CCGX Modbus TCP register list (Rev 3.71) — 943 registers |
| Device type to unit ID mapping |
Configuration
Environment Variables
All optional. Set them to avoid repeating parameters on every tool call.
Variable | Default | Description |
| (none) | GX device IP or hostname |
|
|
|
| (auto) | Portal ID for MQTT |
|
| Modbus TCP port |
|
| MQTT broker port |
|
| Default Modbus unit ID |
Remote usage (MCP Connector API)
This package speaks stdio, which the Anthropic MCP Connector API cannot reach directly (Connector needs HTTPS). For cloud-backed remote access, use the sibling package victron-vrm-mcp.
If you really need the Connector API to reach this package (e.g. to use raw register reads remotely), you'd put it behind your own HTTPS gateway that speaks Streamable HTTP upstream and spawns victron-tcp downstream — not recommended for typical use.
Debugging
The MCP Inspector is the fastest way to poke at the server interactively.
# Inspect a locally-built server
npm run inspect
# Inspect the published npm package as users would run it
npm run inspect:npmBoth open a browser-based UI where you can call tools, view structured content, and watch the notification stream. Logs go to stderr (stdout is reserved for the JSON-RPC stream on stdio transport — never write to stdout).
For Claude Desktop specifically, MCP server logs land in ~/Library/Logs/Claude/mcp-server-victron-tcp.log (macOS) or %APPDATA%\Claude\logs\mcp-server-victron-tcp.log (Windows). See the spec's debugging guide for a full walkthrough.
Documentation
Guide | Content |
Client configs, transport comparison, unit IDs, supported devices | |
Real-world prompts with step-by-step AI behavior | |
Common errors and fixes | |
Frequently asked questions | |
Code structure, register map, how it works | |
Security model, data sensitivity, network exposure |
Roadmap
Write support — ESS mode control, grid setpoint, charge current limits, relay control (via MQTT
W/topics)MCP Resources — register list + unit ID mapping (VRM API spec moved to
victron-vrm-mcp)MCP Prompts — 23 guided workflows
NPM package (
npx victron-tcp)Sibling package for VRM cloud access —
victron-vrm-mcp
References
License
MIT
Available Tools
32 toolsvictron_acload_statusAC Load / Current SensorARead-onlyIdempotent
Get AC load and current sensor data: per-phase power, voltage, current, energy totals, frequency, and power factor. Used for AC current sensors measuring PV inverter output or other AC loads. Use victron_discover to find the unit ID.
Inputs: host (required), port, unitId, mqttHost, +4 more. Returns: readings, serviceInstance
victron_alternator_statusAlternator StatusARead-onlyIdempotent
Get alternator data from Wakespeed WS500, Arco Zeus, Revatek Altion, or other NMEA 2000 DC alternator regulators: battery voltage/current, auxiliary voltage, temperature, energy produced, engine/alternator RPM, field drive %, alarms, and state. Use victron_discover to find the unit ID.
Inputs: host (required), port, unitId, mqttHost, +4 more. Returns: readings, serviceInstance
victron_battery_statusBattery StatusARead-onlyIdempotent
Get detailed battery monitor data: SOC, voltage, current, power, temperature, cell voltages, time-to-go, history, and alarms. Specify unitId for the battery monitor (check victron_discover to find it).
Inputs: host (required), port, unitId, mqttHost, +4 more. Returns: readings, serviceInstance
victron_charger_statusAC Charger StatusARead-onlyIdempotent
Get AC charger data (Skylla-i, Skylla-IP44, Smart IP43, Blue Smart IP22): output voltage/current/temperature for up to 3 outputs, AC current/power, charge state, error code, current limit, and alarms. Use victron_discover to find the unit ID.
Inputs: host (required), port, unitId, mqttHost, +4 more. Returns: readings, serviceInstance
victron_check_onlineCheck Online DocsARead-onlyIdempotent
Get URLs for the latest Victron local-access documentation sources. Use this only when victron_search_docs does not have the answer — for example, when checking for newer register list revisions or firmware changes. For VRM cloud API docs, use the victron-vrm-mcp sibling package.
Inputs: source (required). Returns: url, label
victron_dcdc_statusDC-DC Converter StatusARead-onlyIdempotent
Get Orion XS DC-DC converter data: battery voltage/current/temperature, input voltage/power, charge state, error code, switch position, and accumulated Ah. Use victron_discover to find the unit ID.
Inputs: host (required), port, unitId, mqttHost, +4 more. Returns: readings, serviceInstance
victron_dcenergy_statusDC Energy MeterARead-onlyIdempotent
Get DC energy meter data from SmartShunts configured in DC meter mode: voltage, current, auxiliary voltage, temperature, energy produced/consumed, and alarms. Specify type: "source" (alternator, solar, wind), "load" (fridge, pump, generic DC load), or "system" (aggregate DC system). Unit ID is always 100.
Inputs: host (required), type (required), port, mqttHost, +4 more. Returns: readings, serviceInstance
victron_dcgenset_statusDC Genset StatusARead-onlyIdempotent
Get DC generator data (Fischer Panda, Hatz fiPMG): DC voltage/current, engine load/speed/RPM, coolant/winding/exhaust temperature, oil pressure, starter battery voltage, status, error codes, and start command. Use victron_discover to find the unit ID.
Inputs: host (required), port, unitId, mqttHost, +4 more. Returns: readings, serviceInstance
victron_digital_inputsDigital InputsARead-onlyIdempotent
Read digital input data from the GX device. On Cerbo GX, this reads the primary digital input. Includes state (open/closed/running/stopped), input type (door, bilge, alarm, generator), alarm status, and pulse count. Unit ID is always 100.
Inputs: host (required), port, mqttHost, mqttPort, +3 more. Returns: readings, serviceInstance
victron_discoverDiscover DevicesARead-onlyIdempotent
Discover connected Victron devices via Modbus TCP by probing unit IDs. Scans a range of unit IDs to find active devices and identify their service type. Modbus only — for MQTT discovery use victron_mqtt_discover instead. This is the first tool you should use with Modbus transport to find what devices are available and their unit IDs.
Inputs: host (required), port, endUnitId, startUnitId. Returns: devices
victron_evcs_statusEV Charging Station (Direct)ARead-onlyIdempotent
Get EV Charging Station status by connecting directly to the EVCS device (not through the GX). Reads charger status, power per phase, charging current, session energy, mode, phase configuration, temperatures, and errors. The host parameter should be the EVCS IP address (not the GX). For EV charger data proxied through the GX device, use victron_read_category with category "evcharger" instead.
Inputs: host (required), port, unitId. Returns: readings, serviceInstance
victron_generator_statusGenerator Start/Stop ControlBRead-onlyIdempotent
Get GX generator auto start/stop status and control: manual start/stop command, start condition (SOC/load/voltage/manual), runtime, quiet hours, start/stop state, auto start enabled, service countdown, and alarms. This controls the GX relay-based generator start/stop logic. Unit ID is always 100.
Inputs: host (required), port, mqttHost, mqttPort, +3 more. Returns: readings, serviceInstance
victron_genset_statusAC Genset StatusARead-onlyIdempotent
Get AC generator/genset controller data (Fischer Panda, ComAp, DSE, CRE, DEIF): 3-phase AC voltage/current/power/frequency, engine temperature/load/speed/RPM, oil pressure, coolant temperature, exhaust temperature, starter voltage, model name, and error codes. Use victron_discover to find the unit ID.
Inputs: host (required), port, unitId, mqttHost, +4 more. Returns: readings, serviceInstance
victron_gps_statusGPS PositionARead-onlyIdempotent
Get GPS position data: latitude, longitude, altitude, course, speed, fix status, and number of satellites. Works with USB GPS (NMEA 0183) and NMEA 2000 GPS devices connected to the GX. Unit ID is always 100.
Inputs: host (required), port, mqttHost, mqttPort, +3 more. Returns: readings, serviceInstance
victron_grid_statusGrid Meter StatusARead-onlyIdempotent
Get grid meter data: power per phase (L1/L2/L3), voltage, current, frequency, and energy counters (forward/reverse). Specify unitId for the grid meter (check victron_discover to find it).
Inputs: host (required), port, unitId, mqttHost, +4 more. Returns: readings, serviceInstance
victron_gx_infoGX Device InfoARead-onlyIdempotent
Get GX device identity and connection info: serial number, relay states, system time, and connection details. MAC address and hostname are NOT available via Modbus TCP. Unit ID is always 100.
Inputs: host (required), port, mqttHost, mqttPort, +3 more. Returns: readings, serviceInstance
victron_inverter_statusInverter StatusARead-onlyIdempotent
Get standalone inverter data (Phoenix, Inverter RS, VE.Direct inverters): AC output voltage, current, power, frequency, state, and alarms. This is for standalone inverters — for Multi/Quattro, use victron_vebus_status instead.
Inputs: host (required), port, unitId, mqttHost, +4 more. Returns: readings, serviceInstance
victron_list_registersList RegistersARead-onlyIdempotent
List available Modbus registers for a given device category. Shows register addresses, names, data types, and units. For free-text search across all docs use victron_search_docs instead.
Inputs: category (required). Returns: service, registers, description, defaultUnitId, +1 more
victron_meteo_statusMeteo / Irradiance SensorARead-onlyIdempotent
Get meteorological sensor data from IMT Solar irradiance sensors: solar irradiance (W/m²), wind speed, cell temperature, and external temperatures. Connected via RS485/USB. Unit ID is always 100.
Inputs: host (required), port, mqttHost, mqttPort, +3 more. Returns: readings, serviceInstance
victron_mqtt_discoverMQTT DiscoveryARead-onlyIdempotent
Discover Venus OS devices via MQTT. Auto-discovers the portalId, lists all available services, maps them to tools, and outputs a ready-to-use MCP server config. Run this first when setting up MQTT transport.
Inputs: mqttHost (required), mqttPort. Returns: devices, success, portalId, services, +1 more
victron_multi_statusMulti RS StatusARead-onlyIdempotent
Get Multi RS inverter/charger data: AC input/output voltage/current/power per phase, input frequency, AC source type, current limits, battery voltage/current/power/SOC/temperature, charger/inverter state, and alarms. Use victron_discover to find the unit ID.
Inputs: host (required), port, unitId, mqttHost, +4 more. Returns: readings, serviceInstance
victron_network_scanNetwork ScanARead-onlyIdempotent
Scan the local network to find Victron GX devices. Probes for Modbus TCP (port 502) and MQTT (port 1883) services, then verifies Victron devices via Modbus. Use this when you don't know the IP address of the GX device. Specify a subnet or let it auto-detect from local network interfaces.
Inputs: subnet, timeout. Returns: devices, success, portalId, services, +1 more
victron_pvinverter_statusPV Inverter StatusARead-onlyIdempotent
Get AC-coupled PV inverter data (SolarEdge, Fronius, ABB, etc.): power per phase, voltage, current, energy totals, frequency, position, serial, and power limit. Use victron_discover to find the PV inverter unit ID.
Inputs: host (required), port, unitId, mqttHost, +4 more. Returns: readings, serviceInstance
victron_read_categoryRead Device CategoryARead-onlyIdempotent
Read all registers for any Victron device category by service name. Covers all 33 categories including digital inputs, genset, PV inverter, settings, GPS, meteo, and more. Use victron_discover to find connected devices and their unit IDs first.
Inputs: host (required), category (required), port, unitId, +5 more. Returns: service, readings
victron_read_registerRead Raw RegisterARead-onlyIdempotent
Read raw Modbus register(s). Modbus TCP only — not available via MQTT. Advanced tool for reading specific register addresses with explicit data type and scale factor. Use victron_search_docs or victron_list_registers first to find the correct address, data type, and scale factor for the register you want to read.
Inputs: host (required), unitId (required), address (required), port, +3 more. Returns: raw, value, address
victron_search_docsSearch DocumentationARead-onlyIdempotent
Search the local offline Victron register list (900+ registers with addresses, types, scale factors). Use this BEFORE making online requests — the local docs cover most questions about registers, unit IDs, data types, and device categories. For VRM cloud API search, use the victron-vrm-mcp sibling package.
Inputs: query (required), source, maxResults. Returns: query, source, matches
victron_setupSystem SetupARead-onlyIdempotent
Complete system setup and discovery for a Victron GX device. Tests both Modbus TCP and MQTT connectivity, discovers all connected devices and services, recommends the best transport, and generates ready-to-use MCP server configuration. Use this as the first step after finding a device with victron_network_scan, or directly if you already know the host IP.
Inputs: host (required), mqttPort, modbusPort. Returns: devices, success, portalId, services, +1 more
victron_solar_statusSolar Charger StatusARead-onlyIdempotent
Get solar charger data: PV voltage, current, power, yield today/yesterday/total, charger state, error code, and tracker data. Specify unitId for the solar charger (check victron_discover to find it).
Inputs: host (required), port, unitId, mqttHost, +4 more. Returns: readings, serviceInstance
victron_system_overviewSystem OverviewARead-onlyIdempotent
Get system overview: battery SOC/voltage/current/power, PV power, grid power, AC consumption, inverter state, and Dynamic ESS status. Unit ID is always 100.
Inputs: host (required), port, mqttHost, mqttPort, +3 more. Returns: readings
victron_tank_levelsTank LevelsARead-onlyIdempotent
Get tank sensor data: level, capacity, remaining, and fluid type (fuel, fresh water, waste water, live well, oil, black water, gasoline). Specify unitId for the tank sensor (check victron_discover to find it).
Inputs: host (required), port, unitId, mqttHost, +4 more. Returns: readings, serviceInstance
victron_temperatureTemperature SensorARead-onlyIdempotent
Get temperature sensor data from com.victronenergy.temperature: temperature, type (battery, fridge, generic), humidity, pressure, and status. Note: Battery temperatures measured by inverters/chargers or solar chargers are reported in their own device registers (use victron_vebus_status or victron_solar_status), not here. This tool reads dedicated temperature sensor inputs only. Specify unitId for the temperature sensor (check victron_discover to find it).
Inputs: host (required), port, unitId, mqttHost, +4 more. Returns: readings, serviceInstance
victron_vebus_statusVE.Bus Inverter/Charger StatusARead-onlyIdempotent
Get VE.Bus inverter/charger (Multi/Quattro) data: AC input/output voltage, current, power per phase, DC voltage, input current limit, mode, state, alarms, and ESS settings. Specify unitId for the VE.Bus device (check victron_discover to find it).
Inputs: host (required), port, unitId, mqttHost, +4 more. Returns: readings, serviceInstance
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 32 tools
Each tool targets a specific Victron device or function (e.g., solar, battery, inverter) with clear, distinct purposes. No two tools have overlapping functionality; even general-purpose tools like victron_read_register are explicitly for advanced use and do not conflict with specific status tools.
All tools follow a consistent 'victron_<target>_<action>' pattern, where the target is a device (e.g., solar, battery) and the action is typically 'status' or a descriptive noun (e.g., discover, setup). No mixing of naming conventions or irregular verbs.
With 32 tools, the set is extensive but justified by the complexity of Victron systems covering many device types (solar, inverters, batteries, etc.). The number feels appropriate for comprehensive monitoring, though slightly above the typical 3-15 range for simpler domains.
The tool set covers nearly all common Victron device categories for status reading (solar, battery, inverter, grid, generator, etc.), including discovery and search. Missing write/configuration tools, but these are not part of the server's stated scope (reading status).
Maintenance
Related MCP Connectors
Home energy for AI assistants: live Power flow, Energy history, solar forecast, and device control.
Connect AI assistants to Xitoring monitoring: servers, uptime, incidents, metrics, SSL, and alerts.
- DNS-DATA RemoteDeprecatedcom.dns-data
Connect AI assistants to authorized Windows and macOS devices for files, commands, and management.
Control your Tesla from your AI assistant - climate, charging, access, and security.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceConnects AI assistants to MQTT brokers for smart home automation and IoT device control, enabling topic discovery, sensor reading, command sending, and event monitoring.2MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to monitor and control Tesla Powerwall 2 systems via local gateway API.18MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to read and write selected values from IDM heat pumps via Modbus TCP, providing controlled access to operational data and setpoints.3MIT
- AlicenseAqualityBmaintenanceEnables AI agents to monitor and control Orbis Viaris EV chargers over the local network, including live power status, charging schedules, history, and power limits, with no cloud dependency.125 npmMIT