NodeMCP
Linux · REAL-WORLD USE CASES · 🎮 Gaming Use

Build a Garry's Mod Sandbox Server on Linux with AI and NodeMCP

Create a private Garry's Mod multiplayer world on Linux: SteamCMD 4020, Steam GSLT, Workshop collections, Sandbox and TTT gamemodes, moderation and tested backups.

Nov 21, 2026 8 min read
Build a Garry's Mod Sandbox Server on Linux with AI and NodeMCP
Want to try NodeMCP on your device? Try NodeMCP free

Your friends meet in a chaotic workshop: one builds a ridiculous flying machine, another tests a complicated trap, and somebody challenges everyone to a harmless physics race. Garry's Mod is at its best when the experiment belongs to the group, not to whichever player happened to press Host. A dedicated Linux server turns your favorite map into a persistent gathering point. NodeMCP lets an AI assistant inspect an authorized computer, help plan its setup, follow logs and preserve server configuration; it never pretends to manipulate game props without access to the game itself.

Choose the experience before choosing the hardware

Garry's Mod can mean a relaxed Sandbox building room, a dramatic Trouble in Terrorist Town match, a party-style Prop Hunt round or a heavily customized roleplay community. Those have different player counts, tick-rate and addon demands. Pick a small test group and one gamemode before hiring a VPS. Ask NodeMCP to report Linux release, CPU, memory, free SSD, network and existing services, initially without changing anything. Give addons and downloaded workshop content enough storage, and avoid sharing a busy commercial production host with arbitrary game scripts or untested community Lua.

Download the real server, not an unofficial bundle

Facepunch's own Garry's Mod wiki documents SteamCMD installation of the dedicated server, application ID 4020, using anonymous Steam login. Create a restricted Linux account, isolate the installation in its own folder and review dependencies before running the download. On some Linux distributions SteamCMD still needs 32-bit support libraries even on an x86_64 host; use Valve's current distro-specific advice rather than legacy package names from old guides. If you need 64-bit server modules, check Facepunch's current branch instructions and matching launcher; do not assume that every old binary addon magically works on every branch.

The Steam token is a server identity, not a public password

Facepunch describes a Steam Game Server Login Token (GSLT) for a correctly identified server and notes that omitting it affects the server's ranking. The token is associated with the Garry's Mod GAME AppID 4000, not the dedicated download tool's AppID 4020. Generate it only through the legitimate Steam account management flow, then store it outside public configuration snippets. Never paste the working secret into a forum, screenshot, article example or untrusted plugin. NodeMCP can check that the service knows where an approved secret is stored without sending the secret back to the AI chat.

Start tiny: Sandbox and a familiar map

An accessible first run is the standard sandbox gamemode and gm_construct or gm_flatgrass. Review the actual executable: Facepunch documents srcds_run on Linux, while x86-64 branch handling and native module support require version-specific verification. Place hostname, sensible player limits, passwords and ordinary options in garrysmod/cfg/server.cfg. Keep gamemode and map launch arguments explicit, then watch the console for a successful start rather than treating a background service icon as proof. Be ready to revert to the vanilla test if a Workshop map refuses to load.

Open game access, not the whole administration surface

Source-based server guides often mention UDP 27015, but exact game, query or optional connection requirements depend on the server's actual configuration. Inspect listening sockets, the host firewall and the hosting provider's rules before opening anything. Test from a real external game client on another network, not only a ping from the host. A private group may choose hidden discovery or a trusted private network, with clear documentation of how friends can join. Do not publish a root shell, remote desktop or a broad block of ports just because somebody is unable to connect.

Workshop collections can transform the whole evening

You can load a curated Workshop collection through Facepunch's documented host_workshop_collection setting. Begin with a few trusted addons and make sure the collection is accessible as required; record each collection ID, map version, addon author and dependency. TTT, Prop Hunt and DarkRP may need their own gamemode and content rules. A mismatched Lua addon or compiled binary can make clients download forever or break entire rounds. Test on a copied server, examine download logs and client console errors, and keep a known-good set ready for rollback after a patch.

Moderation is more than handing everyone admin powers

Give a few trusted people clearly scoped responsibilities: helping newcomers, removing abusive props, handling map votes and dealing with disruptive players. Extensions such as ULX and ULib may help when they are compatible with your current server version, but they are optional third-party code, not part of NodeMCP. Validate SteamID-based permissions and test restricted accounts before granting broader commands. Keep moderation logs private, communicate simple rules and avoid addons that request arbitrary operating-system privileges or install surprise services. AI assistance should never silently promote a user.

Run updates with a recovery plan, not random restarts

Facepunch issues regular Garry's Mod updates, and addon authors may take time to follow them. Plan a maintenance window, capture the current binary branch, Workshop manifest and configuration, then update with official SteamCMD. Re-test Sandbox first, then your selected gamemode, map and collection. A managed systemd service can restart after a crash and show logs, but avoid a reboot loop that masks a broken addon. NodeMCP can compare process health, memory consumption and log patterns; it should ask before changing binaries or firewall rules.

Back up what actually makes your server yours

The downloadable Steam server can be reinstalled, but your carefully curated world includes server.cfg, gamemode settings, locally authored Lua, map files, custom addon data, permissions and possibly game-specific persistence. List which data your chosen gamemode actually writes and take a consistent backup while it is safely saved or stopped. Encrypt a complete copy off-host with restricted access. Restore on an isolated machine and have two friends confirm that your chosen map, addons, rules and privileges behave as expected. A saved tar file is not enough proof if no one has tried to run the restored server.

A great first weekend has one map and a clear success test

Invite two friends into the plain Sandbox world. Build a silly vehicle, change the map, restart gracefully, reconnect and confirm that both players still see the expected collection and permissions. Only then add a tested TTT, Prop Hunt or roleplay mode. The best NodeMCP-assisted workflow turns one-off server commands into documented, repeatable steps with backup evidence and useful alerts. Your reward is not a complicated control panel, but a trusted playground where everybody can spend time creating things together.

Try this project prompt with NodeMCP

I own an authorized Linux device [DEVICE] connected to NodeMCP and want a private Garry's Mod server for [PLAYERS] friends. FIRST READ ONLY: inspect CPU, RAM, disk, network, installed services, firewall rules and backup destination. Consult current Facepunch Garry's Mod dedicated-server and Linux documentation. After my approval, create an unprivileged service account, install the genuine Garry's Mod Dedicated Server via anonymous SteamCMD AppID 4020, and confirm the correct release or x86-64 branch, launch executable and needed Linux libraries. Start a vanilla sandbox test on gm_construct with a private join policy. Help me obtain a legitimate Steam Game Server Login Token for GAME AppID 4000 through Steam's official interface; never disclose the token or embed it in a public script. Put server settings in garrysmod/cfg/server.cfg, review game/query traffic and ask before firewall changes. Test direct connections from two friends and a graceful restart. After approval add only vetted Workshop collections and test compatibility, downloads and map ownership on a disposable instance; do not install arbitrary Lua addons with elevated host rights. Require explicit permission for TTT/Prop Hunt/DarkRP changes and admin ULX/ULib role assignments. Back up configs, workshop IDs, custom addons, maps and persistence files as appropriate to encrypted OFF-HOST storage and prove restore on an isolated server. Report measured status and changes, not invented in-game results.

Official and project documentation

NodeMCP — documentation and getting started

Try this prompt

I own an authorized Linux device [DEVICE] connected to NodeMCP and want a private Garry's Mod server for [PLAYERS] friends. FIRST READ ONLY: inspect CPU, RAM, disk, network, installed services, firewall rules and backup destination. Consult current Facepunch Garry's Mod dedicated-server and Linux documentation. After my approval, create an unprivileged service account, install the genuine Garry's Mod Dedicated Server via anonymous SteamCMD AppID 4020, and confirm the correct release or x86-64 branch, launch executable and needed Linux libraries. Start a vanilla sandbox test on gm_construct with a private join policy. Help me obtain a legitimate Steam Game Server Login Token for GAME AppID 4000 through Steam's official interface; never disclose the token or embed it in a public script. Put server settings in garrysmod/cfg/server.cfg, review game/query traffic and ask before firewall changes. Test direct connections from two friends and a graceful restart. After approval add only vetted Workshop collections and test compatibility, downloads and map ownership on a disposable instance; do not install arbitrary Lua addons with elevated host rights. Require explicit permission for TTT/Prop Hunt/DarkRP changes and admin ULX/ULib role assignments. Back up configs, workshop IDs, custom addons, maps and persistence files as appropriate to encrypted OFF-HOST storage and prove restore on an isolated server. Report measured status and changes, not invented in-game results.

Illustrative workflow, not a record of completed tasks. Review privileged actions and keep backups.

Our ecosystemExplore partners ↗
✓
Copied