This functionality is part of the MathHub system, it can be installed manually using the jar provided and installing LaTeXML.
However, the recommended way of using installing is as part of the localmh bundle. See the installation instructions [here](https://github.com/KWARC/localmh_docker).
Then, mmt can be used using the command `lmh mmt`, e.g. the merge command above can be run using: