Pluck the leaves of the parsley, wash and dry. Puree together with the remaining ingredients, add olive oil depending on the desired consistency.
Cook the pasta until al dente according to the instructions on the packet, then drain, but not drain completely, leave a little of the pasta water with the spaghetti in the saucepan and stir in the pesto.