Preheat the oven to 350 degrees F. Line a 12-cup muffin tin with paper liners and set aside.
In a medium bowl, whisk together the flour, baking powder, baking soda, salt, cinnamon and nutmeg. Set aside.
In a large bowl, whisk together the butter and sugars until combined. Add the eggs one at a time and mix until combined. Whisk in the pumpkin puree and espresso or coffee until combined.
Add the dry ingredients to the wet ingredients and mix until just combined. Divide the batter among the prepared muffin tins, filling each one about 3/4 full.
Bake for 18-20 minutes or until a toothpick inserted into the center comes out clean. Allow to cool in the pan for 5 minutes before transferring to a wire rack to cool completely.