Marco Simoncelli claimed his maiden MotoGP pole position as he edged out the hitherto dominant Casey Stoner.