MC Server Auto Closer
by ms0503
MC Server Auto Closer shuts down a Minecraft server that has been left unattended for a set period, once the last player has left.
What it does
When the last player leaves a server, the mod starts a countdown equal to a configurable wait time, defaulting to 900000 milliseconds, which is 15 minutes. If no one rejoins before that time runs out, the server stops on its own. The stop only happens inside a configured window, set by enableTimeStart and enableTimeEnd in HH:MM:SS format, with defaults of 02:00:00 and 08:00:00. Outside that window the countdown ends without a shutdown, so a server can be left to close overnight while staying open during the day.
The shutdown is triggered only when every player is gone, so an active session is never interrupted. The wait check continues until the configured time plus the wait time reaches enableTimeEnd, which keeps the close inside the window. Server owners who run a hosted or shared server can use it to avoid leaving a machine running with nobody connected. The mod is server-side only, so players join without installing anything.
The mod is released under the MIT License and is open source; its source code and issue tracker are public. It is published for Fabric, Forge and NeoForge across six release versions, 1.20 – 1.20.6, with 0.2.3 for 1.20.6 as the latest Fabric and NeoForge file and 0.2.3 for 1.20.4 as the latest Forge file, all dated 2026-03-02. The first build appeared on 2026-02-28.
Key features
Automatic shutdown when empty
The server stops after the last player has been gone for the configured wait time.
Configurable wait time
The wait time is set in milliseconds, with 900000 (15 minutes) as the default.
Scheduled stop window
Shutdown can be limited to a time range in HH:MM:SS, defaulting to 02:00:00 through 08:00:00.
Rejoin cancels the countdown
If a player joins before the wait time expires, the countdown is cancelled and the server keeps running.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 3
Optional 1
Use cases
Overnight close on hosted servers
A server that should stop while no one is online overnight can use a stop window to close without manual action.
Unattended machines
Owners running a server on a machine they do not watch can avoid leaving it running with an empty world.
Who it’s for: Server owners and hosts who want a server to stop automatically once it has been empty for a while, within a set time window.
Questions
Does Server Auto Closer need to be installed on clients?
Which dependencies does the mod require?
How is the shutdown time window set?
In the catalog
MC Server Auto Closer is one of 8,016 Management mods on ModsFinder, and one of 5,930 Management mods for Fabric. 11,154 mods support Minecraft 1.20.6.
Similar mods
What the author says
This is a mod that automatically shuts down the Minecraft server if it remains unattended for a set period of time. Configuration file is config/mc_server_auto_closer.json.
Official listing
- Modrinth page
- modrinth.com/mod/mc-server-auto-closer
- Owner
- ms0503
- Published
- 2026-02-28
- Updated on Modrinth
- 2026-03-02
- Facts verified
- 2026-10-15