We have developed a microwave spectrometer for a measurement of the 2S1/2-2P1/2\\documentclass[12pt]{minimal} \\usepackage{amsmath} \\usepackage{wasysym} \\usepackage{amsfonts} \\usepackage{amssymb} \\usepackage{amsbsy} \\usepackage{mathrsfs} \\usepackage{upgreek} \\setlength{\\oddsidemargin}{-69pt} \\begin{document}$$\\varvec{2S_{1/2}-2P_{1/2}}$$\\end{document} Lamb shift of antihydrogen atoms towards the determination of the antiproton charge radius. The spectrometer consists of two consecutive apparatuses, of which the first apparatus, Hyperfine Selector (HFS), filters out 2S1/2(F=1)\\documentclass[12pt]{minimal} \\usepackage{amsmath} \\usepackage{wasysym} \\usepackage{amsfonts} \\usepackage{amssymb} \\usepackage{amsbsy} \\usepackage{mathrsfs} \\usepackage{upgreek} \\setlength{\\oddsidemargin}{-69pt} \\begin{document}$$\\varvec{2S_{1/2}(F=1)}$$\\end{document} hyperfine states and pre-selects the 2S1/2(F=0)\\documentclass[12pt]{minimal} \\usepackage{amsmath} \\usepackage{wasysym} \\usepackage{amsfonts} \\usepackage{amssymb} \\usepackage{amsbsy} \\usepackage{mathrsfs} \\usepackage{upgreek} \\setlength{\\oddsidemargin}{-69pt} \\begin{document}$$\\varvec{2S_{1/2}(F=0)}$$\\end{document} state, and the second apparatus, MicroWave Scanner (MWS), sweeps the frequency around the target transition to obtain the spectrum. We optimized the geometry of the apparatuses by evaluating the S-parameter that represents the ratio of the reflected microwave signal over the input, utilizing microwave simulations based on the finite element method. The HFS was designed to obtain a resonant property at 1.1 GHz for an efficient removal of the 2S1/2(F=1)\\documentclass[12pt]{minimal} \\usepackage{amsmath} \\usepackage{wasysym} \\usepackage{amsfonts} \\usepackage{amssymb} \\usepackage{amsbsy} \\usepackage{mathrsfs} \\usepackage{upgreek} \\setlength{\\oddsidemargin}{-69pt} \\begin{document}$$\\varvec{2S_{1/2}(F=1)}$$\\end{document} hyperfine states, and the MWS was designed to realize weak frequency-dependency in the signal reflection. Also, the spatial distributions of microwave electric field were simulated. We report the design of the spectrometer and discuss an expected precision of the first measurement.