The mean curvature approach is considered for arbitrary magnetic field vector and magnetic surface. It is shown that the magnetic field module variation along a field line defines the mean curvature of this vector. Magnetic surfaces with constant mean curvature can be optimal for plasma confinement in strait open-ended traps and linked multimirror configurations.