In this study, we developed a microwave chemical cell for total electron yield soft x-ray absorption spectroscopy (XAS) using synchrotron radiation under microwave irradiation. In addition, in situ XAS measurements of ammonia borane were performed using the device developed. The device comprises a post-wall waveguide housing a sample holder formed within it. Electrons emitted from the sample during soft x-ray irradiation pass through the metal plates of the waveguide and are measured using a picoammeter. Integration of the microwave irradiation structure into a synchrotron radiation beamline, which is a challenge in soft x-ray analysis requiring measurements in a high-vacuum atmosphere, was achieved by miniaturizing the device using 24.125 GHz ISM band microwaves, instead of the typical 2.45 GHz microwaves. Performance of the device was thoroughly assessed through temperature distribution simulation, temperature measurement of water, and evaluation of frequency characteristics. When the sample holder was filled with water and irradiated with 3 W microwaves, the temperature increased to 97 °C, which is close to the boiling point. The in situ XAS measurements performed using this device with ammonia borane/graphite (2:1) powder at the B-K edge during microwave irradiation showed that peaks associated with hydrogen desorption intensified with prolonged microwave exposure. This result indicates that microwave heating in a vacuum and soft x-ray analysis during microwave heating were achieved. The developed microwave chemical cell emerges as a powerful tool, facilitating advancements in our understanding of elementary chemical processes and elucidating microwave-specific effects such as local heating during microwave irradiation.