In this paper, a general neutron spectrometer design method based on boron carbide moderators and boron-coated micro-structure neutron detectors is proposed. The formula for calculating the optimal moderator thickness and detector response function according to the neutron energy is obtained, which is verified and modified by the Monte Carlo simulation. The formula is able to realize the rapid design of the neutron spectrometer effectively. This kind of energy spectrometer can realize the decoupling of neutron response functions, so that each detector is most sensitive to neutrons in each discrete energy range 5 and has strong applicability and flexibility. An epithermal neutron spectrometer for boron neutron capture therapy (BNCT) is designed based on the proposed method, the response function of the spectrometer is calculated and the neutron spectrum unfolding is achieved by the Gravel algorithm. The results show that the resolution accuracy of the energy spectrometer to the peak position of monoenergetic neutrons is about 1 %, and the analytical mean square error of the BNCT continuous spectrum is about 0. 76%, which has great technical advantage and feasibility.