Back to Templates
Team Fortress 2
Team Fortress 2
GameCP OfficialFPS
Verified

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.

v20
2/25/2026

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.

Free Control PanelOne-Click DeployAuto UpdatesDocker Containerized
Full Hosting Guide

Ready to host Team Fortress 2?

Read our complete step-by-step guide covering installation, configuration, performance tuning, and getting your server online in minutes.

Resource Requirements

CPU Cores
2
Memory
1.0 GB(max 2 GB)
Storage
10 GB

Recommended Players

24
Recommended
Min: 2Max: 32

Performance Tiers

Economy

Small server, 2-12 players

RAM1 GB
CPU Shares256
Recommended

Standard

Public server, 12-24 players

RAM1 GB
CPU Shares512

Pro

Full 32-slot or MvM server

RAM2 GB
CPU Shares1024

Startup Command

#!/bin/bashBash shell with full features

Default

SRCDS startup for Team Fortress 2 dedicated server

Default

Environment Variables

SERVER_NAME

Required

Server Name

Server name displayed in the server browser

Default
(empty)

MAX_PLAYERS

Required

Max Players

Maximum number of concurrent players

Default
24

STEAM_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.

Default
(empty)

SERVER_CONTACT

Server Contact

Contact info for server administrator shown in server browser

Default
(empty)

PURE_MODE

sv_pure Mode

File consistency mode. 0 = allow all custom content, 1 = use whitelist (default), 2 = strict pure (no custom content)

Default
1

SRCDS_MAP

Required

Start Map

The map loaded when the server starts

Default
cp_dustbowl

RCON_PASSWORD

Required

RCON Password

Password for remote console (RCON) access

Default
(empty)

SERVER_PASSWORD

Server Password

If set, players will be required to enter this password to join the server

Default
(empty)

AUTO_UPDATE

Auto Update on Start

Automatically update the server via SteamCMD before each start

Default
0

Configuration Files

Server Config

Main server configuration file (server.cfg)

tf/cfg/server.cfgtext
0 fields

MOTD

Message of the Day shown to players when joining (HTML format)

tf/cfg/motd.txttext
0 fields

MOTD Text

Plain text Message of the Day fallback

tf/cfg/motd_text.txttext
0 fields

Map Cycle

Map rotation cycle used by the server

tf/cfg/mapcycle.txttext
0 fields

Container Configuration

Docker Image

ghcr.io/ptero-eggs/games:source

Technical Profile

Template ID

team-fortress-2

Author

GameCP Team

Last Updated

February 25, 2026

Status

Active

Configuration Metadata

Information about the origin and version of this game configuration.

Author

GameCP Team

Version

1

Source

gamecp