Mercury is too small and hot for its gravity to keep any thick atmosphere for a long time. It does have a thin exosphere that contains hydrogen, helium, oxygen, sodium, calcium, potassium. This exosphere is lost and replenished from lots of sources. Hydrogen and helium may come from the solar wind. Radioactive decay of elements inside the crust of Mercury is another source of helium, and also sodium and potassium.