Mirza Mohammad Mahdi Karaki (Persian: میرزا محمد مهدی کرکی) was an Iranian cleric and statesman, who served as the grand Vizier of the Safavid king (shah) Abbas II (r. 1642-1666), and the latter's son and successor Suleiman I (r. 1666–1694).
He was the son of Mirza Habibollah Karaki, who served as the sadr-i mamalik (minister of religion) from 1632/3 till his death 1650.
He made an effort to investigate the ongoing specie problem that Mohammad Beg had left behind.
In 1663, he had the qurchi-bashi Murtaza Quli Khan Qajar decapitated and tempted the shah to also execute his successor.
During his tenure, Abbas spent more time in the inner palace and kept the grand vizier ignorant of his private affairs.