While there is no API for MatterControl it is open source and you can view it on Github. While there is a plugin system in MC I believe the key problem here is the lack of a "slicer" for a CNC Mill. If you can find/write a program that will accept the settings MC outputs and generate a proper toolpath for your CNC Mill then you can follow the instructions here to connect it to MC.