Checkout the Ethernet Smooth Stepper Rigid tapping with a custom code:
You can also use a tapping head.
How much rigid tapping are you going to do? Do you have a fast spindle?
There are numerous options available; it ultimately depends on what works best.t for you.
Arturo Duncan
https://cnc4pc.com