Identifying material parameters affecting properties of ferromagnets is key to optimized materials that are better suited for spintronics. Magnetic anisotropy is of particular importance in van der Waals magnets, since it not only influences magnetic and spin transport properties, but also is essential to stabilizing magnetic order in the two-dimensional limit. Here, we report that hole doping effectively modulates the magnetic anisotropy of a van der Waals ferromagnet and explore the physical origin of this effect. Fe3-xGeTe2 nanoflakes show a significant suppression of the magnetic anisotropy with hole doping. Electronic structure measurements and calculations reveal that the chemical potential shift associated with hole doping is responsible for the reduced magnetic anisotropy by decreasing the energy gain from the spin-orbit induced band splitting. Our findings provide an understanding of the intricate connection between electronic structures and magnetic properties in two-dimensional magnets and propose a method to engineer magnetic properties through doping