The invention discloses a machine tool adopting hybrid programming automatic measurement and manual measurement. The machine tool is characterized by comprising a numerical control machining procedure manipulator, a man-machine interaction unit, a procedure code resolver, an interpolator provided with a measurement motion server, a PLC (programmable logic controller) subsystem and a servo position closed-loop controller. The numerical control system of the machine tool is an online measurement system for workpieces and tools, and by adopting the machine tool, hybrid programming of automatic measurement and manual measurement can be realized, more adjustment chances are provided for programming measurement, measurement of part families with the same process characteristics is supported, the workpiece application range of the measurement procedure is expanded, and the installation and adjustment time of measured workpieces is simplified. According to the machine tool and the online measurement method, the execution procedure of automatic measurement is utilized, and the synchronization of the manual measurement motion and the automatic measurement procedure is realized under the support of the measurement motion server; the programmable operation capability of the automatic measurement is exerted, and the flexibility of manual point location measurement is considered, thereby the process capability of online measurement of the numerical control machine tool is expanded.