I searched around and did not find a suitable solution for myself, so I created it: https://github.com/izmailoff/mqtt-mongo .
See README for more details . In fact, this is a standalone service that connects to the MQTT and MongoDB brokers and subscribes to topics of interest to you. You can select a collection for each topic in the config.
- , , Java/ Scala JVM-, .