Mass. Gen. Laws ch. 262, § 31
The court shall determine the compensation of private persons who perform service required by law, or in the execution of legal process, if no other provision is made therefor.