Victron VRM MCP Server

Victron VRM MCP Server

Read-only MCP server integrating with the Victron VRM API to monitor solar systems, batteries, alarms, and more.

Category
访问服务器

README

Victron VRM MCP Server

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 token
  • VRM_BASE_URL (optional): Default is https://vrmapi.victronenergy.com/v2
  • VRM_TOKEN_KIND (optional): Either Token (default) or Bearer

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

  1. Log into VRM Portal
  2. Go to Preferences → Integrations → Access tokens
  3. Create a new personal access token
  4. 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 ID
  • vrm_list_installations - List all installations accessible to the user
  • vrm_get_system_overview - Get high-level system overview for a site
  • vrm_get_stats - Time-series statistics (venus, live_feed, consumption, kwh, solar_yield, forecast)
  • vrm_get_overall_stats - Aggregated totals for attribute codes over a period
  • vrm_get_alarms - Retrieve alarms for a site
  • vrm_get_diagnostics - Get most recent diagnostic datapoints
  • vrm_get_widget_graph - Widget graph data for specific device instances

Authentication & User Management (4 tools)

  • vrm_auth_login_as_demo - Login as demo account
  • vrm_auth_logout - Logout from current session
  • vrm_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 parsing
  • vrm_download_gps_data - Download GPS tracking data
  • vrm_get_installation_tags - Get installation tags and labels
  • vrm_get_custom_widget - Get custom widget configuration
  • vrm_get_dynamic_ess_settings - Get Dynamic ESS configuration

Widget State Monitoring (7 tools)

  • vrm_get_vebus_state - VE.Bus system state
  • vrm_get_inverter_charger_state - Inverter/charger operational state
  • vrm_get_charger_relay_state - Charger relay switching status
  • vrm_get_solar_charger_relay_state - Solar charger relay state
  • vrm_get_gateway_relay_state - Gateway relay state
  • vrm_get_gateway_relay_two_state - Secondary gateway relay state
  • vrm_get_status_widget - General system status

Warnings & Alarms (2 tools)

  • vrm_get_vebus_warnings_alarms - VE.Bus system warnings and alarms
  • vrm_get_inverter_charger_warnings_alarms - Inverter/charger warnings

Device Summaries (9 tools)

  • vrm_get_battery_summary - Battery voltage, current, SoC, health
  • vrm_get_solar_charger_summary - MPPT performance and yield
  • vrm_get_ev_charger_summary - EV charging status and power
  • vrm_get_global_link_summary - GlobalLink device summary
  • vrm_get_motor_summary - Motor drive RPM and power
  • vrm_get_pv_inverter_status - PV inverter AC output status
  • vrm_get_tank_summary - Tank levels and capacity
  • vrm_get_temp_summary_graph - Temperature sensors and graphs
  • vrm_get_dc_meter - DC power meter readings

Advanced Diagnostics (4 tools)

  • vrm_get_bms_diagnostics - BMS cell voltages and balancing
  • vrm_get_lithium_bms - Lithium battery BMS data
  • vrm_get_historic_data - Historic data trends
  • vrm_get_io_extender - IO extender digital/analog signals

System-Wide Information (3 tools)

  • vrm_get_data_attributes - System-wide data attributes
  • vrm_get_firmwares - Available firmware versions
  • vrm_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

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选