Recently, microcantilever-based technology has emerged as a viable sensing platform due to its many advantages such as small size, high sensitivity, and low cost. However, microcantilevers lack the inherent ability to selectively identify hazardous chemicals (e.g., explosives, chemical warfare agents). The key to overcoming this challenge is to functionalize the top surface of the microcantilever with a receptor material (e.g., a polymer coating) so that selective binding between the cantilever and analyte of interest takes place. Molecularly imprinted polymers (MIPs) can be utilized as artificial recognition elements for target chemical analytes of interest. Molecular imprinting involves arranging polymerizable functional monomers around a template molecule followed by polymerization and template removal. The selectivity for the target analyte is based on the spatial orientation of the binding site and covalent or noncovalent interactions between the functional monomer and the analyte. In this work, thin films of sol-gel-derived xerogels molecularly imprinted for TNT and dimethyl methylphosphonate (DMMP), a chemical warfare agent stimulant, have demonstrated selectivity and stability in combination with a fixed-fixed beam microelectromechanical systems (MEMS)-based gas sensor. The sensor was characterized by parametric bifurcation noise-based tracking.