Muonic Atom X-ray Emission spectroscopy (µ-XES) is a novel elemental technique that exploits the high-energy X-rays emitted from the muonic atom cascade process to characterize materials. At the ISIS Neutron and Muon Source, the technique is performed at Port4 of the RIKEN-RAL facility, with a user demand that is increasing every year. To cope with this demand, it is necessary to continue to improve the method, either for the hardware (detectors, acquisition, etc.) or software (data analysis and interpretation). In both cases, Monte Carlo codes play an important role: with a simulation, it is possible to reproduce the experimental setup and provide a reliable quantitative analysis. In this work, we investigate the capabilities of GEANT4 for such applications. From the results, we observed that the generation of X-rays, especially the kα and kβ transition for high Z atoms, are not in agreement with the experimental ones. A solution to this issue, other than an attempt with a small modification of the GEANT4 cascade class, could be provided by a database of transition energy calculated by a Dirac equation software called MuDirac. The software, developed by the UKRI scientific computing department and the ISIS muon group, can compute all the transition energy for a given nuclide. Here, preliminary results of the implementation of the MuDirac database in GEANT4 are reported.