Niasse, 32, joined Everton in 2016 for £13.5 million and made 65 appearances at the highest level during his time at the Toffees and on loan for Hull City and Cardiff.
A former Senegalese international, he boasts a wealth of experience from his time in his native country, Norway, Turkey, Russia and England.
He was most recently at League One side Morecambe on a short-term contract where he netted once in nine appearances.
Niasse will go straight into contention for the Silkmen as they prepare for their next fixture at home against Guiseley on Saturday in the Northern Premier League.
Photo credit: Getty Images
Keep up-to-date with our exclusive email newsletters.
Subscribe