Based on the discrete angle method, a Monte Carlo multi-group cross section generation program MGXSMC was developed. This program can read the cross section data from an input file or read the cross section from a library in a specified format to generate the multi-group cross section for MCNP or RMC. The corresponding index file list can be automatically generated. The two-dimensional two-group IAEA pressurized water reactor (PWR) benchmark and lead-based fast reactor (RBEC-M) benchmark were used to verify the cross section library generated by the MGXSMC program. The calculation results show that the difference between the calculated result of the P5 order approximate multigroup section and the continuous point cross section is 24 pcm (1pcm = 10-5), and the difference of the keff result calculated by the P0 order approximate multigroup section and the continuous point section is large. This shows that the method and the program developed for the Monte Carlo Group Section Library are correct. At the same time, the neutron anisotropic scattering has a large impact on the calculation results of the lead-based fast reactor. Therefore, when the Monte Carlo Group Section library is produced, the neutron scattering angle data should be added.