goldsrc-query-mcp
This MCP server lets AI assistants query and control GoldSrc game servers (Half-Life, Counter-Strike 1.6, etc.).
ping: Measure round-trip latency to check server reachability.
get_server_info: Retrieve server metadata (name, map, player counts, VAC status, etc.).
get_players: List current players with names, scores, and time in-game.
get_rules: Fetch all server cvars (configuration variables).
get_all: Combine server info, players, and rules in one request.
send_rcon: Execute a single RCON command (e.g.,
sv_gravity 800).send_rcon_batch: Run multiple RCON commands over one authenticated connection, returning per-command responses.
Provides tools to query GoldSrc game servers (including Counter-Strike 1.6) for server information, player lists, rules, latency, and to send RCON commands.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@goldsrc-query-mcp What map is 192.168.1.10:27015 running?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
goldsrc-query-mcp
An MCP server that lets AI assistants query GoldSrc game servers (Half-Life, Counter-Strike 1.6, etc.) using the goldsrc-query library.
Tools
Tool | Description |
| Round-trip latency in milliseconds |
| Server name, map, player counts, VAC status, and more |
| Current player list with names, scores, and time in-game |
| All server cvars |
| Server info, player list, and rules in one call |
| Send a single RCON command and return the response |
| Send multiple RCON commands over a single authenticated connection |
Related MCP server: Steam MCP Server
Installation
npx goldsrc-query-mcpOr install globally:
npm install -g goldsrc-query-mcpRequirements: Node.js >=20.12.0
Usage
Transports
The server supports three transports selected via the MCP_TRANSPORT environment variable (or the --http flag for HTTP).
stdio (default)
node dist/index.js
# or
npx goldsrc-query-mcpHTTP
MCP_TRANSPORT=http MCP_PORT=3000 node dist/index.js
# shorthand flag
node dist/index.js --httpHTTPS
MCP_TRANSPORT=https MCP_PORT=443 MCP_TLS_CERT=cert.pem MCP_TLS_KEY=key.pem node dist/index.jsMCP_TLS_CERT and MCP_TLS_KEY must both be set; the server exits with an error if either is missing.
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"goldsrc": {
"command": "npx",
"args": ["goldsrc-query-mcp"]
}
}
}Example prompts
"What map is
192.168.1.10:27015running?""How many players are on the server at
cs.example.com?""Show me all the cvars on my server."
"Run
sv_gravity 800on my server at192.168.1.10with passwordsecret.""Kick all bots and change the map to de_dust2 on my server."
Tool reference
All tools accept address (required), port (default 27015), and timeout (default 3000ms).
ping
Returns the round-trip latency in milliseconds.
get_server_info
Returns server metadata as JSON - name, map, player counts, VAC status, server type, environment, and optional EDF fields.
get_players
Returns the player list as JSON - index, name, score, and duration (seconds in-game) per player.
get_rules
Returns all server cvars as JSON - total count and a list of { name, value } pairs.
get_all
Returns server info, player list, and rules in a single call. Use this instead of calling get_server_info, get_players, and get_rules separately.
send_rcon
address: "192.168.1.10"
password: "your_rcon_password"
command: "status"Sends a single RCON command and returns the server response.
send_rcon_batch
address: "192.168.1.10"
password: "your_rcon_password"
commands: ["sv_gravity 800", "mp_friendlyfire 1", "changelevel de_dust2"]Sends multiple RCON commands over a single authenticated connection. Returns an array of { command, response } pairs. Use instead of send_rcon when running more than one command.
Available Tools
7 toolsget_allGet AllARead-only
Get server info, player list, and rules in one call. Use this instead of calling get_server_info, get_players, and get_rules separately.
Inputs: address (required), port, timeout.
get_playersGet PlayersARead-only
Get the current player list with names, scores, and time in-game. Use to see who is on a server.
Inputs: address (required), port, timeout.
get_rulesGet RulesARead-only
Get all server cvars. Use to inspect server configuration.
Inputs: address (required), port, timeout.
get_server_infoGet Server InfoARead-only
Get server metadata: name, map, player counts, VAC status, and more. Use to get an overview of a server or check if it is online.
Inputs: address (required), port, timeout.
pingPingARead-only
Measure round-trip latency to a GoldSrc server. Use to check if a server is reachable and responsive.
Inputs: address (required), port, timeout.
send_rconSend RCONADestructive
Send a single RCON command and return the response. Use for one-off commands; prefer send_rcon_batch when sending multiple commands.
Inputs: address (required), command (required), password (required), port, +1 more.
send_rcon_batchSend RCON BatchADestructive
Send multiple RCON commands over a single authenticated connection. Use instead of rcon when running more than one command.
Inputs: address (required), commands (required), password (required), port, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a clearly distinct purpose: ping for latency, get_server_info for metadata, get_players for player list, get_rules for cvars, get_all for a combined query, and send_rcon/send_rcon_batch for command execution. The descriptions explicitly clarify when to use each, especially distinguishing the single vs. batch RCON tools and the combined vs. individual getters.
All tool names follow a consistent verb_noun pattern with lowercase and underscores: ping, get_*, send_*. This makes the toolset predictable and easy to navigate.
With 7 tools, the server is well-scoped. Each tool serves a necessary function for querying and managing a GoldSrc server, with no redundancy or excessive bloat.
The toolset covers the full lifecycle of interacting with a GoldSrc server: checking reachability (ping), retrieving server info, players, and rules, fetching everything in one call, and sending RCON commands in both single and batch modes. There are no obvious gaps.
Maintenance
Related MCP Connectors
Search game servers (Minecraft, Rust, FiveM and more), see votes and stats, edit your own listing.
Manage game servers, configurations, players, and groups through the GameServerApp MCP server.
Health checks for public MCP servers: status, latency, tools, and uptime.
Trust, freshness, policy, and discovery layer for public MCP servers.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables Minecraft server management via RCON: execute commands, list players, get server info, manage whitelist and operators.91MIT
- AlicenseAqualityBmaintenanceEnables interaction with Steam: search games, get store details, reviews, prices, discounts, news, and player profiles, libraries, and achievements via the Steam Web API.26256 npm5MIT
- AlicenseAqualityDmaintenanceEnables control and inspection of a Factorio 2.0 server via RCON, with tools for administration, player management, game state queries, and Lua execution.19ISC
- AlicenseNot gradedqualityDmaintenanceEnables Claude to programmatically control a local TF2/SourceMod game server: query live state, run commands, compile and hot-load plugins, stream telemetry, debug runtime errors, and write ephemeral scripts through the full SourceMod native API.1MIT