A tool for managing and packaging Modrinth mod profiles. Automatically filters mods by compatibility (server-only, client-only, or universal) and creates distributable archives.
- Auto-detects your Modrinth app installation
- Queries Modrinth API to determine mod compatibility
- Creates server-only or client-only mod packs
- Exports as ZIP or TAR archives
- Configurable compression and output formatting
- Interactive CLI with real-time progress
git clone https://github.com/cybermine2098/Modpacker.git
cd modpacker
npm install
npm startBuild a standalone executable that works without Node.js installed:
npm install -g pkg
pkg . --targets node18-linux-x64,node18-macos-x64,node18-win-x64
sudo cp dist/mpcli /usr/local/bin/ # Linux/macOS
# or copy mpcli.exe to a PATH folder on WindowsThen run mpcli from anywhere.
npm startThe tool will:
- Locate your Modrinth installation
- Display available profiles
- Open an interactive prompt with these commands:
help - Show available commands
server -p [path] -n [name] - Create server-only mod pack
client -p [path] -n [name] - Create client-only mod pack
exit - Exit without saving
-p path- Output directory (defaults to ~/Downloads)-n name- Archive filename (defaults toarchive-serverorarchive-client)-t- Use TAR format instead of ZIP-nd- Skip auto-detection, manually specify Modrinth path
npm start
# Then in the interactive prompt:
server -p ~/backups -n "MyServer"
client -n "MyClient" -tCreate or modify the config.json in the project root to customize behavior:
{
"lineSpacing": { "name": "tabbing", "value": 1,"comment":"..." },
"distanceMs": { "name": "delay", "value": 100,"comment":"..." },
"archiveCompression": { "name": "compression", "value": 6,"comment":"..." }
}Modify settings from the CLI:
mpcli config write archiveCompression 9
mpcli config read- Scans your Modrinth profile's mods folder
- Calculates SHA1 hash for each mod file
- Queries Modrinth API to determine server/client compatibility
- Allows you to create filtered archives without manual work
Mods not found on Modrinth are included in all packs by default.
- Node.js 16+ (or pre-built binary)
- Modrinth app installed
- Internet connection for API queries
ISC