pvsyst-cli-mcp
v0.15.2100% headless workspace-scoped MCP server and Python engineering adapter for installed PVsyst 8 software (Grid + Stand-Alone off-grid PV+BESS+Genset, MV/HV…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
pvsyst_list_projects
[Projects & Variants] List PRJ filenames in the configured workspace.
pvsyst_inspect_project
[Projects & Variants] List PRJ/VC SHA-256 hashes, embedded SIT/MET references, missing workspace files, and source mismatches.
| Parameter | Type | Description |
|---|---|---|
project * | string |
pvsyst_clone_variant
[Projects & Variants] Clone a variant into a new VC (optionally from source_project) with optional component updates.
| Parameter | Type | Description |
|---|---|---|
new_variant * | string | |
project * | string | |
source_variant * | string | |
source_project | ||
subarray_id | integer | |
updates |
pvsyst_get_variant_parameters
[Projects & Variants] Inspect stored variant state (orientations, subarrays, inverter_state, main_array, losses, energy management, transformers, cabling, storage, and shading_scene), optionally including saved_results, economics, and raw pvCircuit topology.
| Parameter | Type | Description |
|---|---|---|
project * | string | |
variant * | string | |
include_economics | boolean | |
include_saved_results | boolean | |
include_topology | boolean |
pvsyst_update_variant_parameters
[Projects & Variants] Update variant parameters (subarray/orientation/main_array scalars, generator, power sharing, independent MPPT, display name, soiling, grid limit, auxiliaries, seasonal tilt, horizon, inverter temperature, power factor, power controls, P50/P90, string mismatch, ageing, IAM, system unavailability periods/random/removal, bifacial pvBiFacial, spectral correction, or native TEcoEvaluation for PDF financial pages) with SHA-256 optimistic locking and rollback backup.
pvsyst_convert_orientation
[Projects & Variants] Create a new variant converting an existing variant's orientation type in-place (fixed <-> seasonal <-> sheds <-> tracker_ns <-> tracker_2axis <-> dome), automatically stripping incompatible 3D shading and stale simulation caches. Defaults to dry_run=true.
| Parameter | Type | Description |
|---|---|---|
new_variant * | string | |
project * | string | |
source_variant * | string | |
target_type * | string | |
add_utf8_bom | boolean | |
dry_run | boolean | |
params | ||
variant_name |
pvsyst_create_tracking_variant
[Projects & Variants] Create a new variant updating tracking parameters (UnlimTracking, TrackHorizNSAxis, TrackTiltedAxis, TrackVertAxis, TrackSunShield, TrackHorizAxis, TrackTwoAxis, TrackFrameNS, or TrackFrameEW) on an existing tracking template.
| Parameter | Type | Description |
|---|---|---|
new_variant * | string | |
project * | string | |
source_variant * | string | |
tracking * | ||
add_utf8_bom | boolean | |
dry_run | boolean | |
variant_name |
pvsyst_create_ac_cabling_variant
[Projects & Variants] Create a new variant configuring uniform per-inverter AC cable length (0.1 m precision) and optional conductor/section.
| Parameter | Type | Description |
|---|---|---|
ac * | ||
new_variant * | string | |
project * | string | |
source_variant * | string | |
add_utf8_bom | boolean | |
dry_run | boolean | |
variant_name |
pvsyst_create_dc_cabling_variant
[Projects & Variants] Create a new variant configuring DC cabling resistance (mOhm) or STC loss (%) headlessly; built-in encrypted .PAN modules support mode='resistance' and reject mode='percent'.
| Parameter | Type | Description |
|---|---|---|
dc * | ||
new_variant * | string | |
project * | string | |
source_variant * | string | |
add_utf8_bom | boolean | |
dry_run | boolean | |
variant_name |
pvsyst_configure_transformers
[Projects & Variants] Create a new variant configuring single/parallel MV transformers, optional cascaded HV substation transformer, custom iron/copper losses, MV/HV AC collection cables, and night disconnect (or strip all transformers with remove_transformers=true). Enforces PVsyst 8.1.7 native rating (80%-200% PNomInvAC), voltage ordering, and loss bounds (<=1% iron, <=5% copper). Defaults to dry_run=true.
| Parameter | Type | Description |
|---|---|---|
new_variant * | string | |
project * | string | |
source_variant * | string | |
add_utf8_bom | boolean | |
dry_run | boolean | |
hv | ||
mv | ||
remove_transformers | boolean | |
variant_name |
pvsyst_create_shed_geometry_variant
[Projects & Variants] Create a new variant updating Sheds or SunShields pitch, tilt, count, width, inactive bands, shading factor, or electrical shading flag.
| Parameter | Type | Description |
|---|---|---|
geometry * | ||
new_variant * | string | |
project * | string | |
source_variant * | string | |
add_utf8_bom | boolean | |
dry_run | boolean | |
variant_name |
pvsyst_prepare_design_project
[Projects & Variants] Run component lookup, weather preparation, and project configuration (fixed_unshaded_grid, ground_sheds, or ground_tracker with optional ground_layout/bifacial) without launching an annual simulation. Set verbose=true to expand per-template discovery rejection details.
pvsyst_list_components
[Components] List PAN, OND, BTR, GEN or REV loose files in workspace or installed DataRO with optional electrical filtering (power range, bifaciality, system voltage, MPPT count, manufacturer) backed by an mtime-keyed metadata cache.
| Parameter | Type | Description |
|---|---|---|
component_type * | string | |
bifacial | ||
library | string | |
limit | integer | |
manufacturer | ||
max_power_w | ||
min_mppt | ||
min_power_w | ||
min_system_voltage_v | ||
offset | integer | |
query | string |
pvsyst_get_component
[Components] Read paged UTF-8 text, editable scalar allowlist, SHA-256, OND/BTR curves, commercial fields, and remarks for a PAN, OND, BTR, GEN, or REV component.
| Parameter | Type | Description |
|---|---|---|
component_type * | string | |
filename * | string | |
include_curve_csv | boolean | |
library | string | |
limit | integer | |
offset | integer |
pvsyst_create_component
[Components] Create a new PAN, OND, BTR, GEN, or REV file in the workspace from UTF-8 PVObject_ text.
| Parameter | Type | Description |
|---|---|---|
component_type * | string | |
content * | string | |
filename * | string |
pvsyst_update_component
[Components] Update allowlisted scalar fields, commercial metadata, remarks (up to 5 lines), or Mode 1 OND (single- or 3-voltage ProfilPIOV1..3) / BTR curve tables (4..256 points via curve_updates or curve_csv) in a workspace component with SHA-256 optimistic locking and automatic backup. Set refit_single_diode=true on PAN STC edits to refit single-diode params.
| Parameter | Type | Description |
|---|---|---|
component_type * | string | |
filename * | string | |
updates * | object | |
commercial_updates | ||
curve_csv | ||
curve_updates | ||
dry_run | boolean | |
expected_sha256 | ||
refit_single_diode | boolean | |
remarks | ||
use_file_curve | boolean |
pvsyst_build_sourced_component
[Components] Build a new user-defined PAN, OND, or Li-ion BTR from cited datasheet values: either derived from a template (template_name set) or synthesized zero-template with single-diode / single- or 3-voltage Mode-1 OND / Li-ion LFP-NMC BTR derivation (template_name omitted). Requires acknowledge_inherited_model=true when dry_run=false. Canonical declaration fields and allowed units (case-sensitive PVsyst keys): - Common dimensions: Width (m|mm), Height (m|mm), Depth (m|mm), Weight (kg) - PAN: PNom (W), ISC (A), Voc (V), Imp (A), Vmp (V), NCelS (count|cells), NCelP (count|strings), NDiod…
| Parameter | Type | Description |
|---|---|---|
component_type * | string | |
declarations * | array | |
manufacturer * | string | |
model * | string | |
new_name * | string | |
sources * | object | |
acknowledge_inherited_model | boolean | |
chemistry | string | |
dry_run | boolean | |
source_library | string | |
template_name |
pvsyst_capabilities
[Setup & License] List commands and option names actually available in the installed CLI (or one named command).
| Parameter | Type | Description |
|---|---|---|
command |
pvsyst_license_info
[Setup & License] Read CLI license state and quota without returning keys or Host ID.
pvsyst_build_sfi
[Simulation] Create a new export definition (.SFI) in workspace/Models from a preset group (energy, inverter_losses, all_common, shading, soiling, grid_limit, grid_storage, bifacial) or comma-separated vi* variables, with time_step='hour' (default), 'subhour', 'day', or 'month'.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
time_step | string | |
variables | string |
pvsyst_run_batch_sweep
[Simulation] Generate UserBatch <sweep_name>_BatchParams.CSV and <sweep_name>_BatchVariables.RVT from a Cartesian parameter grid or explicit scenario rows (<=100 scenarios), run one PVsystCLI batch simulation, and return ranked scenario results with baseline deltas. Supports both ``inverter_count`` (auto-scaled by MPPT/inverter on independent-MPPT subarrays) and ``mppt_count`` (raw MPPT count), auto-converts fractional ``albedo`` (0..1 -> %), and supports ``background=True`` + ``job_id`` polling for long sweeps (>8 scenarios).
| Parameter | Type | Description |
|---|---|---|
background | boolean | |
dry_run | boolean | |
job_id | ||
spec |
pvsyst_optimize_variant
[Simulation] Bounded Diagnose -> Clone -> Patch -> Re-simulate loop. Default dry_run=true returns deterministic remediation actions and unified diff previews without modifying files; dry_run=false with confirm=true clones new sequential variants (never mutating baseline) for up to max_iterations (1..5), stopping early once high/critical anomalies clear.
| Parameter | Type | Description |
|---|---|---|
csv_name * | string | |
project * | string | |
variant * | string | |
allow_resize | boolean | |
allow_window_creation | ||
confirm | boolean | |
dry_run | boolean | |
max_iterations | integer | |
max_operating_c | ||
min_ambient_c | ||
sfi_name | ||
thresholds | ||
time_step | string |
pvsyst_optimize_bess_sizing
[Simulation] Two-stage hybrid PV+BESS capacity sizing optimizer: Stage 1 runs a fast pure-Python grid sweep over (bess_kwh x pcs_kw x strategy) against TOU and two-part demand-charge tariffs, returning ranked candidates, a CAPEX-vs-NPV Pareto frontier, and a 2D heatmap; optional Stage 2 (verify_top_k 1..5 with dry_run=false and confirm=true) runs PVsystCLI to reconcile exact KPIs.
pvsyst_run_house_task
[Simulation] Build a 3D house scene (.pvc2), write it headlessly via the native builder, bind roof orientations, save a new variant, and run a full-year CLI simulation with checkpoint resume.
pvsyst_run_simulation
[Simulation] Run a single or batch simulation via PVsystCLI.exe on an existing project/variant, writing CSV/PDF outputs to Results or batch outputs to UserBatch/UserHourly.
| Parameter | Type | Description |
|---|---|---|
project * | string | |
variant * | string | |
allow_window_creation | ||
batch_params_name | string | |
batch_rvt_name | string | |
csv_name | string | |
end_date | string | |
log_level | ||
met_name | string | |
params_name | string | |
pdf_name | string | |
recompute_shading | ||
report_language | string | |
report_pages | string | |
rvt_name | string | |
sfi_name | string | |
site_name | string | |
start_date | string | |
synthetic_weather | boolean | |
time_step | string |
pvsyst_simulate_design
[Simulation] Run a unified grid design workflow (fixed_unshaded_grid, ground_sheds, or ground_tracker, with optional ground_layout and pvBiFacial): component lookup, zero-template synthesis, capacity sizing, weather preparation/acquisition, and full-year simulation. Set verbose=true to expand per-template discovery rejection details.
pvsyst_prepare_sourced_design
[Simulation] Bind cited datasheet values and units against loose PAN/OND files to build an electrical_design envelope request.
| Parameter | Type | Description |
|---|---|---|
declarations * | array | |
ond_name * | string | |
pan_name * | string | |
sources * | object | |
design |
pvsyst_suggest_sizing
[Engineering] Read-only sizing assistant: derive recommended series/parallel/inverter counts and a drop-in capacity envelope from readable PAN/OND files with explicit assumptions (requires engineering review).
| Parameter | Type | Description |
|---|---|---|
ond_name * | string | |
pan_name * | string | |
target_dc_kw * | ||
allow_asymmetric_mppt | boolean | |
alpha_isc_pct_per_c | ||
beta_vmp_pct_per_c | ||
beta_voc_pct_per_c | ||
capacity_tolerance_pct | ||
max_dc_ac_ratio | ||
max_operating_c | ||
min_ambient_c | ||
min_dc_ac_ratio | ||
min_operating_c | ||
voltage_standard | string |
pvsyst_project_handoff
[Engineering] Read saved equipment, counts, orientation/circuit relationships, weather, load, and storage settings alongside caller declarations and missing inputs.
| Parameter | Type | Description |
|---|---|---|
project * | string | |
variant * | string | |
declarations |
pvsyst_run_engineering_task
[Engineering] Apply an isolated revision (angles/losses, UnlimTracking controls, AC storage, or brownfield repowering with PAN/OND swap, sizing, cabling, MV/HV transformers, bifacial, ageing, and baseline A/B comparison) in a new project and run a full-year simulation.
pvsyst_compare_engineering_scenarios
[Engineering] Compare two or three completed simulation runs against a baseline scenario and write JSON, CSV, and Markdown comparison reports under workspace/Results.
| Parameter | Type | Description |
|---|---|---|
objective * | string | |
output_name * | string | |
scenarios * | array | |
dry_run | boolean |
pvsyst_evaluate_economics
[Engineering] Pure-Python PV and PV+BESS financial evaluator: streams single or weighted multi-CSV hourly/sub-hourly SFI CSVs (or UserBatch summary CSVs) under fixed, TOU, or two-part demand-charge tariffs to compute LCOE, NPV, pre/post-tax project IRR, levered Equity IRR and DSCR (via optional composable VAT, CIT, loan financing, and staged OPEX tiers), payback, sensitivity sweeps, and scenario rankings.
pvsyst_generate_report
[Engineering] Generate a single-scenario or multi-scenario interactive Plotly HTML engineering report under workspace/Results (monthly yield/PR combo, loss waterfall, typical 24h PV/load/BESS/TOU profile, monthly peak demand shaving, 25-year cumulative cashflow, sensitivity tornado chart, optional BESS sizing heatmap/Pareto frontier, optional UserBatch parametric sweep curve chart via batch_summary_csv, optional 2D plan-view & 3D terrain/array layout maps via layout_preview or saved VCx pvShading, diagnostics table, and print-ready CSS).
pvsyst_export_engineering_delivery
[Engineering] Bundle a completed engineering run (and optional scenario comparison) with its PRJ/VC, result CSV/PDF, and Markdown handoff summary into a ZIP archive under workspace/Results.
| Parameter | Type | Description |
|---|---|---|
manifest_name * | string | |
output_name * | string | |
comparison_name | string | |
dry_run | boolean |
pvsyst_run_feasibility_study
[Engineering] One-shot end-to-end PV & PV+BESS feasibility study orchestrator: chains optional zero-template PAN/OND/BTR synthesis, PV simulation (or reuse of existing_csv), physics diagnostics, TOU PowerShift 48-slot planning, two-stage hybrid BESS sizing optimization, two-part demand/TOU economics with sensitivity tornado analysis, and bilingual Plotly HTML report generation. Defaults to dry_run=true; requires dry_run=false and confirm=true to write.
pvsyst_compare_design_options
[Engineering] Greenfield multi-architecture design selector: packs site geometry (polygon, DXF, dimensions, or area) across fixed ground sheds, single-axis tracker, and east-west dome layouts under shared weather, grid AC capacity, and budget constraints (<= 12 candidates), simulates surviving designs, ranks LCOE/NPV/IRR/yield with architecture-specific CAPEX/OPEX, and optionally renders a Plotly HTML report. Defaults to dry_run=true; requires dry_run=false and confirm=true to write.
pvsyst_prepare_weather
[Sites & Weather] Convert a validated full-year hourly or sub-hourly (5/10/15/30/60 min) weather CSV into new SIT and MET files and write a provenance manifest under workspace/Results.
| Parameter | Type | Description |
|---|---|---|
country_code | string | |
csv_name | string | |
dry_run | boolean | |
met_name | string | |
sit_name | string | |
step_minutes | ||
time_basis | string | |
year |
pvsyst_resolve_location
[Sites & Weather] Query Open-Meteo geocoding for a place name (2..100 chars) and return candidates with location_id, coordinates, ISO alpha-2 country code, and IANA timezone.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
country_code | string |
pvsyst_acquire_weather
[Sites & Weather] Download a full-year hourly weather dataset from Open-Meteo ERA5, PVGIS v5.3 TMY, or NASA POWER aligned to local winter standard time, saving raw JSON, CSV, and manifest. By default, small twilight satellite inversion excess (0 < GHI < 30 W/m2 and DHI - GHI <= 15 W/m2) is clamped to DHI = GHI with a manifest warning; pass strict_dhi=true to reject instead. Set prepare=true to chain directly into prepare_weather and emit SIT/MEF/MET.
| Parameter | Type | Description |
|---|---|---|
altitude | ||
country_code | string | |
csv_name | string | |
dry_run | boolean | |
latitude | ||
location_id | ||
longitude | ||
met_name | string | |
prepare | boolean | |
provider | string | |
sit_name | string | |
site_name | string | |
strict_dhi | boolean | |
temperature_method | string | |
timezone_name | string | |
year |
pvsyst_review_weather
[Sites & Weather] Compare a prepared hourly weather CSV in Meteo against exported simulation hourly values in Results and inspect the associated SIT/MET header metadata.
| Parameter | Type | Description |
|---|---|---|
csv_name * | string | |
native_csv_name * | string | |
year * | integer | |
acquisition_manifest_name | string | |
weather_manifest_name | string |
pvsyst_prepare_load_profile
[Loads & Storage] Validate a complete 8760/8784-hour load CSV in workspace/UserData and emit a normalized kW CSV in UserHourlyParams plus a provenance manifest in Results.
| Parameter | Type | Description |
|---|---|---|
csv_name * | string | |
output_name * | string | |
time_basis * | string | |
utc_offset_hours * | integer | |
year * | integer | |
date_column | string | |
date_format | string | |
dry_run | boolean | |
load_column | string |
pvsyst_create_native_load_variant
[Loads & Storage] Create a new PV-only self-consumption variant with a native constant (kW), monthly (12 x kWh), daily (24 x kW), or prepared hourly manifest load profile.
| Parameter | Type | Description |
|---|---|---|
load * | ||
new_variant * | string | |
project * | string | |
source_variant * | string | |
add_utf8_bom | boolean | |
dry_run | boolean | |
variant_name |
pvsyst_create_grid_storage_variant
[Loads & Storage] Create a new variant updating SOC thresholds, AC charge/discharge power limits, converter efficiencies, strategy/schedules (SelfConsumption, WeakGrid, PeakShaving, PowerShift), grid_limit_kw, or allow_grid_export on an existing AC storage variant.
| Parameter | Type | Description |
|---|---|---|
new_variant * | string | |
project * | string | |
source_variant * | string | |
updates * | ||
allow_grid_export | ||
availability | ||
dry_run | boolean |
pvsyst_create_grid_storage_system
[Loads & Storage] Create a new centralized AC-coupled storage variant (SelfConsumption, WeakGrid, PeakShaving, or PowerShift) with workspace or builtin battery pack hardware, SOC/power/ efficiency parameters, optional 48-slot schedules or grid limit, and optional hourly load.
| Parameter | Type | Description |
|---|---|---|
battery * | ||
new_variant * | string | |
project * | string | |
source_variant * | string | |
storage * | ||
allow_grid_export | ||
availability | ||
dry_run | boolean | |
load_manifest_name |
pvsyst_plan_tou_storage_schedule
[Loads & Storage] Deterministically convert a time-of-use (TOU) tariff schedule into PVsyst PowerShift 48-slot half-hourly charge/discharge schedules (1 or 2 cycles/day) and a drop-in storage_updates dict.
| Parameter | Type | Description |
|---|---|---|
charge_power_kw * | ||
tou_schedule * | array | |
charging_strategy | string | |
cycles_per_day | integer | |
day_type | string | |
default_export_rate | ||
default_import_rate | ||
discharge_power_kw | ||
min_spread | ||
month | integer | |
round_trip_efficiency | ||
usable_energy_kwh |
pvsyst_read_results
[Results] Summarize hourly or sub-hourly SFI rows in Results or UserHourly, or diff target (csv_name) minus baseline (compare_to) across 1..64 aligned columns.
| Parameter | Type | Description |
|---|---|---|
csv_name * | string | |
columns | string | |
compare_folder | ||
compare_to | string | |
folder | string |
pvsyst_read_rows
[Results] Read a bounded page from Results or batch UserHourly CSVs.
| Parameter | Type | Description |
|---|---|---|
csv_name * | string | |
columns | string | |
folder | string | |
limit | integer | |
offset | integer |
pvsyst_read_batch_results
[Results] Read SIM_* scenario values from a UserBatch/*Results[_<n>].CSV summary.
| Parameter | Type | Description |
|---|---|---|
summary_name * | string | |
columns | string |
pvsyst_diagnose_results
[Results] Run deterministic physics loss-chain and time-series anomaly diagnostics on an SFI result CSV (PR bounds, inverter clipping/voltage/current limits, shading/curtailment, storage balance, daytime zero-output and phase lag), with optional .VC0 root-cause attribution.
| Parameter | Type | Description |
|---|---|---|
csv_name * | string | |
folder | string | |
project | ||
thresholds | ||
variant |