MANKATO -- Ryan Cook will return to the Vikings.

The team agreed to terms with the versatile offensive lineman today. Cook had been on the free-agent market after spending his first four NFL seasons with the Vikings.

A second-round draft choice of the Vikings in 2006, Cook was a center at New Mexico and has played tackle, guard and center in the NFL. Cook started all 16 games in 2007 and started 14 regular-season games at right tackle in 2008. Last season, he started started six games, including the final six of the season in place of the injured Anthony Herrera at right guard.

Cook took over for John Sullivan at center after he was injured as well.

Cook's signing comes a day after the Vikings released veteran left tackle Bryant McKinnie and provides some very depth on the line.

Cook becomes the fourth free agent to return to the Vikings, joining kicker Ryan Longwell, defensive tackle Fred Evans and safety Eric Frampton.