Does anyone know how to connect it to ESP32? It looks like it uses serial communication? Are there already any (CAN, OBD2) libraries available for MCP2551 modul?
That's a 5v chip. so you'll need a level translator chip to down shift the Rx voltage going into the ESP32.
Would not recommend the resistor hack shown in the ESPHome documentation unless you have an oscilloscope to check the signal integrity.
Also, being from an Aliexpress seller, it's highly likely to be a fake chip, so expect the behavior to deviate from the datasheet. It may even give the illusion at working at 3.3v despite what the data sheet says about the low voltage brownout shutdown behaviour.