MQTT and API at the same time - it's possible?

If I understand correct you are using HA API for this node. And need MQTT for your weather station.
As long as there is a API connection to the node, nothing will happen. The reboot will only occur, if no HA API connection is available.