For the first time, a sensitive electrochemical sensor using a glassy carbon electrode modified with CMK-5 Ordered mesoporous carbon was fabricated for simultaneous analysis of morphine and methadone.