Car surges going uphill, causing check engine light to come on. Is it the MAF? on 1999 Pontiac Grand Prix

Should the MAF be replaced? How much does it cost?

Asked by for the 1999 Pontiac Grand Prix
1 answer
possible MAF. should also consider exhaust system. run diagnostic.