The invention discloses a miniature mass spectrometer, in particular comprising an ionization source for converting sample molecules into gas phase ions in a region substantially at atmospheric pressure, a capturing device for capturing and storing ions, and a discontinuous atmospheric pressure interface device for transferring ions from the substantially atmospheric pressure region to at least one further region of reduced pressure. The atmospheric pressure interface device comprises a valve for controlling the ions to enter or stop entering the capturing device, and by opening the valve a plurality of times, ions are conveyed into the capturing device in a discontinuous mode, and the ions are captured and enriched. The miniature mass spectrometer further comprises a mass analyzer, a detector, a circuit, a vacuum cavity, a vacuum pump, a barometer and a computer. The invention provides a miniature mass spectrometer capable of improving sensitivity, ion detection limit and ion strengthstability.