You may find an ATM machine in Namche Bazaar if you’re lucky. However, it is hard to find working ATMs in the Everest Base Camp Trek routes, so it is better to carry cash with you. You can find many ATMs in the city so you should get some cash out while you’re in the city.