Capturing formaldehydes (HCHO) from indoor air with porous adsorbents still faces challenges due to their low capacity and poor selectivity. Metal-organic frameworks (MOFs) with tunable pore properties were regarded as promising adsorbents for HCHO removal. However, the water presence in humid air heavily influences the formaldehyde capture performance due to the competition adsorption. To find suitable MOFs for formaldehyde capture and explore the relationship between MOFs structure and performance both in dry air and humid air, we performed grand canonical Monte Carlo (GCMC) molecular simulations to obtain working capacity and selectivity that evaluated the HCHO capture performance of MOFs without humidity. The results reveal that small pore size (~5 Å) and moderate heat of adsorption (40-50 kJ/mol) are favored for HCHO capture without water. It was found that the structure with a 3D cage instead of a 2D channel benefits the HCHO adsorption. Atoms in these high-performing MOFs should possess relatively small charges, and large Lennard-jones parameters were also preferred. Furthermore, it was indicated that Henry's constant (KH) can reflect the HCHO adsorption performance without humidity, in which the optimal range is 10-2-101. Hence, Henry's constant selectivity of HCHO over water (SKH HCHO/H2O) and HCHO over mixture components (H2O, N2, and O2) was obtained to screen MOFs at an 80% humidity condition. It was suggested that SKH for the mixture component overestimates the influence of N2 and O2, in which the top structures absorb a quantity of water in GCMC simulation, while SKH HCHO/H2O can efficiently find high-performing MOFs for HCHO capture at humidity in low adsorption pressure. The ECATAT found in this work has 0.64 mol/kg working capacity, and barely adsorbs water during 0-1 bar, which is the promising candidate MOF for HCHO capture.