Preheat the oven to 325 degrees. Line a cookie sheet with parchment paper.
Place the coconut flakes on the cookie sheet. Bake at 325 degrees for about 6 minutes or until golden brown. Stir once or twice so that it gets evenly toasted. Set aside to cool.
Place the pitted dates, pumpkin seeds, toasted coconut, unsweetened cocoa powder, and vanilla extract in a food processor. Process until the ingredients come together into a ball. You may need to stop the processor and use a spoon to evenly distribute the ingredients.
Place a piece of parchment paper or plastic wrap on a cookie sheet. Place the mixture on top, and use your hands to shape and flatten into a rectangle.
Wrap up the rectangle and refrigerate for two hours. Slice into 10 bars. Bars can be stored in an airtight container in the refrigerator.