Put a large pan of water on to boil and cook the spaghetti according to packet instructions.
In the meantime, chop the onion and add to a saute pan with the olive oil. Cook for 2 minutes, then tear up the slices of parma ham into small strips and add to the pan.
When the parma ham has started to crisp, cut each fig into six segments and add to the pan. Add the thyme and drizzle over the honey.
When the spaghetti is cooked, drain all of the cooking water apart from 100ml. Put the spaghetti back in the pan it was cooked in and stir in the mascarpone. It will melt in the heat from the spaghetti.
Tip the parma ham and fig mix into the spaghetti pan and stir well. Season with salt and pepper.
To serve, top each bowl of spaghetti with a crumbling of blue cheese.