You can install mpatch locally by cloning the git repo, installing Rust, and calling cargo install --path . in the root of the repository. Afterwards, you can call mpatch --help to get usage instructions.
You can use mpatch as a library in your own Rust projects. You can read the documentation by calling cargo doc --open in the root directory of the repository.