Preheat your oven to 350°F (175°C) and line a muffin tin with cupcake liners.
In a large mixing bowl, combine the lemon cake mix, water, oil, and eggs. Beat until smooth.
Gently fold in the raspberry preserves. Add fresh raspberries if using.
Divide the batter evenly among the cupcake liners and bake for 18–22 minutes or until a toothpick inserted comes out clean.
Allow the cupcakes to cool completely before frosting.
To make the frosting, beat together cream cheese and butter until smooth and creamy.
Add powdered sugar, lemon juice, lemon zest, and vanilla extract. Beat until fluffy.
Frost the cooled cupcakes with the lemon cream cheese frosting. Garnish with a raspberry or lemon zest if desired.