The invention discloses a three-station automatic head library. The three-station automatic head library comprises a head library base assembly and a head library support assembly, the head library base assembly comprises a bottom plate, an X-direction linear rail, an X-direction oil cylinder, a Y-direction linear rail, a first Y-direction oil cylinder and a second Y-direction oil cylinder, and the head library support assembly comprises a first head library support, a second head library support and a third head library support. The first head library support and the second head library support are installed on the Y-direction linear rail in a sliding manner, the first head library support is connected with a piston rod of the first Y-direction oil cylinder, the second head library support is connected with a piston rod of the second Y-direction oil cylinder, the third head library support is installed on the X-direction linear rail in a sliding manner, and the third head library support is connected with a piston rod of the X-direction oil cylinder. After being installed and debugged, the three-station automatic head library is arranged at one side of a machine tool body. According to the three-station automatic head library, the three-station automatic head replacement action of three different accessory heads in an unmanned state can be realized, and the space between a workbench surface and a machine tool stand column is completely not occupied after the three-station automatic head library is mounted.