Heat the coconut oil in a large pot over medium heat. Add the diced onion and cook until it softens, about 5 minutes.
Stir in the garlic and ginger. Cook for 1 minute until fragrant.
Add the curry powder and stir for 30 seconds to toast the spices.
Pour in the pumpkin puree, coconut milk, and vegetable broth. Stir well to combine.
Bring the mixture to a gentle simmer and cook for 10 minutes, stirring occasionally.
Add the spinach and stir until it wilts, about 2 minutes.
Season with salt and black pepper to taste. Serve hot with cilantro on top if using.