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.
- 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.
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 noguiPerfect 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."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")| 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.