EngScript Engineering MCP
com.engscript/mcp
Engineering calculation MCP server for oil and gas engineering applications.
- BALANCE — General mass/energy balance solver using GEKKO
- CARBON — Calculate thermodynamic properties of hydrocarbon mixture. Supports hydrocarbons and non-hydrocarbon chemicals (PR EOS flash calculation).
- COMPPOLYEFF — Calculate polytropic efficiency of compressor
- CTWRCAPA — Cooling tower capacity evaluation
- CTWRCAPADSNTST — Cooling tower capacity evaluation: design vs test
- CTWREVAPOR — Cooling tower evaporation rate: mass removal rate (MR) and heat removal rate (QR)
- CTWRLG — Cooling tower L/G ratio calculation
- CTWRNTU — Cooling tower NTU and characteristic C value calculation
- CVGAS — Calculate gas control valve Cv and Kv from flow conditions
- CVLIQ — Calculate liquid control valve Cv and Kv from flow conditions
- CVSTEAM — Calculate steam control valve Cv and Kv from flow conditions
- DESUPERHEATER — Calculate boiler feed water flow and total flow from pressure and temperature reduction through desuperheater. Also returns the inlet/outlet/BFW specific enthalpies (h_in, h_out, h_bfw) used in the ma
- DVR — Data Validation and Reconciliation
- ECONOMIC — Economic analysis: NPV, IRR, Simple Payback, Profitability Index, EAC
- EMISSIONFACTOR — Calculate CO2 emission conversion factor from gas composition
- FLUEGAS — Calculate enthalpy of flue gas from composition
- FORMULA — Generic formula calculator with unit conversion and IF-THEN-ELSE
- FUELGAS — Calculate MW, LHV and HHV of fuel gas from composition
- GN2DEPRESS — Calculate depressurization gas volume and hold time for gaseous nitrogen storage vessel
- HEXRF — Heat exchanger fouling resistance back-calculation from shell/tube-side operating conditions using Kern + Dittus-Boelter.
- HEXRF_DG — Heat exchanger fouling resistance back-calculation from shell/tube-side operating conditions using Delaware + Gnielinski.
- HEXRF_KD — Heat exchanger fouling resistance back-calculation from shell/tube-side operating conditions using Kern + Dittus-Boelter.
- HPADEPRESS — Calculate depressurization gas volume and hold time for high pressure air storage vessel
- HTRINOUTEFF — Calculate fired heater heat duty and efficiency from inlet/outlet conditions and composition
- HTRLOSSEFF — Calculate fired heater loss efficiency from ambient temperature, stack gas temperature and excess oxygen
- LMTD — Calculate LMTD of heat exchanger
- LN2DEPRESS — Calculate depressurization gas volumn abd hold time and saturation temperature for liquid nitrogen storage vessel
- MIXTURE — Primary thermodynamic property calculator. Use this tool first for all mixture property calculations. Supports hydrocarbons and non-hydrocarbon chemicals (PR EOS flash calculation).
- MtoV — Convert mass flow rate to volumetric flow rate at standard condition
- ORIFICEGAS — Gas orifice sizing / differential pressure / flow rate calculation based on ISO 5167 orifice. Exactly ONE of [M, dP, D2] must be set to '?' — that variable will be calculated.
- ORIFICELIQ — Liquid orifice sizing / differential pressure / flow rate calculation based on ISO 5167 orifice. Exactly ONE of [M, dP, D2] must be set to '?' — that variable will be calculated.
- PIPEAIR — Calculate compressed air pipe sizing: pipe diameter, velocity, pressure drop
- PIPEFF — Calculate Darcy friction factor based on Reynolds number and pipe roughness
- PIPEFLOWGAS — Calculate isothermal gas pipe flow: density, volumetric flow rate, mass flow rate from pressure drop
- PIPEFLOWLIQ — Calculate liquid pipe flow: volumetric flow rate and mass flow rate from pressure drop
- PIPEINSUL — Calculate optimal pipe insulation thickness to limit outer surface temperature (burn protection) and minimise heat loss. Uses cylindrical heat conduction + external convection model, solved via scipy.
- PIPENITROGEN — Calculate nitrogen pipe sizing: pipe diameter, velocity, pressure drop
- PIPESTEAM — Calculate steam pipe sizing: pipe diameter, velocity, pressure drop
- PIPEWATER — Calculate water pipe sizing: pipe diameter, velocity, pressure drop
- PSVGAS — Calculate required PSV (pressure safety valve) relief area for gas/vapor service per API 520
- PSVLIQ — Calculate required PSV (pressure safety valve) relief area for liquid service per API 520
- PSVSTEAM — Calculate required PSV (pressure safety valve) relief area for steam service per API 520
- PSYCHROMETRIC — Psychrometric properties of moist air
- PTV — Calculate gas molar volume using equation of state
- PUMPBHP — Calculate pump brake horsepower
- Pmean — Calculate mean pressure between inlet and outlet
- REFRIGERANT — Calculate refrigerant thermodynamic properties using CoolProp. Provide Fluid name and any 2 state variables from: T, P, rho, H, S, U. Returns all remaining properties: T, P, rho, H, S, U, Cp, Cv, visc
- SOLVE — Solve nonlinear equations with unknown variables using fsolve
- STEAM — Calculate thermodynamic and transport properties of steam based on IAPWS
- STEAMFLASH — Calculate flash steam flow from pressure reduction