The MasSpec Pen is a mass spectrometry (MS) based cancer detection and diagnosis system that can be used for ex vivo and in vivo tissue sample analysis. The system collects biological molecules from a tissue sample surface via a solid-liquid extraction mechanism and transports the molecules to a mass spectrometer for analysis. The composition of the extracted molecules can then be used to predict if the tissue sample analyzed contains cancerous cells using machine learning algorithms and statistical models. In early-stage clinical research, the MasSpec Pen system was able to distinguish various cancer tissues, including thyroid, breast, lung, and ovarian tumor tissues, from their normal counterparts with an overall accuracy of 96.3%. A follow-up study in illustrating the use of the device for detection of serous ovarian carcinoma in ex vivo tissue biopsies allowed for the discrimination of normal and cancerous ovarian samples with a clinical sensitivity and specificity of 94.0% and 94.4%, respectively.