Derek,
The term you are seeking is 'circular pitch'. The leadscrew has a pitch of 3mm. Acting as a rack, it has a pitch of 3mm. The proper gear to mesh with it has a pitch of 3mm, albeit that pitch is wrapped around a circle, hence circular pitch.
In metric gear terminolgy, a 1MOD gear has a circular pitch of pi (3.14mm). For 3mm circular pitch, you would need a cutter of 0.95MOD which is very non-standard. Hence, I would use an M1 cutter.
There is another issue to mention, but about which you need not concern yourself for a TDI gear, and that is pressure angle, the gear equivalent of the thread angle of your leadscrew. Your leadscrew, if metric, will have a trapezoidal thread of 30 degree angle. The correct gear cutter should have a pressure angle of 15 degrees. Standard metric cutters are 20 degrees, but it does not matter in this case.
Each cutter in the set of 8 has a range of teeth which it is good to cut. So you pick the cutter to suit the number of teeth in the gear you are cutting. I hesitate to mention a number for you as a lot of modern Chinese-sourced cutters have the numbers reversed to the traditional system (1 in traditional is 8 in Chinese).
When cutting the gears, I would be tempted to cut them both on the same size blank (i.e. a blank sized for twenty and a half teeth) then you do not need to alter centre distance when swapping gears. Also cut them relatively thin and you do not need to worry about skew angle.
If there is enough space for it to fit, consider cutting a single 35t gear and having interchangeable graduations on the dial (sheet metal held on with magnet, 5 graduations one side, 7 on the other). It is a lot easier to flip this over than to fiddle about behind the apron changing gears. The biggest challenge with this is finding the space for a relatively big gear.