WASHINGTON -- The Nationals have agreed to terms with right-hander Todd Coffey on a one-year contract, the team announced Monday.

Coffey, 30, is considered a workhorse out of the bullpen. He will compete with Drew Storen, Henry Rodriguez, Sean Burnett and Tyler Clippard for the closer's role. If Coffey doesn't win the job, he is expected to be one of the setup men.

Coffey played the last two-plus years with the Brewers, appearing in 156 games. His best season was in 2009, posting a 2.90 ERA with two saves.

Besides playing for the Brewers, Coffey also played with the Reds from 2005-08. During his career, Coffey is 19-17 with a 4.15 ERA in 369 games. Coffey is known to run from the bullpen to the mound when it his turn to pitch.