M. affinis prefers an aquarium with fast moving water, sandy substrate, and plenty of hiding areas (old broken clay pipes is a preferred hiding habitat).
The description of M. affinis' habitat preferences emphasizes the importance of flowing water, sand, and secure hiding spots, particularly those made from old broken clay pipes.