Mesoporous carbon nanorods (MCNRs) were prepared from honey as the carbon source and by using crab (Brachyuran) shells as the hard template. The unique nanostructure of the MCNRs with their uniform mesoporous size, abundant defective sites and numerous oxygen-functional groups was characterized by nitrogen adsorption-desorption isotherms, X-ray diffraction, Raman spectroscopy, X-ray photoelectron spectroscopy and Fourier transform infrared spectroscopy. Cyclic voltammograms of a glassy carbon electrode (GCE) modified with MCNRs revel a higher peak current density and lower peak potential (-0.03V vs. Ag/AgCl) for ascorbic acid (AA) electrooxidation compared to a conventional GCE and a carbon nanotube-modified GCE. Figures of merit for this sensor include (a) a wide linear range (10-2770μM), (b) high electrochemical sensitivity (216.91μAmM-1cm-2) and (c) a low detection limit (2.3μM). These compare favorably to the respective data for a CNT-modified GCE (50-2150μM, 5.20μAmM-1cm-2 and 26.8μM) and a plain GCE (100-2000μM, 0.58μAmM-1cm-2 and 54.6μM). The modified GCE was successfully applied to the determination of AA in (spiked) real samples including an injection, soft drinks and fresh lemon juice. Therefore, the new sensor can be considered as an affordable tool for electrochemical sensing of AA in real samples. Graphical abstract Mesoporous carbon nanorods (MCNRs) were prepared by using honey as the carbon source and crab shells as the hard template. The MCNRs modified a glassy carbon electrode (MCNRs/GCE) was used for the ascorbic acid (AA) detection by amperometry.