Sauté the vegetables: Melt 1 tablespoon of butter in a skillet over medium heat. Add the onion, bell pepper, and celery and cook for 4 to 5 minutes, until softened.
Add the seasonings: Stir in the garlic, thyme, red pepper flakes, and cayenne. Cook for 1 minute more, until fragrant.
Mix the stuffing: Remove from the heat and let cool slightly. Gently fold in the crabmeat, parsley, breadcrumbs, and beaten egg. Season with salt and black pepper. Do not overmix.
Fill the shells: Spoon the mixture into cleaned crab shells or a small baking dish. Top with extra breadcrumbs and dot with the remaining butter.
Bake and serve: Bake at 400°F for 15 to 20 minutes, until golden brown on top. Let rest for 5 minutes, then serve hot with lemon wedges.