VoltPlan Wiring Diagrams

v0.5.0
io.github.YUZU-Hub/wiring-diagram-mcp Checked 15 hours ago Published 13 days ago

Generate 12V/24V/48V wiring diagrams and size wires, fuses, batteries, solar, and inverters.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

generate_wiring_diagram Generate Wiring Diagram

Generate an electrical wiring diagram for campers, boats, or off-grid setups. Returns the schematic as an image (batteries, chargers, protection components, loads) and a link that opens it in the VoltPlan editor to refine, save and turn into a shopping list. Protection components (shunt, main switch, low-voltage cutoff) are auto-generated when both batteries and loads are provided. Show the user the editor link.

ParameterTypeDescription
systemName *stringName of the electrical system (e.g. "My Camper Van")
batteriesarrayBatteries in the system
chargersarrayChargers with their power sources
formatstringpng (default): an image the client displays. svg: SVG markup as text, without component icons, for clients that save or post-process files.
loadsarrayElectrical loads / consumers

find_components Find Components

Find real products in VoltPlan's curated component catalogue that match a spec, e.g. a 200 Ah 12 V LiFePO4 battery or a 2000 W pure-sine inverter. Results come closest rating first. The catalogue is small and curated, so results may deviate from the requested spec; check the listed specs. Use it after the calculators (calculate_battery_bank, calculate_solar_size, calculate_inverter_size) have sized the part. Returns product pages and buy links for each product; show them to the user.

ParameterTypeDescription
category *stringKind of product: battery, solar_panel, solar_charge_controller (MPPT/PWM), dc_dc_charger (alternator / B2B charger), ac_charger (shore / mains battery charger), inverter (incl. inverter-chargers), pow…
capacityAhnumberBatteries only: target capacity in amp-hours. Ranks results.
capacityWhnumberBatteries and power stations: target energy in watt-hours. Ranks results; for batteries capacityAh wins when both are given.
limitintegerMaximum number of products to return (1-10, default: 5)
powerWattsnumberTarget power rating in watts: inverter continuous W, charger or controller output W, panel W, power station AC output W, appliance W. Ranks results; not used for batteries.
pureSinebooleantrue: only pure sine wave products (inverter, power_station).
querystringFree-text filter; every word must appear in the product (e.g. "LiFePO4", "Victron").
systemVoltagenumberSystem (battery bank) voltage: 12, 24 or 48. Leaves out products built for another voltage. Ignored for solar_panel, power_station and battery_monitor.

build_bom Build Shopping List

Build the shopping list (bill of materials) for the same system generate_wiring_diagram takes: components with matching products from VoltPlan's catalogue, cable per gauge with lengths, fuses, fuse holders, terminals and tools, sized with the same rules as the diagram. Returns buy links for every line and a link that opens the system in the VoltPlan editor; show them to the user.

ParameterTypeDescription
systemName *stringName of the electrical system (e.g. "My Camper Van")
batteriesarrayBatteries in the system
chargersarrayChargers with their power sources
loadsarrayElectrical loads / consumers

list_component_types List Component Types

List all available component types and example configurations for building wiring diagrams. Use this to understand what parameters are needed before calling generate_wiring_diagram.

calculate_wire_gauge Cable Cross-Section & Resistance Calculator

Calculate the recommended wire gauge / cable cross-section for a DC circuit. Considers both ampacity (current carrying capacity) and voltage drop to recommend the optimal cable size. Also returns total resistance, power loss, and a fuse recommendation. Supports copper conductors from 0.75 mm² (18 AWG) to 240 mm² (300 MCM).

ParameterTypeDescription
cableLengthM *numberOne-way cable length in meters
voltage *numberSystem voltage in volts (e.g. 12, 24, 48)
currentnumberLoad current in amps. Provide either current or power.
isRoundTripbooleanAccount for both positive and negative conductor (default: true). Set to false for chassis-ground returns.
maxVoltageDropPercentnumberMaximum acceptable voltage drop in percent (default: 3%)
powernumberLoad power in watts. Will be converted to current using the voltage. Provide either current or power.
temperatureCelsiusnumberAmbient temperature in °C (default: 20°C). Affects copper resistance.

calculate_power_budget Power Budget / Energy Audit

Calculate total daily energy consumption from a list of electrical loads. Each load specifies its power draw, how many hours per day it runs, and quantity. Returns total daily energy (Wh and Ah), peak power draw, and average power. This is typically the first step in sizing a battery bank and solar system.

ParameterTypeDescription
loads *arrayList of electrical loads to include in the budget
systemVoltage *numberSystem voltage in volts (e.g. 12, 24, 48)

calculate_battery_bank Battery Bank Sizing Calculator

Calculate the recommended battery bank size based on daily energy consumption. Accounts for days of autonomy (how many days without charging) and depth of discharge. Returns required capacity, number of batteries, and wiring configuration.

ParameterTypeDescription
dailyConsumptionWh *numberDaily energy consumption in watt-hours (from calculate_power_budget)
singleBatteryAh *numberCapacity of a single battery in amp-hours (e.g. 100, 200)
singleBatteryVoltage *numberVoltage of a single battery (e.g. 12.8 for LiFePO4, 12 for lead-acid)
systemVoltage *numberTarget system voltage in volts (e.g. 12, 24, 48)
daysOfAutonomynumberDays the system should run without any charging (default: 2)
depthOfDischargePercentnumberUsable percentage of battery capacity. LiFePO4: 80-90%, AGM: 50%, Gel: 50% (default: 80)

calculate_solar_size Solar Panel Sizing Calculator

Calculate the required solar panel wattage to cover daily energy consumption. Accounts for peak sun hours at the location and system efficiency losses (MPPT conversion, wiring, temperature derating). Returns required wattage and common panel configurations.

ParameterTypeDescription
dailyConsumptionWh *numberDaily energy consumption in watt-hours (from calculate_power_budget)
peakSunHours *numberAverage daily peak sun hours for the location. Examples: Northern Europe winter 1-2h, summer 4-6h. Southern US 5-6h. Equatorial regions 5-7h.
systemEfficiencynumberOverall system efficiency factor (default: 0.85). Accounts for MPPT losses, wiring losses, temperature derating, and panel soiling.

calculate_charging_time Charging Time Calculator

Estimate how long it takes to charge a battery bank from a given state of charge to a target level. Accounts for the bulk charging phase (constant current, up to ~80% SoC) and the slower absorption phase (tapering current, 80-100% SoC). Works for any charging source: solar, shore power, alternator.

ParameterTypeDescription
batteryCapacityAh *numberTotal battery bank capacity in amp-hours
batteryVoltage *numberBattery bank voltage (e.g. 12, 24, 48)
chargePowerWatts *numberCharger output power in watts
currentStateOfChargePercent *numberCurrent state of charge in percent (e.g. 20 for 20%)
chargeCurrentAmpsnumberMaximum charge current in amps (if limited by the charger or battery BMS). If omitted, calculated from power and voltage.
targetStateOfChargePercentnumberTarget state of charge in percent (default: 100)

calculate_inverter_size Inverter Sizing Calculator

Calculate the recommended inverter size for running AC loads from a DC battery system. Accounts for continuous power, startup surge power (motors typically surge 2-3x), and includes a 25% headroom for the continuous rating. Returns the recommended inverter wattage and the DC current draw at system voltage.

ParameterTypeDescription
loads *arrayList of AC loads that will run through the inverter
systemVoltage *numberDC system voltage (e.g. 12, 24, 48)

calculate_battery_config Battery Configuration Calculator

Determine how to arrange batteries in series and/or parallel to achieve a target voltage and capacity. Returns the number of batteries needed, the wiring configuration (e.g. 2S3P), and step-by-step wiring instructions.

ParameterTypeDescription
singleBatteryAh *numberCapacity of one battery in amp-hours
singleBatteryVoltage *numberNominal voltage of one battery (e.g. 12.8 for LiFePO4, 12 for lead-acid, 3.2 for LiFePO4 cells)
targetCapacityAh *numberDesired total capacity in amp-hours
targetVoltage *numberDesired system voltage (e.g. 12, 24, 48)