Boro have confirmed that the 32-year-old former England international has signed for his hometown club for the second time.
The former Newcastle skipper was a free agent after his contract at Stoke expired at the end of last month.