This first thing to note is that the most important instruction is to read to paperwork and owners manuals that come with your shoes. There will be a slight variation between different materials, so check before you clean!
In general though, a bucket of warm soapy water, an old cloth or rag and old toothbrush should be sufficient to clean your MTB shoes.