Fabric is not only for single-player worlds. Many of the most active modded communities run dedicated Fabric servers, and Fabric API is just as important there as it is on a player's computer. Server-side mods for permissions, world management, backups and performance all depend on it, and its registry synchronisation keeps joining players aligned with the server's content. This guide explains how to set up a Fabric server with the library, how to decide which mods belong on the server and which on the client, and how to keep everything maintained over time.
Why the library matters on a server
On a server, Fabric API provides the same hooks it offers on the client, plus several features that are especially valuable in multiplayer:
- Server lifecycle events for start-up, shutdown and every tick, which administration and automation mods rely on.
- Player connection events that let mods react when someone joins or leaves.
- Command registration for custom administrative and gameplay commands.
- Registry synchronisation, which ensures that clients joining the server assign the same identifiers to modded blocks and items.
- Networking channels used by mods that exchange data between server and client.
Without the library, most server mods simply will not load.
What you need
- A machine or hosting plan capable of running Minecraft: Java Edition servers. A small group of friends with a modest mod list can be served comfortably by 4 GB of memory; larger communities or content-heavy packs often need 6–10 GB.
- The correct Java runtime for your game version: Java 25 for 26.1 and newer, Java 21 for 1.20.5 to 1.21.11, and Java 17 for 1.18 to 1.20.4.
- The Fabric server launcher or installer.
- The Fabric API build matching your server's game version.
Setting up the server
1. Create the server files
The Fabric website offers a server launcher jar that downloads Minecraft and the loader automatically. Choose the game version and loader version, download the launcher, and place it in an empty folder dedicated to the server. Alternatively, use the universal Fabric installer, switch to the Server tab and install into that folder.
2. Run the server once
Start the server from a terminal with a command similar to:
java -Xms4G -Xmx4G -jar fabric-server-launch.jar nogui
The first run downloads required files and then stops because the end user licence agreement has not been accepted. Open eula.txt, change eula=false to eula=true, and save the file.
3. Add Fabric API
Run the server once more so it generates its folders, then stop it. Place the matching Fabric API jar in the server's mods folder. Start the server again and check the console: the list of loaded mods should include fabric-api.
4. Add your server mods
Add the remaining mods to the same folder, restarting the server after each batch so that any problem can be traced to a specific addition.
Client-side, server-side or both?
Fabric mods fall into three groups, and understanding them prevents a great deal of frustration.
- Server-only mods run entirely on the server. Players can join with an unmodified client. Examples include permission systems, backup tools and many performance mods that optimise world ticking.
- Client-only mods run on the player's computer and must not be installed on the server. Minimaps, shader loaders, interface tweaks and rendering optimisations belong here. Placing them on a server can cause it to crash at start-up because it lacks client classes.
- Mods required on both sides add content such as new blocks, items or creatures. Both server and every client need the same mod in compatible versions.
Mod pages on Modrinth label each project's supported environment, which makes sorting straightforward. Fabric API itself supports both environments, so it belongs on the server and on every client that uses mods requiring it.
If your server includes content mods, every player must install Fabric Loader, Fabric API and those same content mods to join. Distributing your setup as a modpack is the easiest way to keep everyone aligned.
Keeping clients and server aligned
When a player connects, the library compares registered content between client and server. If the player is missing a content mod, or has a different version that registers different items, the connection is refused with a message describing the mismatch. This protects worlds from corruption, but it means you must communicate your mod list clearly.
The most reliable approach is to publish a modpack containing exactly the client-side and both-sides mods your server needs, with specific versions pinned. Players install the pack through their launcher and join without manual setup.
Performance considerations
The library adds negligible overhead to a server. Performance depends far more on world size, player count, the number of loaded chunks and the content mods installed. Several server-side optimisation mods for Fabric improve tick times, memory usage and chunk generation, and they all build on the library's hooks.
A few general practices help any Fabric server:
- Set the
-Xmsand-Xmxmemory flags to the same value to avoid heap resizing. - Pre-generate the world around spawn so chunk generation does not occur during play.
- Lower the view distance and simulation distance in
server.propertiesif tick times are high. - Use a profiling mod to identify which mod or area of the world consumes the most time.
Updating a live server
Updating the library within the same game version is usually painless. Schedule a short maintenance window, stop the server, replace the jar with the newer build, remove the old one and start again. Inform players if the update requires matching client changes, though library-only updates rarely do.
Upgrading to a new game version is a larger project. Every mod must support the new version, and world data must be converted. Always make a complete backup of the world folder before upgrading. Test the upgrade on a copy of the world first, ideally on a separate server instance, and only switch your live server once you are satisfied.
Backups and safety
Regular automated backups are essential for any server. Several Fabric mods can create scheduled backups while the server is running, and many hosts offer their own backup systems. Keep copies in more than one location, and test restoring a backup occasionally so you know the process works when you need it.
Obtain mods only from reputable sources such as Modrinth, CurseForge or a project's official repository. Server mods run with full access to the machine, so unknown files from unofficial sites are a genuine risk.
Troubleshooting server start-up
- Server crashes immediately after adding a mod: check whether it is a client-only mod. Remove it and restart.
- "Unsupported class file major version": the server is running on an older Java than the game requires.
- Players cannot join due to registry mismatches: compare their mod list with the server's and align versions.
- Missing dependency messages: install the named mod, often the library itself, in the matching version.
For more detail on reading logs and resolving crashes, see Fixing Common Fabric API Errors and Crashes.
Choosing where to host
A Fabric server can run on a home computer, a rented virtual private server or a specialised game hosting service. Each option suits different needs.
- Home hosting costs nothing extra and gives you full control, but it depends on your upload speed, requires router configuration for others to connect and means the server stops whenever the computer does.
- Virtual private servers provide a dedicated environment in a data centre with reliable connectivity. You install Java, the Fabric launcher and the library yourself, which offers flexibility but demands some familiarity with the command line.
- Game hosting services offer control panels with one-click Fabric installation, file managers for uploading mods and automatic backups. They are the most convenient choice for groups who want to focus on playing rather than administration.
Whichever you choose, make sure the plan offers enough memory for your mod list, supports the Java version your game needs and lets you upload files to the mods folder. Fast single-core processor performance matters more than a large number of cores, because the main game loop runs largely on one thread.
Conclusion
Running Fabric API on a dedicated server follows the same principles as on a client, with a few additional responsibilities. Install the server launcher, accept the licence agreement, add the matching library build and introduce your mods in small batches. Separate client-only mods from those the server needs, distribute content mods to players as a modpack, and keep reliable backups before every significant change. With those habits, a Fabric server can remain stable, fast and enjoyable for its community over the long term.



