A mass spectrometer and computer system was developed for conducting a fundamental study on gas monitoring in CELSS. Respiration and metabolism of the hamster and photosynthesis of the Spirulina were measured in a combination system consisting of a hamster chamber and a Spirulina cultivator. They are connected through a membrane gas exchanger. Some technical problems were examined. In the mass spectrometric gas monitoring, a simultaneous multi-sample measurement was developed by employing a rotating exchange valve. Long term precise measurement was obtained by employing an automatic calibration system. The membrane gas sampling probe proved to be useful for long term measurement. The cultivation rate of the Spirulina was effectively changed by controlling CO 2 and light supply. The experimental results are helpful for improving the hamster-spirulina system.