The ModLoop protocol is part of Modeller, which can be downloaded from our website and is free for academic use. An example Modeller script for loop refinement can be found in the Modeller manual. ModLoop simply builds 300 models with Modeller, and then returns the single model with the lowest molpdf score.
The source code for this web service is also available at GitHub.