Trans Rights Indicator Project (TRIP) 

TRIP provides insight into the legal situation transgender people faced in 174 countries from 2000 to 2021. The dataset currently includes 14 indicators concerning criminalization, legal gender recognition, and anti-discrimination protections.  Available for download here.