The Pirates and star center fielder Andrew McCutchen agreed to terms on a six-year contract worth $51.5 million with a club option for 2018 worth $14.75 million, according to a source.

The contract will buy out McCutchen's remaining arbitration seasons and at least two years of free agency.

McCutchen, 25, is one of the best center fielders in the National League. He earned a spot on the NL All-Star team in 2011 and hit .259 with 23 home runs and 89 RBIs last season.

McCutchen joins Jose Tabata as the only Pirates player with a long-term contract. Tabata signed a six-year, $15 million contract with three club options in August.