Ryan is a 25-year-old reliever who last pitched at Double-A Binghamton in 2019 because the coronavirus pandemic wiped out the 2020 minor league season. He was 3-1 with a 3.05 ERA and 40 strikeouts in 44 1/3 innings with the Rumble Ponies.
Ryan was left unprotected for this month's Rule 5 draft and was not selected. New York announced the completion of the deal Friday.
Frazier batted .224 with two home runs in 14 games after being acquired by the Mets. He became a free agent after the season.