Devin McCourty will be spending much of the remainder of the offseason rehabbing, after a league source said Friday that the Patriots defensive back has undergone minor right shoulder surgery. He is expected to be ready for training camp.

New England’s first-round pick in 2010, McCourty played all 18 games last season, starting eight games at cornerback and 10 at safety, recording 60 tackles and five interceptions.

McCourty was moved to safety for the Week 7 game against the Jets and remained there, returning to cornerback for the final two regular-season games after Aqib Talib suffered a hip injury.

McCourty also served as the Patriots’ primary kickoff returner.

New England intends on keeping McCourty at safety this season.

Mathieu to visit

Former Louisiana State cornerback Tyrann Mathieu will make a pre-draft visit to the Patriots, reported.