Following the play, the medical staff was looking at his right knee after he walked off the field on his own.
The Steelers, who are passing with ease against the 49ers defense, scored on the next play to take a 22-3 lead.
McDonald is questionable to return to the game.
More San Francisco 49ers News
Brandon Aiyuk's agent denies report of Steelers 'aggressively pursuing' the 49ers receiver Anthony "Spice" Adams to announce 49ers' draft picks in 2nd and 3rd rounds George Kittle's message to Brandon Aiyuk amid contract talks with 49ers: "Be patient" Report: Several teams inquiring about 49ers' Deebo Samuel and Brandon Aiyuk