Many-body potential energy functions (MB-PEFs), which integrate data-driven representations of many-body short-range quantum mechanical interactions with physics-based representations of many-body polarization and long-range interactions, have recently been shown to provide high accuracy in the description of molecular interactions, from the gas to the condensed phase. Here, we present MB-Fit, a software infrastructure for the automated development of MB-PEFs for generic molecules within the TTM-nrg ("Thole-type model energy") and MB-nrg ("many-body energy") theoretical frameworks. Besides providing all the necessary computational tools for generating TTM-nrg and MB-nrg PEFs, MB-Fit provides a seamless interface with the MBX software, a many-body energy/force calculator for computer simulations. Given the demonstrated accuracy of the MB-PEFs, we believe that MB-Fit will enable routine, predictive computer simulations of generic (small) molecules in the gas, liquid, and solid phases, including, but not limited to, the modeling of isomeric equilibria in molecular clusters, solvation processes, molecular crystals, and phase diagrams.