The library cleaning pipeline is implemented in the increasingly widely used open-source Python package matchms . The matchms package provides functionality to import, process, clean, and compare mass spectrometry data. The filtering in matchms is structured around individual functions executing a single filter on a single spectrum at a time. In the current work, these filters have been extended to harmonize metadata fields, derive missing data from other metadata and repair or remove incorrect annotations.