Optical filters in WDM are passive communication components used in case of transmitting and reflecting lights with specific wavelengths. In this paper, a novel mechanism for the automatic and optical alignment has been presented. It includes minimum axes not to be coupled each other. The automatic spectrum inspection system has been developed to improve the alignment time of reference optical ray, spectrum inspection time and inspection quality, simultaneously. It has been confirmed that the proposed spectrum inspection system is faster, more precise and more reliable than those based on the conventional handwork.