
A simple mod to connect to apps. This mod allows your code to easily interact with your Minecraft client by sending / commands to localhost:2542.
An example in Python:
from socket import socket, AF_INET, SOCK_STREAM
client = socket(AF_INET, SOCK_STREAM)
client.connect(("localhost", 2542))
client.sendall("/give @s minecraft:diamond 64\x00".encode("utf-8"))
# Use \x00 (\u0000, ...) to seperate messages
client.close()
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.21.4
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
Verified by MCModsHub
- Ships as pythonconnectmod-1.0-SNAPSHOT.jar — drop this file into the mods folder
- Download size: 78 KB
- Download link checked 7 Sept 2026 — working
These come from our own check of the pack file, not from the source page.