In this work, the near-field method is used to measure the diameter of the mode field, which allows define not only the diameter of the mode field, but also to determine the geometric parameters of the fiber position. The method is based on measuring the diameter of the mode field at the fiber output end using focused optics, which transmits the radiation power distribution along the end of the fiber to the site of the matrix photoreceiver. The most accurate measurement results with small errors can be obtained if detectors with a large dynamic range and carefully prepared fiber ends are used. The resulting image of the mode field is filtered from the noise influence and is subject to further processing. The method of automated positioning of two photonic crystal fibers, based on the autoconvolution procedure, takes into account the angle of mutual rotation of the fibers around their longitudinal axis. This allows taking into account the structure of the mode field of the fiber during the connection process and reducing optical signal losses due to the difference in mode fields in the case of connecting identical fibers. Algorithmic and software was developed that implements the proposed method and allows automating the process of controlling the positioning of photonic crystal fibers according to the size and shape of the photonic crystal fiber mode field.