pvsyst-cli-mcp

v0.15.2
pvsyst-cli-mcp Checked 2 days ago Published 1 day ago

100% 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.

ParameterTypeDescription
project *string

pvsyst_clone_variant

[Projects & Variants] Clone a variant into a new VC (optionally from source_project) with optional component updates.

ParameterTypeDescription
new_variant *string
project *string
source_variant *string
source_project
subarray_idinteger
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.

ParameterTypeDescription
project *string
variant *string
include_economicsboolean
include_saved_resultsboolean
include_topologyboolean

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.

ParameterTypeDescription
new_variant *string
project *string
source_variant *string
target_type *string
add_utf8_bomboolean
dry_runboolean
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.

ParameterTypeDescription
new_variant *string
project *string
source_variant *string
tracking *
add_utf8_bomboolean
dry_runboolean
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.

ParameterTypeDescription
ac *
new_variant *string
project *string
source_variant *string
add_utf8_bomboolean
dry_runboolean
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'.

ParameterTypeDescription
dc *
new_variant *string
project *string
source_variant *string
add_utf8_bomboolean
dry_runboolean
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.

ParameterTypeDescription
new_variant *string
project *string
source_variant *string
add_utf8_bomboolean
dry_runboolean
hv
mv
remove_transformersboolean
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.

ParameterTypeDescription
geometry *
new_variant *string
project *string
source_variant *string
add_utf8_bomboolean
dry_runboolean
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.

ParameterTypeDescription
component_type *string
bifacial
librarystring
limitinteger
manufacturer
max_power_w
min_mppt
min_power_w
min_system_voltage_v
offsetinteger
querystring

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.

ParameterTypeDescription
component_type *string
filename *string
include_curve_csvboolean
librarystring
limitinteger
offsetinteger

pvsyst_create_component

[Components] Create a new PAN, OND, BTR, GEN, or REV file in the workspace from UTF-8 PVObject_ text.

ParameterTypeDescription
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.

ParameterTypeDescription
component_type *string
filename *string
updates *object
commercial_updates
curve_csv
curve_updates
dry_runboolean
expected_sha256
refit_single_diodeboolean
remarks
use_file_curveboolean

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…

ParameterTypeDescription
component_type *string
declarations *array
manufacturer *string
model *string
new_name *string
sources *object
acknowledge_inherited_modelboolean
chemistrystring
dry_runboolean
source_librarystring
template_name

pvsyst_capabilities

[Setup & License] List commands and option names actually available in the installed CLI (or one named command).

ParameterTypeDescription
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'.

ParameterTypeDescription
filename *string
time_stepstring
variablesstring

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).

ParameterTypeDescription
backgroundboolean
dry_runboolean
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.

ParameterTypeDescription
csv_name *string
project *string
variant *string
allow_resizeboolean
allow_window_creation
confirmboolean
dry_runboolean
max_iterationsinteger
max_operating_c
min_ambient_c
sfi_name
thresholds
time_stepstring

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.

ParameterTypeDescription
project *string
variant *string
allow_window_creation
batch_params_namestring
batch_rvt_namestring
csv_namestring
end_datestring
log_level
met_namestring
params_namestring
pdf_namestring
recompute_shading
report_languagestring
report_pagesstring
rvt_namestring
sfi_namestring
site_namestring
start_datestring
synthetic_weatherboolean
time_stepstring

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.

ParameterTypeDescription
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).

ParameterTypeDescription
ond_name *string
pan_name *string
target_dc_kw *
allow_asymmetric_mpptboolean
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_standardstring

pvsyst_project_handoff

[Engineering] Read saved equipment, counts, orientation/circuit relationships, weather, load, and storage settings alongside caller declarations and missing inputs.

ParameterTypeDescription
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.

ParameterTypeDescription
objective *string
output_name *string
scenarios *array
dry_runboolean

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.

ParameterTypeDescription
manifest_name *string
output_name *string
comparison_namestring
dry_runboolean

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.

ParameterTypeDescription
country_codestring
csv_namestring
dry_runboolean
met_namestring
sit_namestring
step_minutes
time_basisstring
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.

ParameterTypeDescription
query *string
country_codestring

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.

ParameterTypeDescription
altitude
country_codestring
csv_namestring
dry_runboolean
latitude
location_id
longitude
met_namestring
prepareboolean
providerstring
sit_namestring
site_namestring
strict_dhiboolean
temperature_methodstring
timezone_namestring
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.

ParameterTypeDescription
csv_name *string
native_csv_name *string
year *integer
acquisition_manifest_namestring
weather_manifest_namestring

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.

ParameterTypeDescription
csv_name *string
output_name *string
time_basis *string
utc_offset_hours *integer
year *integer
date_columnstring
date_formatstring
dry_runboolean
load_columnstring

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.

ParameterTypeDescription
load *
new_variant *string
project *string
source_variant *string
add_utf8_bomboolean
dry_runboolean
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.

ParameterTypeDescription
new_variant *string
project *string
source_variant *string
updates *
allow_grid_export
availability
dry_runboolean

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.

ParameterTypeDescription
battery *
new_variant *string
project *string
source_variant *string
storage *
allow_grid_export
availability
dry_runboolean
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.

ParameterTypeDescription
charge_power_kw *
tou_schedule *array
charging_strategystring
cycles_per_dayinteger
day_typestring
default_export_rate
default_import_rate
discharge_power_kw
min_spread
monthinteger
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.

ParameterTypeDescription
csv_name *string
columnsstring
compare_folder
compare_tostring
folderstring

pvsyst_read_rows

[Results] Read a bounded page from Results or batch UserHourly CSVs.

ParameterTypeDescription
csv_name *string
columnsstring
folderstring
limitinteger
offsetinteger

pvsyst_read_batch_results

[Results] Read SIM_* scenario values from a UserBatch/*Results[_<n>].CSV summary.

ParameterTypeDescription
summary_name *string
columnsstring

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.

ParameterTypeDescription
csv_name *string
folderstring
project
thresholds
variant