Skip to main content

A high-performance, asynchronous Python library for Minecraft server management (RCON, Status, SLP).

Project description

mcnexus logo

mcnexus

Production-ready, high-performance asynchronous Minecraft library for Python.

PyPI version CI Status License Python Versions


🚀 Overview

mcnexus is a modern Python library built from the ground up to provide reliable, asynchronous tools for interacting with Minecraft servers. Whether you are building a monitoring dashboard, a cross-server chat system, or a complex management bot, mcnexus has you covered.

Key Features

  • Robust RCON: Handles multi-packet responses (up to 4KB+) and automatic reconnection.
  • 🌍 Server Status (SLP): Full support for Modern (1.7+) and Legacy (pre-1.7) protocols.
  • 📡 DNS & SRV Support: Automatically resolves records like mc.hypixel.net to the correct IP and port.
  • Async-First: Built on top of asyncio for high-concurrency environments.
  • 💎 Clean API: Beautiful, documented models and developer-friendly error messages.

📦 Installation

pip install mcnexus

📖 Documentation

For full documentation and API reference, visit:
👉 https://bogdan11212.github.io/mcnexus/


⚡ Quick Start

Get Server Status

import asyncio
from mcnexus import status

async def main():
    info = await status("mc.hypixel.net")
    if info.online:
        print(f"[{info.ping:.1f}ms] {info.players_online}/{info.players_max} players online.")
        print(f"MOTD: {info.motd_clean}")

asyncio.run(main())

Run RCON Commands

from mcnexus import RCONClient

async def run_rcon():
    async with RCONClient("127.0.0.1", 25575, "secret_password") as rcon:
        response = await rcon.command("list")
        print(response.clean)

🤝 Contributing

Contributions are welcome! Please check out our Contributing Guidelines and Code of Conduct.

📄 License

mcnexus is released under the MIT License. See LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcnexus-1.1.0.tar.gz (26.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcnexus-1.1.0-py3-none-any.whl (35.4 kB view details)

Uploaded Python 3

File details

Details for the file mcnexus-1.1.0.tar.gz.

File metadata

  • Download URL: mcnexus-1.1.0.tar.gz
  • Upload date:
  • Size: 26.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for mcnexus-1.1.0.tar.gz
Algorithm Hash digest
SHA256 4ea38da2cd75a035ec4830671bb71ee012845deb8c71eb7148c04eb7e73f0b46
MD5 3f39cdd327024b4b360b1245652e1035
BLAKE2b-256 c6cdffa55bb5a7f2531eb1bb10efa032b6dd74c399a51c0442338f96bb22ef5a

See more details on using hashes here.

File details

Details for the file mcnexus-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: mcnexus-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 35.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for mcnexus-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1bbbbf0c02779856e647eb01264ef250f64a3b76632dbea169934a0c87b20aca
MD5 bc780466dc48fb0a9bd6551f8bb1b830
BLAKE2b-256 80a1ea5abcc17b5925425cf888e7831feaf6496ffee65fecd55925dbda39623c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page