Boston Red Sox general manager Ben Cherington announced the signing of right-handed relief pitcher Edward Mujica to a two-year contract Saturday.

The deal is worth $9.5 million over the two years, a baseball source told ESPNBoston.com on Thursday, when the agreement was first reported.

The 29-year-old Mujica was the closer for a time with the St. Louis Cardinals this past season but lost the job in September and was not a factor in the postseason, making just two appearances.