Ion sources for the medical facilities should have the following characteristics of easy maintenance, low electric power, good stability, and long operation time without trouble (1 year or longer). For this, a 10 GHz compact electron cyclotron resonance ion source (ECRIS) with all permanent magnets was developed. The beam intensity and stability for C4+ were 280 e μA and better than 6% during 20 h with no adjustment of any source parameters. These results were acceptable for the medical requirements. Recently, many plans were proposed to construct the next generation cancer treatment facility. For such a facility we have designed an all permanent magnet ECRIS, in which a high magnetic field is chosen for increasing the beam intensity. The maximum mirror magnetic fields on the beam axis are 0.59 T at the extraction side and 0.87 T at the gas injection side, while the minimum B strength is 0.25 T. The source has a diameter of 32 cm and a length of 29.5 cm. Details of the design of this source and its background are described in this article. © 2004 American Institute of Physics.