Inverse problem for the mean-field monomer-dimer model with attractive interaction