He was replaced at Ferrari by Austrian Gerhard Berger for and he moved to McLaren as number two driver behind double and reigning World Champion Alain Prost. McLaren weren't as competitive in 1987 as they had been in 1984–1986, with Prost only adding three wins to his tally (and beating the record of 27 Grand Prix wins held by Jackie Stewart with his 28th win in Portugal) and failing to successfully defend his Drivers' Championship. Further podium finishes did follow for the Swede and Johansson finished sixth in the Drivers' Championship. Stefan Johansson's position at McLaren was considered by many as just a stop gap signing by team boss Ron Dennis who had failed to lure Ayrton Senna from Lotus due to him being under contract until the end of 1987 and always intended signing the Brazilian for . Johansson famously finished the 1987 German Grand Prix on three wheels having had a puncture on the last lap. He also finished second behind Prost in Belgium and added further podium finishes in Brazil, Spain and Japan. Despite 11 podiums in three seasons, Johansson was still winless and was not wanted by a top team (he had hoped to join Williams in 1988 as a replacement for the departing 1987 World Champion Nelson Piquet but Williams signed Riccardo Patrese instead). He did return to McLaren in a test-driver capacity in 1991, testing the Honda V12 engine at Suzuka in Japan.