ventsim-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ventsim-mcp open C:\models\mine.vsm and list the 10 airways with the highest velocity."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ventsim-mcp
An MCP server that lets AI assistants read and inspect
Ventsim mine ventilation models (.vsm files).
It works on the model file itself, so Ventsim does not need to be running. It does not run the ventilation simulation; it reads the geometry, fans and the results Ventsim saved in the file.
Unofficial. Not affiliated with or endorsed by Howden / Chasm Consulting. "Ventsim" is their trademark. The
.vsmformat is undocumented; it was read from files saved by Ventsim DESIGN 6 and may change between versions.
Tools
Tool | What it does |
| Title, Ventsim version, airway and fan counts, total length, depth range |
| Filter by name/notes or minimum velocity, sort by any field (airflow, length, pressure...) |
| Every column of one airway |
| Fan airways with fan model name, duty airflow, fan pressure, power |
| Airways above a maximum (or below a minimum) air velocity |
| Fans by model with total |
| Diff two saved versions: added/removed airways, airflow and pressure changes |
| Airflow mass balance at every junction (finds un-simulated or broken networks) |
| Experimental: re-solve the network after scaling airway resistance or switching fans off, report airflow changes |
| Airways to CSV, any columns |
| Experimental: write a copy with changed Notes / Group / Branch Name |
All values are in the SI units Ventsim stores internally (m, m3/s, Pa, kW).
Related MCP server: mcp-vcd
Install
pip install git+https://github.com/agenticeram/ventsim-mcpClaude Desktop / Claude Code config:
{ "mcpServers": { "ventsim": { "command": "ventsim-mcp" } } }Then ask, for example: "Open C:\models\mine.vsm and list the 10 airways with the highest velocity."
File format notes
A .vsm is a gzip-compressed, CRLF-separated, tab-delimited text file. The airway table starts
at a header line beginning MAIN<TAB>Unique No, which names all ~288 columns; the parser uses
those names, never fixed positions. Reading and writing is byte-exact when nothing is edited. A .txt export of the same file (uncompressed) is read too.
The CSV/NBC/XLSX exports are headerless or derived dumps of the same tables and are not supported; use the .vsm/.txt.
What-if solver (experimental)
what_if solves node pressures for the airways of the simulated stage, balancing mass
flow (air expands as it warms) with dP = R*Q|Q| - Ps(Q) - NVP on every airway. What it
reads from the file:
Stage:
Stageis a bit mask and an airway that differs between stages is stored once per stage, on top of each other. The stage whose saved airflow balances is used.Junctions: airway ends closer than 5 cm are one node.
Resistance: the effective value from the saved pressure drop (includes fittings, dampers, orifices); scaling in
what_ifmultiplies it. Closed airways carry no air.Fans: density-corrected curves, static or total pressure as the saved results show, speed by the affinity laws, curve calibrated through the saved duty point. A fan whose saved pressure drop is resistance only is treated as stopped.
Boundaries: portals and dead ends are held at the pressure that reproduces the saved flow; natural ventilation pressure stays at its saved value.
Because resistances, fan duty points and boundaries are taken from the saved state, the
fit below is largely a consistency check that the network was read correctly, not an
independent accuracy figure (total absolute flow error / total flow,
python bench/fit.py <folder>):
Ventsim DESIGN 6 example | Airways solved | Error |
CoalMine | 3,403 | 0.58 % |
Fire2 | 151 | 0.85 % |
HVACDemo | 55 | 0.70 % |
without_ducting | 408 | 0.16 % |
diamondmine | 1,057 | 0.07 % |
Blue_sky | 531 | 0.05 % |
InclinedHeatMine, Tutorial2, HVACDemoB, NatVent, Fire | < 0.05 % | |
DemoMine, DevSolids, RealMine, RealMine 2, CoalMine2, Tutorial1, HVACDemoA, Heat Strategies | < 0.01 % |
Independent check. Fire and Fire2 are the same network with two airway
resistances changed. Predicting Fire2 from Fire plus those two changes
(python bench/predict.py Fire.vsm Fire2.vsm) reproduces 96.9 % of the airflow change
Ventsim computed; the remaining error is 0.03 % of total flow.
Heat, density and fire effects are not re-evaluated after a change. Treat results as an estimate and confirm in Ventsim.
Limits
Read-only on results: simulation, heat and fire modelling stay in Ventsim.
Editing is limited to text fields; geometry edits would leave results stale.
Tested on the 20 example models shipped with Ventsim DESIGN 6 (up to 6,700 airways). Other versions untested.
Development
pip install -e ".[test]"
pytestMIT licence.
Available Tools
11 toolscheck_flow_balanceA
Mass-balance check of simulated airflow at every junction (mass flow expressed as m3/s of standard 1.2 kg/m3 air when the file has it, else volume flow).
Only airways of the simulated stage are used. Junctions are found by matching airway end coordinates. Nodes touched by a single airway (portals, dead ends) are skipped. A large imbalance usually means the model needs to be re-simulated, contains recirculation fans, or has disconnected nodes.
Inputs: path (required), limit, tolerance.
compare_modelsB
Compare two saved versions of a model by Unique No: added/removed airways and those whose airflow (m3/s) or branch pressure (Pa) changed by more than min_change.
Inputs: path_a (required), path_b (required), limit, min_change.
edit_airwaysA
EXPERIMENTAL. Copy the model to 'out_path' (never overwrites the source) after changing text fields. Each edit: {"unique_no": "12", "field": "Notes", "value": "..."}. Allowed fields: Notes, Group, Branch Name. Geometry and results are not touched, so open the copy in Ventsim and re-simulate.
Inputs: path (required), edits (required), out_path (required). Returns: result
export_csvC
Write airways to a CSV file. 'columns' may name any column of the .vsm table; by default the common fields are exported.
Inputs: path (required), out_path (required), columns. Returns: result
fan_summaryC
Totals for all fans: count by model, airflow, total fan power (kW).
Inputs: path (required).
get_airwayB
Every column of one airway (by 'Unique No'), including heat and gas fields.
Inputs: path (required), unique_no (required).
list_airwaysB
List airways. Filter by name/notes text or minimum velocity (m/s); sort by any returned field (e.g. 'Quantity', 'Length', 'Velocity m/s', 'Pressure Branch').
Inputs: path (required), limit, sort_by, descending, +2 more. Returns: result
list_fansC
Airways that carry a fan, with duty airflow, fan pressure and power.
Inputs: path (required). Returns: result
model_summaryC
Summarise a Ventsim .vsm file: title, version, airway/fan counts, total length.
Inputs: path (required).
velocity_checkA
Find airways whose simulated air velocity (m/s) is above max_velocity or, if min_velocity > 0, below it while still carrying air (e.g. dust/gas settling limits). Airways with zero airflow are ignored.
Inputs: path (required), limit, max_velocity, min_velocity.
what_ifA
EXPERIMENTAL what-if airflow estimate. Re-solves the network with the stored fan curves and resistances, scaling resistance of given airways (Unique No -> factor, e.g. {"12": 50} for a new door) and/or switching fans off (list of Unique No), and returns the airflow change per airway relative to an unmodified solve of the same model. 'baseline_fit' tells you how well the solver reproduces the flows saved by Ventsim (mean_rel_error = total absolute flow error / total flow). If 'reliable' is false, or junctions are unbalanced in the saved flows (ducting or leakage links the solver cannot see), do not trust the numbers. Always confirm in Ventsim.
Inputs: path (required), limit, fans_off, resistance_scale.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Each tool targets a clearly distinct granularity or operation: summaries vs. listings vs. single records, diagnostic checks (flow balance, velocity), lifecycle operations (compare, what-if, export, edit). The summary/list split for fans (fan_summary, list_fans) and airways (model_summary, list_airways, get_airway) is well delineated by the descriptions.
All names are snake_case and readable, but the convention is mixed: most are verb-first (list_airways, get_airway, check_flow_balance, compare_models, export_csv, edit_airways), while several are noun-first (model_summary, fan_summary, velocity_check) and one is a phrase (what_if). This goes beyond minor deviation, though the pattern is still interpretable.
11 tools is well within the ideal 3–15 range and each tool maps to a distinct, valuable function for a ventilation-model analysis server: summarisation, listing, diagnostics, comparison, what-if, export and editing. No tool feels redundant or padding.
The analysis surface is fairly comprehensive—summaries, airway/fan inspection, mass-balance and velocity checks, model comparison, what-if solving, CSV export, and limited text-field editing. Gaps remain: no node/junction-level inspection, no editing of geometry or ventilation parameters, and no simulation execution (deferred to Ventsim), but these are reasonable boundaries for a read/analysis companion.
Maintenance
Related MCP Connectors
Open, inspect, filter, edit and convert xlsx and csv files from your AI chat. Processing is local.
Open, inspect, filter, edit and convert xlsx and csv files from your AI chat. Processing is local.
Read, query, edit and render DWG drawings with AI. No AutoCAD required.
Heating, ventilation and energy engineering calculations and diagnostics for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with OpenStudio building energy models through natural language, allowing users to load, inspect, and manipulate OSM files including building geometry, HVAC systems, materials, schedules, and internal loads.11MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to analyze hardware simulation VCD waveforms and GTKWave save files, providing access to signal values, bus definitions, and groupings without loading entire files.5MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to inspect, create, and report on IFC/BIM files locally, and to open models in a viewer with BCF viewpoint support.5228 npm14Apache 2.0
- AlicenseAqualityDmaintenanceEnables AI assistants to load, simulate, inspect, and edit EPANET hydraulic/water-quality models locally via stdio.33MIT