
Team Fortress 2
Dedicated Server Template
Team Fortress 2 is a free-to-play team-based first-person shooter from Valve featuring nine distinct classes across multiple game modes including Control Point, Payload, Capture the Flag, King of the Hill, and more.
Team Fortress 2 Game Server Hosting
Deploy and manage your own Team Fortress 2 dedicated server with GameCP's free game server control panel. This template provides a production-ready server configuration with one-click installation, automatic updates via SteamCMD, and full environment variable management. Whether you're hosting for a small group of friends or running a large community server, GameCP makes Team Fortress 2 server administration simple and reliable.
Resource Requirements
Recommended Players
Performance Tiers
Economy
Small server, 2-12 players
Standard
Medium server, 12-24 players
Pro
Large server, 24-32 players
Startup Command
Default
SRCDS startup for Team Fortress 2 dedicated server
Environment Variables
SERVER_NAME
RequiredServer Name
Server name displayed in the server browser
(empty)MAX_PLAYERS
RequiredMax Players
Maximum number of concurrent players
24STEAM_TOKEN
Game Server Login Token
Create one with App ID `440` at [Steam GSLT Management](https://steamcommunity.com/dev/managegameservers) to publicly list your server.
(empty)SERVER_CONTACT
Server Contact
Contact info for server administrator shown in server browser
(empty)PURE_MODE
sv_pure Mode
File consistency mode. 0 = allow all custom content, 1 = use whitelist (default), 2 = strict pure (no custom content)
1SRCDS_MAP
RequiredStart Map
The map loaded when the server starts
cp_dustbowlRCON_PASSWORD
RequiredRCON Password
Password for remote console (RCON) access
(empty)SERVER_PASSWORD
Server Password
If set, players will be required to enter this password to join the server
(empty)AUTO_UPDATE
Auto Update on Start
Automatically update the server via SteamCMD before each start
0Configuration Files
Server Config
Main server configuration file (server.cfg)
tf/cfg/server.cfgtextMOTD
Message of the Day shown to players when joining (HTML format)
tf/cfg/motd.txttextMOTD Text
Plain text Message of the Day fallback
tf/cfg/motd_text.txttextMap Cycle
Map rotation cycle used by the server
tf/cfg/mapcycle.txttextContainer Configuration
Docker Image
ghcr.io/ptero-eggs/games:source
Technical Profile
Template ID
team-fortress-2
Author
GameCP Team
Last Updated
March 13, 2026
Status
ActiveConfiguration Metadata
Information about the origin and version of this game configuration.