Minecraft Bedrock Open source · GPL-3.0

Connect. Automate.
Build.

MCWSLoader is a WebSocket bridge, WebUI and Mod loader for Minecraft Bedrock Edition. It turns a normal Bedrock client into a programmable endpoint — for structure tools, pixel art, music, AI commands and anything else you can imagine.

TypeScript core · hot-reload Mods · local-first WebUI
mcwsloader — npm start
$ npm start [info] WebSocket server started on 127.0.0.1:8080 [info] WebUI started: http://127.0.0.1:50005 [info] Server Mods loaded [info] Client Mods loaded [debug] SAPI bridge ready [info] waiting for a Bedrock client…
WebSocket
Bedrock ↔ server bridge
TypeScript
strict core, typed Mods
Hot reload
enable or import without restart
Local-first
127.0.0.1 by default
What's inside

One bridge. A full toolkit.

MCWSLoader is not just a connection proxy. It ships with a dashboard, a command system, a Mod framework and a security model designed for daily use.

WebSocket bridge

Speak the Bedrock WebSocket protocol without writing packet plumbing. Commands, events, positions and inventories are exposed to Mods and the WebUI.

MCBEWebSocketEvents

WebUI dashboard

Manage clients, Mods, commands and permissions, read logs and chat, and change configuration — all from a responsive local interface.

Vue 3Dashboardi18n

TypeScript Mods

Bundled Mods run as TypeScript through tsx. Extend ModBase, get typed injected dependencies and reload code without restarting the server.

TypeScriptHot reloadModBase

Security controls

Connection approval, IP allowlists, same-origin CORS, CSP, hardened login and archive validation are built in — not added as an afterthought.

ApprovalIP allowlistCSP

Update manager

Check releases from System settings, choose stable or preview channels and optionally check once at startup. No silent code changes.

StablePre-releaseStartup check

Android & Windows shell

A thin Flutter WebView shell loads the same WebUI on Android and Windows. Update the WebUI and the app follows automatically.

FlutterAndroidWindows
Architecture

Small core, open edges.

The Bedrock client stays vanilla. MCWSLoader handles the bridge, routing and dashboard, while Mods extend both server and client sides.

Bedrock client vanilla /connect
MCWSLoader bridge · commands · Mods
WebUI + Mods localhost:50005

One Bedrock connection can power a dashboard, CLI tools, structure importers and client-side Mods at the same time.

Quick start

From clone to connected.

Node.js 22+ is recommended. The first launch creates config.json and prints the WebUI address.

terminalbash
# 1. clone and install git clone https://github.com/StarAwA117/MCWSLoader.git cd MCWSLoader npm install # 2. start the bridge + dashboard npm start # 3. in Minecraft Bedrock /connect 127.0.0.1:8080
1
Open the dashboardVisit http://127.0.0.1:50005. The default bind address is local-only.
2
Approve the clientRemote connections start pending. Approve them in Clients or allow their IP/CIDR in settings.
3
Pick a ModUse the bundled Mods or write your own in mods/; enable and reload from the WebUI.
For Mod authors

Typed from the first line.

Bundled Mods are TypeScript. Import ModBase for typed injected dependencies, then add a manifest and drop the folder into mods/.

Mods are just folders

A manifest.json defines the name, entry files and npm dependencies. The server loads main.ts through tsx and hot-reloads it from the WebUI.

manifest.jsonTypeScriptnpm depshot reload
mods/hello/main.tsTypeScript
import ModBase from "../../lib/modbase.js"; export default class Hello extends ModBase { onCommand() { return { normal: [ this.Command.create("hello") .setFunc(() => this.client?.tell("Hello, Bedrock!")) ] }; } }