We report the design, fabrication and characterization of an integrated frequency discriminator on InP technology for microwave photonic phase modulated links. The optical chip is, to the best of our knowledge, the first reported in an active platform and the first to include the optical detectors. The discriminator, designed as a linear filter in intensity, features preliminary SFDR values the range between 67 and 79 dB.Hz(2/3) for signal frequencies in the range of 5-9 GHz limited, in principle, by the high value of the optical losses arising from the use of several free space coupling devices in our experimental setup. As discussed, these losses can be readily reduced by the use of integrated spot-size converters improving the SFDR by 17.3 dB (84-96 dB.Hz(2/3)). Further increase up to a range of (104-116 dB.Hz(2/3)) is possible by reducing the system noise eliminating the EDFA employed in the setup and using a commercially available laser source providing higher output power and lower relative intensity noise. Other paths for improvement requiring a filter redesign to be linear in the optical field are also discussed.