I've used an ESP32-C3 to monitor the status of my minecraft server. The esp32 has an RGB led and a button, so you could interact with it.
The code in the ESP32 checks if the server is running by TCP pinging the minecraft port 25565. If the server is running then shows the led in green, red otherwise.
Also there is a python code running in the server to add some features.
The button is for when the server process is down. The python code starts a web framework using Flask and waits for get command to an specific path, then starts the server by calling the minecraft start script. This is useful for when the minecraft server is down and you want to restart it remotely.
The python code also checks the minecraft log to look when a new user has entered the server, and the esp32 checks it by getting true or false from a path in the web framework, then shows it by flashing the led in purple for some seconds.