Question: how rare is it to get a mending villager?
Answer: There are 37 enchantments as of Minecraft 1.14 and there is an equal chance for all, so you have under a 2.7% chance of getting a mending book trade from a librarian.