Preheat the oven to 325°F (163°C). Line a large baking sheet with parchment paper.
In a large bowl, mix together oats, pecans, sunflower seeds, pumpkin pie spice, and salt.
In a separate bowl, whisk together pumpkin puree, maple syrup, melted coconut oil, and vanilla extract.
Pour the wet ingredients over the dry and stir until fully coated.
Spread the granola mixture evenly on the prepared baking sheet.
Bake for 30–35 minutes, stirring halfway through, until golden and crisp.
Let the granola cool completely before stirring in raisins if using. Store in an airtight container.