Victron VRM Server
FreeNot checkedRead-only MCP server integrating with the Victron VRM API to monitor solar systems, batteries, alarms, and more.
About
Read-only MCP server integrating with the Victron VRM API to monitor solar systems, batteries, alarms, and more.
README
A Model Context Protocol (MCP) server that provides read-only access to Victron VRM data.
Features
- Read-only access to Victron VRM API v2
- Complete implementation of all 41 GET endpoints
- Supports comprehensive VRM monitoring:
- User & authentication management
- Installation discovery and search
- Real-time system overview
- Time-series statistics and forecasts
- Aggregated energy totals
- Alarms and warnings
- Detailed diagnostics
- 20+ widget endpoints for specific device data
- Data export in CSV/Excel formats
- GPS tracking for mobile installations
- Full input validation and error handling
- Rate limiting awareness (200 requests rolling window)
- Comprehensive test coverage
Installation
npm install
npm run build
Configuration
Set the following environment variables:
VRM_TOKEN(required): Your VRM personal access tokenVRM_BASE_URL(optional): Default ishttps://vrmapi.victronenergy.com/v2VRM_TOKEN_KIND(optional): EitherToken(default) orBearer
You can set these via shell env or a local .env file (auto‑loaded via dotenv). Example .env:
VRM_TOKEN=your-token-here
VRM_BASE_URL=https://vrmapi.victronenergy.com/v2
VRM_TOKEN_KIND=Token
Getting a VRM Token
- Log into VRM Portal
- Go to Preferences → Integrations → Access tokens
- Create a new personal access token
- Copy the token and set it as
VRM_TOKEN
Usage
As MCP Server (stdio)
# Option A: env inline
VRM_TOKEN=your-token-here npm start
# Option B: use .env (recommended)
echo "VRM_TOKEN=your-token-here" > .env
npm start
Claude Desktop Configuration
Add to your Claude Desktop config:
{
"mcpServers": {
"vrm": {
"command": "node",
"args": ["/path/to/victron_vrm_mcp/dist/index.js"],
"env": {
"VRM_TOKEN": "your-token-here" // or omit if using .env alongside the binary
}
}
}
}
Available Tools (41 Total)
Core Monitoring (8 tools)
vrm_get_user_me- Get current user information including user IDvrm_list_installations- List all installations accessible to the uservrm_get_system_overview- Get high-level system overview for a sitevrm_get_stats- Time-series statistics (venus, live_feed, consumption, kwh, solar_yield, forecast)vrm_get_overall_stats- Aggregated totals for attribute codes over a periodvrm_get_alarms- Retrieve alarms for a sitevrm_get_diagnostics- Get most recent diagnostic datapointsvrm_get_widget_graph- Widget graph data for specific device instances
Authentication & User Management (4 tools)
vrm_auth_login_as_demo- Login as demo accountvrm_auth_logout- Logout from current sessionvrm_search_user_installations- Search through user's installations
Data Export & Downloads (5 tools)
vrm_download_installation_data- Download data in CSV/Excel formats with optional parsingvrm_download_gps_data- Download GPS tracking datavrm_get_installation_tags- Get installation tags and labelsvrm_get_custom_widget- Get custom widget configurationvrm_get_dynamic_ess_settings- Get Dynamic ESS configuration
Widget State Monitoring (7 tools)
vrm_get_vebus_state- VE.Bus system statevrm_get_inverter_charger_state- Inverter/charger operational statevrm_get_charger_relay_state- Charger relay switching statusvrm_get_solar_charger_relay_state- Solar charger relay statevrm_get_gateway_relay_state- Gateway relay statevrm_get_gateway_relay_two_state- Secondary gateway relay statevrm_get_status_widget- General system status
Warnings & Alarms (2 tools)
vrm_get_vebus_warnings_alarms- VE.Bus system warnings and alarmsvrm_get_inverter_charger_warnings_alarms- Inverter/charger warnings
Device Summaries (9 tools)
vrm_get_battery_summary- Battery voltage, current, SoC, healthvrm_get_solar_charger_summary- MPPT performance and yieldvrm_get_ev_charger_summary- EV charging status and powervrm_get_global_link_summary- GlobalLink device summaryvrm_get_motor_summary- Motor drive RPM and powervrm_get_pv_inverter_status- PV inverter AC output statusvrm_get_tank_summary- Tank levels and capacityvrm_get_temp_summary_graph- Temperature sensors and graphsvrm_get_dc_meter- DC power meter readings
Advanced Diagnostics (4 tools)
vrm_get_bms_diagnostics- BMS cell voltages and balancingvrm_get_lithium_bms- Lithium battery BMS datavrm_get_historic_data- Historic data trendsvrm_get_io_extender- IO extender digital/analog signals
System-Wide Information (3 tools)
vrm_get_data_attributes- System-wide data attributesvrm_get_firmwares- Available firmware versionsvrm_get_reset_forecasts- Forecast reset timestamps
Example Usage in Claude
Once configured, you can ask Claude to:
- "Show me my solar system's current status"
- "What's my battery state of charge?"
- "Download today's energy data as CSV"
- "Check for any system alarms"
- "Show me solar production for the last week"
- "Get battery voltage trends"
- "Export monthly energy totals"
Claude will use the appropriate VRM tools to fetch and analyze your Victron system data.
Development
# Run tests
npm test
# Run tests with UI
npm run test:ui
# Type checking
npm run typecheck
# Development mode with watch
npm run dev
Testing
The project includes comprehensive unit tests for:
- Schema validation
- VRM client functionality
- MCP server integration
- Error handling
- Edge cases
Run tests with:
npm test
Security
- Never logs tokens or sensitive data
- Strict path allowlisting
- Input validation on all tools
- Read-only operations only
License
ISC
Install Victron VRM Server in Claude Desktop, Claude Code & Cursor
unyly install victron-vrm-mcp-serverInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add victron-vrm-mcp-server -- npx -y victron-vrm-mcpFAQ
Is Victron VRM Server MCP free?
Yes, Victron VRM Server MCP is free — one-click install via Unyly at no cost.
Does Victron VRM Server need an API key?
No, Victron VRM Server runs without API keys or environment variables.
Is Victron VRM Server hosted or self-hosted?
A hosted option is available: Unyly runs the server in the cloud, no local setup required.
How do I install Victron VRM Server in Claude Desktop, Claude Code or Cursor?
Open Victron VRM Server on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare Victron VRM Server with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
