We present an implementation of the CMS-EXO-17-015 analysis in the MadAnalysis 5 framework. The analysis targets a search for dark matter in a channel in which it originates from the production and decay of a pair of scalar leptoquarks. This search considers a luminosity ℒ=77.4fb−1 of CMS data collected in 2016 and 2017, in proton-proton collisions at a center-of-mass energy of 13 TeV. The final state signature is comprised of one isolated highly-energetic muon, one jet with a large transverse momentum and a significant amount of missing transverse energy. We validate our implementation in MadAnalysis 5 for a specific leptoquark/dark matter benchmark scenario. In particular, we compare predictions obtained with MadAnalysis 5 with the official CMS results for various kinematical distributions relevant for the CMS-EXO-17-015 analysis, as well as detailed cut-flow tables. We have found an excellent agreement.