Rapid and cost-effective analysis of histamine, in food, environmental, and diagnostics research has been of interest recently. However, for certain applications, the already-existing biological receptor-based sensing methods have usage limits in terms of stability and costs. As a result, robust and cost-effective imprinted polymeric receptors can be the best alternative. In the present work, molecularly-imprinted polymers (MIPs) for histamine were synthesized using methacrylic acid in chloroform and acetonitrile as two different porogens. The binding affinity of the MIPs with histamine was evaluated in aqueous media. MIPs synthesized in chloroform displayed better imprinting properties for histamine. We demonstrate here histamine MIPs incorporated into a carbon paste (CP) electrode as a MIP-CP electrode sensor platforms for detection of histamine. This simple sensor format allows accurate determination of histamine in the sub-nanomolar range using an electrochemical method. The sensor exhibited two distinct linear response ranges of 1 x 10(-10)-7 x 10(-9) M and 7 x 10(-9)-4 x 10(-7) M. The detection limit of the sensor was calculated equal to 7.4 x 10(-11) M. The specificity of the proposed electrode for histamine is demonstrated by using the analogous molecules and other neurotransmitters such as serotonin, dopamine, etc. The MIP sensor was investigated with success on spiked serum samples. The easy preparation, simple procedure, and low production cost make the MIP sensor attractive for selective and sensitive detection of analytes, even in less-equipped laboratories with minimal training.