ESPN NFL analyst Eric Mangini is joining the San Francisco 49ers as an offensive consultant.