A simple PHP-based Minecraft Bedrock Edition (MCPE) server query API.
- Query MCPE server status
- Get online/offline state
- Fetch current players and max players
- Display server MOTD
- JSON output, easy to integrate
- Clone the repository: git clone https://github.com/baursh/MCPEQuery.git
- Navigate to the folder: cd MCPEQuery
- Install autoload: composer dump-autoload
- Start PHP server: php -S localhost:8000 -t public
Access via browser or API request: http://localhost:8000/query.php?ip=127.0.0.1&port=19132
{
"online": true,
"motd": "Welcome to My MCPE Server",
"players": 3,
"max_players": 20,
"version": "1.21.100"
}