ModsFinder

MCAPIBridge

by TaotianZhufang

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.

FabricServer-side onlyMIT LicenseOpen source1.20.1 – 1.21.4

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

  1. Text command socket

    A local TCP server accepts line-based commands, so scripts in any language can control the game.

  2. Block placement

    Blocks are placed by query, including modded blocks, without needing the player to be nearby.

  3. Sign editing

    Text on sign blocks can be changed dynamically by an external program.

  4. Entity spawning

    Entities are summoned at precise coordinates with yaw and pitch rotation.

  5. Vanilla server commands

    Commands such as time and weather can be executed with operator privileges through the socket.

  6. Dimension targeting

    Each command can be aimed at the Overworld, the Nether or the End.

Compatibility

Latest build for each game version and loader.

No stable releases
Every published file is a beta or alpha build.
1.21.41.21.4-Beta-1.0.1
1.21.11.21.1-Beta-1.0.1
1.20.61.20.6-Beta-1.0.1
1.20.41.20.4-Beta-1.0.1
1.20.11.20.1-Beta-1.0.1
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

How it compares

Full comparison

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.

ModLoadersGame versionsEnvironmentUpdated
MCAPIBridgeFabric1.20.1 – 1.21.4Server-side only2026-02-13
PeripheralFabric1.21 – 26.1.2Client-side only2026-04-27
nova's Music ScriptFabric and Quilt1.18.2Client-side only2023-11-21
AutoExecutorModFabric1.21.11Client-side only2026-06-28

Questions

Does MCAPIBridge have to be installed on the client?

No. Server owners install it, and players connect with no copy of their own.

Which languages can connect to MCAPIBridge?

Python, C# and Dart are named by the author, and more languages are planned. Any language that can open a TCP socket can send the line-based commands.

Which game versions does MCAPIBridge support?

Files exist for 1.20.1, 1.20.4, 1.20.6, 1.21.1 and 1.21.4, covering 1.20.1 – 1.21.4 as a single range.

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…
TaotianZhufang, on the Modrinth page

Official listing

Owner
TaotianZhufang
Published
2026-01-28
Updated on Modrinth
2026-02-13
Facts verified
2026-10-15

Tags