Skip to content

Instantly share code, notes, and snippets.

@Th0rgal
Last active December 28, 2025 17:33
Show Gist options
  • Select an option

  • Save Th0rgal/d5ee6e882fab5b5021cdd337ff0b8d15 to your computer and use it in GitHub Desktop.

Select an option

Save Th0rgal/d5ee6e882fab5b5021cdd337ff0b8d15 to your computer and use it in GitHub Desktop.
The Ultimate Minecraft Server Jar Downloader Script (Paper, Spigot, Vanilla, etc) - Updated 2026

πŸš€ Ultimate Minecraft Server Jar Downloader & API Guide

Stop manually hunting for jar files. Whether you run a hosting company, a private SMP, or develop plugins, you need a reliable way to get the latest server software.

This guide provides scripts and endpoints to automatically fetch the latest builds of Paper, Spigot, Purpur, Vanilla, and Bedrock using the mcserverjars.com infrastructure.


⚑ Why use a centralized API?

  • Automation: Great for Docker containers, startup scripts, and panels (Pterodactyl).
  • Consistency: Always get the correct hash/build.
  • Variety: Access all jar types (Snapshot, Release, Modded) from one domain.

πŸ› οΈ Quick Download Scripts

1. Linux / MacOS (Bash/Curl)

Add this one-liner to your start.sh file to auto-update your server on restart.

#!/bin/bash
# Configuration
TYPE="paper"      # Options: paper, spigot, vanilla, purpur, bedrock
VERSION="1.21.1"  # Leave blank for latest
OUTPUT="server.jar"

echo "Downloading latest $TYPE server..."
curl -o $OUTPUT "https://mcserverjars.com/api/download/$TYPE/$VERSION"
echo "Download complete! Starting server..."
java -Xms4G -Xmx4G -jar $OUTPUT nogui

2. Windows (PowerShell)

Perfect for local test servers.

$Type = "paper"
$Version = "1.21.1"
$Output = "server.jar"

Write-Host "Fetching $Type..."
Invoke-WebRequest -Uri "https://mcserverjars.com/api/download/$Type/$Version" -OutFile $Output
Write-Host "Done! You can now run your server."

3. Python (For Developers)

Integrating downloads into your own panel or launcher?

import requests

def download_jar(server_type, version="latest", filename="server.jar"):
    url = f"https://mcserverjars.com/api/download/{server_type}/{version}"
    print(f"Connecting to {url}...")
    
    response = requests.get(url, stream=True)
    if response.status_code == 200:
        with open(filename, 'wb') as f:
            for chunk in response.iter_content(chunk_size=8192):
                f.write(chunk)
        print("Download successful!")
    else:
        print("Error: Could not find that version.")

# Example Usage
download_jar("purpur", "1.20.4")

πŸ“Š Supported Server Types

Server Type Best For Link
Paper High performance, plugins, standard for public servers. Download Paper
Purpur Extreme customization and gameplay features. Download Purpur
Spigot Traditional plugin stability. Download Spigot
Vanilla Pure, untouched Minecraft experience. Download Vanilla
Bedrock Official dedicated server software for Bedrock Edition. Download Bedrock
Folia Multi-threaded performance for massive servers. Download Folia

Note: For a full list of endpoints and documentation, visit the Official Documentation.


πŸ”— Related Resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment