CS2 RCON MCP Server

Integrations

  • Provides containerized deployment of the CS2 RCON MCP server with configurable environment variables for server connection settings

  • Offers Docker image hosting through GitHub Container Registry for simplified deployment of the CS2 RCON MCP server

  • Supports running the CS2 RCON MCP server using Python 3.8+ for those who prefer direct installation rather than Docker

CS2 RCON MCP

CS2 RCON 管理用のモデル コンテキスト プロトコル サーバー。

説明

このプロジェクトは、RCON経由でCS2ゲームサーバーを管理するためのモデルコンテキストプロトコル(MCP)サーバーインターフェースを提供します。これにより、標準化されたプロトコルを介してCS2サーバーのリモート制御と監視が可能になります。

特徴

  • 自然言語でCS2サーバーを管理する
  • RCONコマンド実行
  • サーバーステータス監視
  • SSEベースの通信
  • Dockerサポート

インストール

pip install -e .

使用法

サーバーの実行

python -m rcon_mcp

利用可能なコマンド

  • rcon <command> : 任意のRCONコマンドを実行する
  • status : 現在のサーバーステータスを取得する
  • changelevel <map_name> : 現在のマップを変更する
  • mp_warmup_end : ウォームアップフェーズを終了する
  • mp_restartgame 1 : ゲームを再開する
  • その他多くのCS2サーバーコマンド

環境変数

  • HOST : CS2サーバIP
  • SERVER_PORT : CS2サーバポート
  • RCON_PASSWORD : RCONパスワード

Docker(推奨)

GitHub Container Registry から Docker イメージをプルします。

docker pull ghcr.io/v9rt3x/cs2-rcon-mcp:main

Docker環境変数

Docker で実行する場合、環境変数は次の 2 つの方法で設定できます。

  1. コマンド内で直接
    docker run -p 8080:8080 \ -e HOST=your_server_ip \ -e SERVER_PORT=your_server_port \ -e RCON_PASSWORD=your_password \ ghcr.io/v9rt3x/cs2-rcon-mcp:main
  2. .server-envファイルの使用: 次の内容を含む.server-envという名前のファイルを作成します。
    HOST=your_server_ip SERVER_PORT=your_server_port RCON_PASSWORD=your_password
    次に、次のようにコンテナを実行します。
    docker run -p 8080:8080 --env-file .server-env ghcr.io/v9rt3x/cs2-rcon-mcp:main

これにより、ユーザーに環境変数を設定するための代替方法が提供され、パスワードなどの機密情報の管理が容易になります。

Visual Studio Code からの接続 (GitHub Copilot)

Visual Studio Code を MCP サーバーで動作するように構成するには、次の手順に従います。

  1. MCP サーバーを起動します。VS Code から接続する前に、MCP サーバーが実行されていることを確認します。
  2. Visual Studio Code を開く: VS Code を起動し、GitHub Copilot 拡張機能がインストールされ、構成されていることを確認します。
  3. GitHub Copilot を構成する:
    • モードを「質問」モードから「エージェント」モードに変更します。
  4. MCP サーバー構成を追加します:
    • Copilot プロンプトの左上隅にあるツールボックス アイコンをクリックします。
    • 「MCP サーバーの追加」を選択し、 HTTP - サーバー送信イベントのオプションを選択します。
  5. サーバーURLを入力してください:
    • URLにはhttp://localhost:8080/cs2server/sseと入力します。これはMCPサーバーのSSE接続のエンドポイントです。

代替案: カーソル (またはその他の MCP クライアント) からの接続

  1. MCPサーバーを起動する
  2. ~/.cursor/mcp.jsonを作成または更新して、カーソルの MCP 設定を構成します。
    { "mcpServers": { "cs2server": { "url": "http://localhost:8080/cs2server/sse" } } }
  3. カーソルで、MCPパネルを開きます(通常はサイドバーにあります)
  4. サーバーは設定されたURLを使用して自動的に接続するはずです

接続すると、自然言語でサーバーを管理できます。

プロンプトの例:

  1. 「サーバーにボットを5台追加し、de_dust2で競争マッチを開始してください」
  2. 「現在のサーバーの状態はどうですか?接続しているプレイヤーは何人で、どのマップにいるのですか?」

楽しいフラグリングを!😊

-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

自然言語を使用した RCON コマンドを介して Counter-Strike 2 ゲーム サーバーを管理できるモデル コンテキスト プロトコル サーバー。

  1. Description
    1. Features
      1. Installation
        1. Usage
          1. Running the Server
          2. Available Commands
        2. Environment Variables
          1. Docker (recommended)
            1. Docker Environment Variables
            2. Connecting from Visual Studio Code (GitHub Copilot)
            3. Alternative: Connecting from Cursor (or any other MCP-Client)

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            A Model Context Protocol server that provides tools for code modification and generation via Large Language Models, allowing users to create, modify, rewrite, and delete files using structured XML instructions.
            Last updated -
            12
            Python
            MIT License
            • Linux
            • Apple
          • -
            security
            F
            license
            -
            quality
            A Model Context Protocol server for Unity game development that enables users to manage projects, edit scenes, create prefabs, and generate scripts through natural language integration with Smithery.ai.
            Last updated -
            TypeScript
          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol server that enables interaction with Foundry tools through natural language, allowing users to create projects, build contracts, run tests, and manage Ethereum development environments.
            Last updated -
            Python
            MIT License
          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol server that enables Large Language Models to interact with Binary Ninja for reverse engineering tasks like viewing assembly code, decompiled code, renaming functions, and adding comments.
            Last updated -
            Python
            MIT License
            • Linux
            • Apple

          View all related MCP servers

          ID: csaxixrrpi