skillfed

mcstatus

A library to query Minecraft Servers for their status and capabilities.

mcstatus v14.0.0 172.0K downloads/30d#10,350 on PyPI600
Permissive license Apache-2.0 Active released

What it is and what it does

mcstatus is a Python library that abstracts away the complexity of Minecraft server protocols, letting you query server status and player information without implementing the Server List Ping or Query protocols yourself. It supports Java Edition servers (modern and legacy versions), Bedrock Edition servers, and provides both a Python API and a command-line interface.

The library handles the low-level protocol details and returns structured data about player counts, server latency, MOTD, and other server properties. It depends on asyncio-dgram for UDP communication and dnspython for DNS resolution, making it suitable for monitoring dashboards, server browsers, or any application that needs to check Minecraft server availability and player status.

Use it for:

  • Build a server browser or status dashboard that displays live player counts and latency for Minecraft servers.
  • Monitor Minecraft server uptime and performance as part of a larger hosting or management platform.
  • Retrieve full player lists from servers with Query enabled to populate leaderboards or player tracking systems.
  • Implement a Discord bot or web service that responds to queries about specific Minecraft server status.
  • Automate server health checks and alerting for your own Minecraft infrastructure.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Queries Minecraft servers (Java, Legacy, and Bedrock editions) to retrieve status, player counts, latency, and server properties via the Server List Ping and Query protocols.

Yes. mcstatus is actively maintained, has no known vulnerabilities, low install friction, and solves a specific problem well—querying Minecraft servers without protocol knowledge. It supports current Python versions and is licensed permissively. Install it if you need to check Minecraft server status or player information in a Python application.

Install

mcstatus on PyPI

pip

pip install mcstatus

uv

uv add mcstatus

poetry

poetry add mcstatus

Installing mcstatus

Before you install

Low install friction with only 2 runtime dependencies (asyncio-dgram and dnspython). Active maintenance with a recent release 49 days ago and a commit as recent as 2026-08-14. Supports current Python versions (3.10 through 3.14).

License in practice

Licensed under Apache-2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.

Quickstart

from mcstatus import JavaServer

server = JavaServer.lookup("example.org")
status = server.status()
print(f"Players online: {status.players.online}")

Requires Python 3.10 or later. Query protocol requires it to be enabled on the target server's server.properties file.

Verify before relying

  • Whether asyncio-dgram and dnspython introduce significant transitive dependencies.
  • Performance characteristics when querying many servers concurrently or in rapid succession.
  • Whether the library handles network timeouts and connection failures gracefully in production use.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 2 — asyncio-dgram, dnspython
Maintenance actively maintained — 49 days since the last release
Last repo commit
First released
Downloads 172,037/month — #10,350 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: mcstatus-14.0.0-py3-none-any.whl

Keywords: minecraft, protocol

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Games/EntertainmentTopic :: Software Development :: Libraries :: Python ModulesTopic :: System :: MonitoringTyping :: Typed

Tags

minecraft server statusquery minecraft serverminecraft server pingcheck minecraft players onlineminecraft server info apiminecraft protocol clientbedrock server query
minecraftgame-server-queryprotocol-client

More Python Modules packages