Skip to main content
Glama
goldsrc-query-mcp

goldsrc-query-mcp

goldsrc-query-mcp

npm version license CI E2E

AIアシスタントがGoldSrcゲームサーバー(Half-Life、Counter-Strike 1.6など)をgoldsrc-queryライブラリを使ってクエリできるようにするMCPサーバーです。


ツール

ツール

説明

ping

往復レイテンシ(ミリ秒)

get_server_info

サーバー名、マップ、プレイヤー数、VACステータスなど

get_players

現在のプレイヤーリスト(名前、スコア、ゲーム内時間)

get_rules

すべてのサーバーcvars

get_all

サーバー情報、プレイヤーリスト、ルールを1回の呼び出しで取得

send_rcon

単一のRCONコマンドを送信し、応答を返す

send_rcon_batch

単一の認証済み接続で複数のRCONコマンドを送信


Related MCP server: Steam MCP Server

インストール

npx goldsrc-query-mcp

またはグローバルにインストール:

npm install -g goldsrc-query-mcp

要件: Node.js >=20.12.0


使用方法

トランスポート

サーバーは、MCP_TRANSPORT環境変数(またはHTTP用の--httpフラグ)で選択される3つのトランスポートをサポートしています。

stdio(デフォルト)

node dist/index.js
# or
npx goldsrc-query-mcp

HTTP

MCP_TRANSPORT=http MCP_PORT=3000 node dist/index.js
# shorthand flag
node dist/index.js --http

HTTPS

MCP_TRANSPORT=https MCP_PORT=443 MCP_TLS_CERT=cert.pem MCP_TLS_KEY=key.pem node dist/index.js

MCP_TLS_CERTとMCP_TLS_KEYの両方を設定する必要があります。どちらかが欠けているとサーバーはエラーで終了します。

Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json(macOS)または%APPDATA%\Claude\claude_desktop_config.json(Windows)に追加:

{
  "mcpServers": {
    "goldsrc": {
      "command": "npx",
      "args": ["goldsrc-query-mcp"]
    }
  }
}

プロンプト例

  • 192.168.1.10:27015はどのマップを実行していますか?

  • cs.example.comのサーバーには何人のプレイヤーがいますか?

  • 自分のサーバーのすべてのcvarsを表示してください。

  • パスワードsecretを使用して、192.168.1.10の自分のサーバーでsv_gravity 800を実行してください。

  • 自分のサーバーで全ボットをキックし、マップをde_dust2に変更してください。


ツールリファレンス

すべてのツールはaddress(必須)、port(デフォルト27015)、timeout(デフォルト3000ミリ秒)を受け付けます。

ping

往復レイテンシをミリ秒で返します。

get_server_info

サーバーメタデータをJSONで返します - 名前、マップ、プレイヤー数、VACステータス、サーバータイプ、環境、オプションのEDFフィールド。

get_players

プレイヤーリストをJSONで返します - 各プレイヤーのインデックス、名前、スコア、滞在時間(ゲーム内秒数)。

get_rules

すべてのサーバーcvarsをJSONで返します - 総数と{ name, value }ペアのリスト。

get_all

サーバー情報、プレイヤーリスト、ルールを1回の呼び出しで返します。get_server_info、get_players、get_rulesを個別に呼び出す代わりにこれを使用してください。

send_rcon

address:  "192.168.1.10"
password: "your_rcon_password"
command:  "status"

単一のRCONコマンドを送信し、サーバーの応答を返します。

send_rcon_batch

address:  "192.168.1.10"
password: "your_rcon_password"
commands: ["sv_gravity 800", "mp_friendlyfire 1", "changelevel de_dust2"]

単一の認証済み接続で複数のRCONコマンドを送信します。{ command, response }ペアの配列を返します。複数のコマンドを実行する場合はsend_rconの代わりに使用してください。

Available Tools

7 tools
get_allGet AllA
Read-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 PlayersA
Read-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 RulesA
Read-only

Get all server cvars. Use to inspect server configuration.

Inputs: address (required), port, timeout.

get_server_infoGet Server InfoA
Read-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.

pingPingA
Read-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 RCONA
Destructive

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 BatchA
Destructive

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

    A4.2/5.0

    Scored across 7 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness5/5

    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

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables control and inspection of a Factorio 2.0 server via RCON, with tools for administration, player management, game state queries, and Lua execution.
      19
      ISC
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables 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.
      1
      MIT