A novel room-temperature compact ion source has been developed for the efficient production of atomic ions by means of an electron beam with energy Ee and current density je controllable within wide ranges (100eV ≲Ee≲60keV, 10A/cm2≲je≲20kA/cm2). In the first experiments, the X-ray emission of Ir64+ ions has been measured. Based on a combination of two different techniques, the device can operate both as conventional Electron Beam Ion Source/Trap and novel Main Magnetic Focus Ion Source. The tunable electron-optical system allows for realizing laminar and turbulent electron flows in a single experimental setup. The device is intended primarily for fundamental and applied research at standard university laboratories.