MCAPIBridge
MCAPIBridge opens a local TCP socket on port 4711 so that external programs written in Python, C# or Dart can send text commands to a running Fabric game server.
What it does
Once the server is running, MCAPIBridge listens for line-based text commands over a local TCP connection. The protocol is simple enough for any programming language that can open a socket, and several scripts can stay connected at the same time because each connection is handled on its own thread. Python, C# and Dart are the languages named by the author, with more planned for later releases.
Commands cover block placement and sign editing, and they can target the Overworld, Nether or End by dimension. A script can also summon entities at exact coordinates with yaw and pitch, and run vanilla server commands such as time or weather. The mod is open source under the MIT License, and the source code and issue tracker are public. Because it is server-side only, players join without installing anything, and the server owner decides what outside programs may do.
The mod is published for Fabric alone, with files for 1.20.1, 1.20.4, 1.20.6, 1.21.1 and 1.21.4. The latest build, 1.21.4-Beta-1.0.1, is marked as a beta release and was posted on 2026-02-13, the same day the mod was last updated.
Key features
Text command socket
A local TCP server accepts line-based commands, so scripts in any language can control the game.
Block placement
Blocks are placed by query, including modded blocks, without needing the player to be nearby.
Sign editing
Text on sign blocks can be changed dynamically by an external program.
Entity spawning
Entities are summoned at precise coordinates with yaw and pitch rotation.
Vanilla server commands
Commands such as time and weather can be executed with operator privileges through the socket.
Dimension targeting
Each command can be aimed at the Overworld, the Nether or the End.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
How it compares
Peripheral is a client-side Fabric mod under the MIT License for 1.21 – 26.1.2, so it works on a different side of the connection. nova's Music Script is also client-side only, under the MIT License, but only for 1.18.2 and on Fabric and Quilt. AutoExecutorMod is client-side only and covers 1.21.11 alone, with All rights reserved and no open source release.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| MCAPIBridge | Fabric | 1.20.1 – 1.21.4 | Server-side only | 2026-02-13 |
| Peripheral | Fabric | 1.21 – 26.1.2 | Client-side only | 2026-04-27 |
| nova's Music Script | Fabric and Quilt | 1.18.2 | Client-side only | 2023-11-21 |
| AutoExecutorMod | Fabric | 1.21.11 | Client-side only | 2026-06-28 |
Questions
Does MCAPIBridge have to be installed on the client?
Which languages can connect to MCAPIBridge?
Which game versions does MCAPIBridge support?
In the catalog
MCAPIBridge is one of 29,952 Game mechanics mods on ModsFinder, and one of 19,630 Game mechanics mods for Fabric. 17,979 mods support Minecraft 1.21.4.
Similar mods
What the author says
MCAPIBridge is a powerful Fabric mod for Minecraft that establishes a real-time TCP socket connection between the game and external scripts (Python, etc.). It exposes a comprehensive API allowing programmatic control over the world, entities, and player states, acting as a programmable interface for Minecraft…
Official listing
- Modrinth page
- modrinth.com/mod/mcapibridge
- Owner
- TaotianZhufang
- Published
- 2026-01-28
- Updated on Modrinth
- 2026-02-13
- Facts verified
- 2026-10-15
