The Giants acquired third baseman Casey McGehee on Friday night from the Marlins for a pair of right-handed minor league pitchers, finding their replacement for Pablo Sandoval.

San Francisco announced the trade late Friday. The World Series champions are sending Kendry Flores and Luis Castillo to the Marlins.