Skip to content

Minecraft MongoDB Driver

Up-to-date MongoDB Java sync driver wrapped as a universal Forge/Fabric/Bukkit library for plugins like Grim.

FabricNeoForgeForgeQuilt
Loaders
FabricNeoForgeForgeQuilt
Downloads on Modrinth
560
Followers on Modrinth
0
versions
5
Updated
October 16, 2026Oct 16
Published
in 2026
This is a library — other mods need it, and it adds nothing to the game by itself

At a glance

A library: other mods need it
Runs on Fabric, NeoForge, Forge and Quilt
For Minecraft 1.12.2–26.3
Latest version — 5.13.0+2026-09-26 from October 16, 2026
License Apache-2.0 — free
Where it's needed
In gameunknownOn serverunknown

The author didn't say where the mod is needed

Game versions1.12.2–26.3

MongoDB Java Driver for Minecraft

The official MongoDB Java sync driver (mongodb-driver-sync plus its core and BSON dependencies) repackaged as a Bukkit/Spigot/Paper plugin and a Fabric/Forge/NeoForge mod.

The mod does nothing on its own. Other plugins/mods that want to talk to MongoDB pick this up via softdepend (or just by being on the same classloader) and use the driver via the standard MongoClients.create(...) API.

What's in the jar

The full sync-driver bundle:

  • org.mongodb:mongodb-driver-sync:5.3.1 — the API surface (MongoClient, MongoCollection, etc.)
  • org.mongodb:mongodb-driver-core:5.3.1 — wire-protocol implementation, connection pooling, server discovery
  • org.mongodb:bson:5.3.1 — BSON codecs and document model
  • org.mongodb:bson-record-codec:5.3.1 — Java record support

Plus minimal loader stubs for Spigot, Forge 1.12, Forge 1.13–1.16, Forge 1.17–1.20, NeoForge 1.21+, and Fabric. Classes stay at canonical com.mongodb.* and org.bson.* paths — no relocation — so consumers find them with plain Class.forName.

Service files for BSON codecs are merged via Shadow's mergeServiceFiles() so codec auto-discovery works.

Compatibility

LoaderMC versionsNotes
Bukkit / Spigot / Paper / Folia / Purpur1.8 → currentdrop into plugins/
Fabric1.16.1 → currentneeds Fabric Loader 0.14+
Forge1.12 → 1.20universal jar, no Mixins
NeoForge1.21 → currentdrop into mods/

Java 8+ required (driver 5.x baseline).

Using it from a plugin or mod

compileOnly("org.mongodb:mongodb-driver-sync:5.3.1")

Probe and connect:

try {
    Class.forName("com.mongodb.client.MongoClients");
} catch (ClassNotFoundException e) {
    getLogger().warning("MongoDB backend disabled — install minecraft-mongodb-driver");
    return;
}
MongoClient client = MongoClients.create("mongodb://user:pass@host:27017/?authSource=admin");

On Paper 1.17+ add softdepend: [minecraft-mongodb-driver] to your plugin.yml so the classes are visible to your plugin's classloader.

Connection strings carry everything — auth source, replica set members, read preference, write concern. Put it all in the URI; don't try to set them via MongoClientOptions unless you're doing something unusual.

Versioning

The jar version tracks the upstream sync driver. 5.3.1+2026-04-25 ships driver-sync 5.3.1 plus matching core/bson; the suffix is the build date. Auto-bump runs daily against Maven Central.

License

Apache 2.0 (MongoDB, Inc.). The repackage adds no functional changes. Full text in LICENSE.


Issues, source: GitHub.

FAQ

How to install Minecraft MongoDB Driver?

Install Fabric for your Minecraft version, download Minecraft MongoDB Driver for the same version and loader, put the file into the mods folder and launch the game with the loader profile.

Which Minecraft versions does Minecraft MongoDB Driver support?

Minecraft MongoDB Driver has builds for Minecraft 1.12.2–26.3.

License and source
Apache License 2.0free to use and share with credit to the author
Original — Modrinth↗Files unchanged, verified with SHA-512Is this your mod? For rights holders

The site uses cookies: the necessary ones for sign-in and the theme, plus the Yandex Metrica and LiveInternet visit counters — they show us how the site is used. We have no advertising cookies. More