Preheat oven to 350°F and line baking sheets with parchment paper.
In a large bowl, beat softened butter, peanut butter, granulated sugar, and brown sugar until creamy.
Add the egg and vanilla. Beat in the egg and vanilla until completely combined.
Whisk together flour, baking soda, and salt in a medium bowl.
Gradually mix the dry ingredients into the wet ingredients until just combined.
Fold in the M&Ms, reserving some for the tops.
Scoop dough into balls and place on prepared baking sheets.
Press additional M&Ms onto the tops of the cookies.
Bake for 10–12 minutes, until the edges are lightly golden and the centers remain slightly soft.
Cool on the baking sheet for several minutes before transferring to a wire rack.