A compact sensor head based on scanning force microscopy (SFM) using cantilever probes has been developed. The idea is to replace the microscope objective of a conventional optical microscope by this compact module and turn the optical microscope into a scanning force and near-field optical microscope with subwavelength resolution. We describe our concept and present initial results showing images of the object’s optical properties and surface topography recorded simultaneously.