The Haith Trust maintains a catalogue of online historical copies of the U.S. Navy Registers for Officers both active duty and reserve
From Cornell University's compilation of the 1896-1900 Register of the Navy of the United States on page 446, corresponding to page 110 of the January 1, 1898 Register.
On page 131 of the same register we find the squadron assignment of all the U.S. Navy First Rates including Massachusetts:
and is likewise found in the preceding year's (to January 1, 1897) register,
commanded by Captain Frederick Rogers, as part of the North Atlantic Squadron.