Toe cramps could be caused by several things but usually it's nothing serious and just requires massaging of the toes or waiting it out and applying some heat to the toes to relieve the cramping.
Some things that could cause toes to cramp up mineral deficiencies, dehydration etc.
The mineral deficiencies that could cause toe cramps are potassium, calcium, and magnesium deficiencies.
If the toe cramps come too often then you should speak with a doctor to see if it's caused by some mineral deficiency that could be corrected.