Heat the oven to 400°F (200°C). Grease all 12 wells of a standard metal muffin tin, including the rims. Cut very long strands once or twice with kitchen shears.
Whisk eggs with Italian seasoning and pepper. Toss with the spaghetti, ¾ cup mozzarella and ¼ cup Parmesan. If the pasta is plain, add marinara a spoonful at a time until lightly coated. If it is already sauced, skip the extra sauce.
Use tongs to twist small nests into the muffin wells. Press each nest lightly to help it hold together. Top with the remaining mozzarella and Parmesan.
Bake 22–27 minutes, until the edges are browned and the centers reach 165°F (74°C). Cool 5–8 minutes in the pan, then run a thin spatula around the edges and lift the cups out. Serve warm with marinara and torn basil.