How to add mods to a Minecraft server

Plugins and mods · updated 28 November 2026

Unlike plugins, mods have to be installed both on the server and on every player's game. For individual mods you need the right server software. If you want a ready-made set, it is easier to install a modpack.

Step 1: choose the server software

Check on the mod's page whether it is made for Fabric, Forge or NeoForge, and for which Minecraft version. In the Server software tab install the same loader and the same version (how to change it).

Mods for different loaders do not work together. Every mod on the server has to use the same one.

Choosing Fabric, Forge or NeoForge server software for mods in the PepeHost panel
Pick the mod loader and the Minecraft version in the Server software tab

Step 2: upload the mods

  1. Download the .jar files, for example from Modrinth or CurseForge.
  2. Stop the server.
  3. In the Files tab open the mods folder (if it is not there, make it with Create folder).
  4. Click Upload and select the mod files.
  5. Start the server and watch the console.

On Fabric you almost always need Fabric API as well. Many mods also need extra libraries, which are listed under dependencies on the mod's page.

Example: a Fabric server with a few mods

You want to play Minecraft 1.21.1 with friends, with a few performance mods and some extra content:

  1. In the Server software tab choose Fabric and version 1.21.1.
  2. On Modrinth set the filters: version 1.21.1, loader Fabric, environment Server.
  3. Download Fabric API, Lithium and FerriteCore, then the gameplay mods.
  4. Upload everything to mods and start the server.
  5. Players install the same mods in their game, for example with Modrinth App or Prism Launcher, plus anything that is client only, such as Sodium.

Client-only mods

Some mods only work in the player's game: shaders, minimaps, graphics and interface mods. The server does not need them, and they often crash it on startup. Only upload mods that list server support.

How to give players the same mods

The simplest way is to turn your mods into a small modpack. In Modrinth App or Prism Launcher create a profile with exactly the mods from the server and export it to a file. Players import that file and get the same set. Without it, someone always ends up with a different version of one mod.

Common errors in the console

MessageWhat it meansWhat to do
requires any version of fabric-api, which is missingFabric API is missingupload Fabric API to mods
Missing or unsupported mandatory dependenciesthe mod needs another mod or a different versioninstall the mod named below the message
Attempted to load class net/minecraft/client/... for invalid dist DEDICATED_SERVERa client-only mod on the serverremove that mod from mods
Cannot load class ... in environment type SERVERthe same thing on Fabricremove that mod from mods
Mixin apply failedtwo mods clash, or a mod is for another versionremove mods one by one until the server starts

The mod's name is almost always in the message or a few lines below it.

Frequently asked questions

The server shuts down right after starting.

Scroll the console to the first error. It is usually a missing dependency, a client-only mod, or a mod for another loader or version. Remove the suspicious file from mods and try again.

A player gets "Mismatched mod channel list".

The player has a different set of mods than the server. They need exactly the same mods in the same versions.

How much RAM do mods need?

A handful of light mods fits in 4 GB. Big modpacks usually need 8 GB or more. See how much RAM a Minecraft server needs.

Can I run mods and plugins at the same time?

Not on the standard loaders. A Fabric, Forge or NeoForge server does not load plugins. Pick one or the other.