McAlister is among the participants in the Bill Walsh Minority Coaching Fellowship program, working with the Bills' secondary.
McAlister is working under Donnie Henderson, his former secondary coach with the Ravens.
McAlister played in the NFL for 11 seasons and was named to three Pro Bowls.
A 1999 first-round draft pick from Arizona, McAlister won Super Bowl XXXV as a starting cornerback for the Ravens.
He finished his career with 339 career tackles, 26 interceptions and five touchdowns.
Drafted 10th overall in 1999, McAlister was cut by the Ravens following the 2008 season. The California native played briefly for the New Orleans Saints before a knee injury prompted him to retire following the 2009 season.