If the US were more interested in affairs to its east, I could see the country being a de facto protectorate. The US and Morocco had good relations IIRC.
The US would basically just be acting to prevent Morocco's colonization by others, but wouldn't actually have a formal protectorate over Morocco.