There's a few already available.
This is the complete spindle setup Midwest Rapid Tool
This is an addon for Kress Sorotec - Werkzeugwechsler für Kress

For your own you'll need a way to the release and capture of the tool holder and some way to secure the tool holder to the spindle.
It's something ill be looking in to myself once im up and running.