We present a novel homebuilt scanning tunneling microscope (STM) with atomic resolution integrated into a cryogen-free superconducting magnet system with a variable temperature insert. The STM head is designed as a nested structure of double piezoelectric tubes (PTs), which are connected coaxially through a sapphire frame whose top has a sample stage. A single shaft made of tantalum, with the STM tip on top, is held firmly by a spring strip inside the internal PT. The external PT drives the shaft to the tip–sample junction based on the SpiderDrive principle, and the internal PT completes the subsequent scanning and imaging work. The STM head is simple, compact, and easy to assemble. The excellent performance of the device was demonstrated by obtaining atomic-resolution images of graphite and low drift rates of 30.2 pm/min and 41.4 pm/min in the X–Y plane and Z direction, respectively, at 300K. In addition, we cooled the sample to 1.6 K and took atomic-resolution images of graphite and NbSe2. Finally, we performed a magnetic field sweep test from 0 T to 9 T at 70 K, obtaining distinct graphite images with atomic resolution under varying magnetic fields. These experiments show our newly developed STM’s high stability, vibration resistance, and immunity to high magnetic fields.