The invention concerns a filter comprising, on a substrate (2) at least a microtip (4) extending through a beam-shaped nanostructure (6). The microtip and the nanostructure are conductive, at least a the surface. The nanostructure forms an electromechanical resonator. At least an input electrode (16) and at least an output electrode (18) are formed on an insulating layer, on either side of the microtip, proximate to the tip thereof. The input electrode receives the signal to be filtered and the output electrode supplies a filtered signal. The invention is applicable in particular to wireless telecommunications.