About Py Mcpe Query
Py Mcpe Query is an MCP server published by w-gao in the Developer Tools category: query tool for Minecraft: Bedrock Edition servers.
The repository has 8 stars and 3 forks, with the last commit 22 days ago. Recent commit activity is the strongest signal that reported issues will get attention.
Install
git clone https://github.com/w-gao/py-mcpe-queryThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Ask AI
Ask AI about Py Mcpe Query
Powered by Claude · Grounded in docs
Security checks
Static checks derived from the repository just now. Heuristics on the source, not an audit.
- ✓README presentThe repository ships documentation.
- ✓License declaredUsable under a stated license.
- !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
- !Dependencies pinnedNo lockfile. Installs can pull different code over time.
- ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
README
mcquery
Introduction
mcquery (aka py-mcpe-query) is a Python software that uses the query protocol to ping a Minecraft: Bedrock edition server for basic information.
Note: Some servers silently drop the query packets of "cold" clients, which shows up as a timeout error. In that case mcquery wakes the server up with a RakNet unconnected ping and retries on its own. If the target server does not support the query protocol at all, you can use mcstats instead, where you can ping a server without the query protocol.
Install
Install via pip
Run pip install mcquery in your terminal, and it will install the latest version of this project in your Python
environment.
Install from source
Clone this repository and run the following in the root folder of this project:
python setup.py build install
Usage
Query with CLI
After installation, the mcquery command will be available in your Python environment. You can perform a query with
the following command: mcquery localhost.
Example:
$ mcquery play.lbsg.net
Motd: None
Hostname: {-name-:-Lifeboat Proxy-,-node-:{-type-:-PROXY-,-ip-:-proxy14.lbsg.net-,-players-:91,-maxplayers-:400,-tps-:39.950001}}
Game type: None
Game id: None
Version: None
Server engine: None
Plugins: ['']
Map: None
Num players: 91
Max players: 400
Whitelist: None
Host ip: **.***.**.**
Host port: 19132
Players: []
You can also specify the port with the -p option (e.g.: mcquery localhost -p 19133). For more options, please run
mcquery --help.
Use as a module
You can also use the API by writing the following code in your project:
from mcquery import mcquery
host = "localhost"
port = 19132
with mcquery(host, port=port, timeout=10) as data:
# data is a QueryServerData object
print(data)
License
MIT © 2017-2021 w-gao
README fetched from the repository just now. The original is authoritative.