Pedro Alvarez and Russell Martin hit two-run homers off Brandon Workman, who started in place of injured Jake Peavy, and the Pittsburgh Pirates beat the Boston Red Sox 7-6 Monday.