Stalling? Weird issues

This morning, starting my car and I noticed the rpm was gittery like almost going to stall. Again, shut off and starts back up like normal.
Is it just the battery getting weak?
How much do you all think a new battery will cost? 2012 ML-350.
Is it something other shops can do or is it only they dealership?


