Venus Os
БесплатноНе проверенMCP server for Victron Venus OS that enables reading battery, PV, grid, and inverter data via D-Bus and MQTT, and safely controlling inverter mode and charge li
Описание
MCP server for Victron Venus OS that enables reading battery, PV, grid, and inverter data via D-Bus and MQTT, and safely controlling inverter mode and charge limits.
README
MCP (Model Context Protocol) server for Victron Venus OS management. Provides tools for reading and controlling Venus OS devices via D-Bus and MQTT.
Features
- D-Bus Read Tools: Battery SoC, PV power, grid status, inverter state
- Write Tools: Set inverter mode, charge limits, SoC limits (with safety confirmation)
- MQTT Subscription: Real-time data streaming from Venus OS
- Safety Constraints: Refuses dangerous commands without explicit confirmation
- Claude Desktop Integration: Ready-to-use MCP server configuration
Quick Start
Installation
Not yet on PyPI. Install from GitHub:
pip install git+https://github.com/4alvit/mcp-venus-os
Or for development:
git clone https://github.com/4alvit/mcp-venus-os
cd mcp-venus-os
uv sync
Configuration
Create a .env file or set environment variables:
# D-Bus configuration
DBUS_BUS_TYPE=system
DBUS_SERVICE_NAME=com.victronenergy
# MQTT configuration
MQTT_HOST=localhost
MQTT_PORT=1883
MQTT_BASE_TOPIC=N/venus-os
# Safety configuration
SAFETY_REQUIRE_CONFIRMATION=true
SAFETY_MAX_CHARGE_CURRENT=100
SAFETY_MAX_DISCHARGE_CURRENT=100
SAFETY_MIN_SOC_LIMIT=10
SAFETY_MAX_SOC_LIMIT=100
SAFETY_ALLOWED_MODES=on,off,charger_only,inverter_only,eco
Running the Server
mcp-venus-os
Or with uv:
uv run mcp-venus-os
Claude Desktop Integration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"venus-os": {
"command": "uv",
"args": ["--directory", "/path/to/mcp-venus-os", "run", "mcp-venus-os"],
"env": {
"DBUS_BUS_TYPE": "system",
"MQTT_HOST": "localhost",
"MQTT_PORT": "1883"
}
}
}
}
Available Tools
Read Tools
| Tool | Description |
|---|---|
get_battery_soc |
Get battery state of charge, voltage, current, power, temperature |
get_pv_power |
Get PV/solar charger power, voltage, current, daily/total yield |
get_grid_status |
Get grid/AC power, voltage, current, frequency, status |
get_inverter_status |
Get inverter mode, state, AC/DC power, temperature |
list_devices |
List all Victron devices on D-Bus |
Write Tools (Requires Confirmation)
| Tool | Description |
|---|---|
set_inverter_mode |
Set inverter mode: on, off, charger_only, inverter_only, eco |
set_charge_current_limit |
Set maximum charge current in Amps |
set_soc_limit |
Set battery SoC limit percentage |
MQTT Tools
| Tool | Description |
|---|---|
mqtt_connect |
Connect to MQTT broker |
mqtt_disconnect |
Disconnect from MQTT broker |
mqtt_subscribe |
Subscribe to MQTT topic pattern |
Safety System
All write operations require explicit confirmation by default. Set confirmed=true in the tool call to bypass the confirmation prompt.
Configuration options:
SAFETY_REQUIRE_CONFIRMATION- Require confirmation for write operations (default: true)SAFETY_MAX_CHARGE_CURRENT- Maximum allowed charge current in Amps (default: 100)SAFETY_MAX_DISCHARGE_CURRENT- Maximum allowed discharge current in Amps (default: 100)SAFETY_MIN_SOC_LIMIT- Minimum allowed SoC limit % (default: 10)SAFETY_MAX_SOC_LIMIT- Maximum allowed SoC limit % (default: 100)SAFETY_ALLOWED_MODES- Comma-separated list of allowed inverter modes
Architecture
graph TD
subgraph "Venus OS Hardware"
VOS[Venus OS / Cerbo GX]
DBUS[(D-Bus System Bus)]
MQTT_BROKER[(MQTT Broker)]
end
subgraph "MCP Server (mcp-venus-os)"
MCP[FastMCP Server]
DBUS_CLIENT[D-Bus Client]
MQTT_CLIENT[MQTT Client]
SAFETY[Safety Validator]
TOOLS[MCP Tools]
end
subgraph "Clients"
CLAUDE[Claude Desktop]
OTHER[Other MCP Clients]
end
VOS --> DBUS
VOS --> MQTT_BROKER
DBUS --> DBUS_CLIENT
MQTT_BROKER --> MQTT_CLIENT
DBUS_CLIENT --> TOOLS
MQTT_CLIENT --> TOOLS
SAFETY --> TOOLS
TOOLS --> MCP
MCP -.->|stdio/JSON-RPC| CLAUDE
MCP -.->|stdio/JSON-RPC| OTHER
Development
# Install dev dependencies
uv sync --dev
# Run linter
uv run ruff check src/
# Run type checker
uv run mypy src/
# Run tests
uv run pytest
License
MIT License - see LICENSE file for details.
Установить Venus Os в Claude Desktop, Claude Code, Cursor
unyly install mcp-venus-osСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add mcp-venus-os -- uvx --from git+https://github.com/4alvit/mcp-venus-os mcp-venus-osПошаговые гайды: как установить Venus Os
FAQ
Venus Os MCP бесплатный?
Да, Venus Os MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Venus Os?
Нет, Venus Os работает без API-ключей и переменных окружения.
Venus Os — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Venus Os в Claude Desktop, Claude Code или Cursor?
Открой Venus Os на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: 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
автор: mcpdotdirectCompare Venus Os with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
