A highly efficient recognition unit based on surface-enhanced Raman spectroscopy (SERS) was developed as a promising, fast, and sensitive tool for detection of meningococcal meningitis, which is an extremely serious and often fatal disease of the nervous system (an inflammation of the lining around the brain and spinal cord). The results of this study confirmed that there were specific differences in SERS spectra between cerebrospinal fluid (CSF) samples infected by Neisseria meningitidis and the normal CSF, suggesting a potential role for neopterin in meningococcal meningitis detection and screening applications. To estimate the best performance of neopterin as a marker of bacterial infection, principal component analysis (PCA) was performed in a selected region (640–720 cm−1) where the most prominent SERS peak at 695 cm−1 arising from neopterin was observed. The calculated specificity of 95 % and sensitivity of 98 % clearly indicate the effective diagnostic efficiency for differentiation between infected and control samples. Additionally, the limit of detection (LOD) of neopterin in CSF clinical samples was estimated. The level of neopterin was significantly higher in CSF samples infected by N. meningitidis (48 nmol/L), compared to the normal (control) group (4.3 nmol/L). Additionally, this work presents a new type of SERS-active nanostructure, based on polymer mats, that allows simultaneous filtration, immobilization, and enhancement of the Raman signal, enabling detection of spectra from single bacterial cells of N. meningitidis present in CSF samples. This provides a new possibility for fast and easy detection of bacteria in CSF and other clinical body fluids on a time scale of seconds. This method of detection produces consistent results faster and cheaper than traditional laboratory techniques, demonstrates the powerful potential of SERS for detection of disease, and shows the viability of future development in healthcare applications.Electronic supplementary materialThe online version of this article (doi:10.1007/s00216-016-9535-7) contains supplementary material, which is available to authorized users.