Home / MCP / CS2 RCON MCP Server

CS2 RCON MCP Server

Provides an MCP server interface for CS2 RCON management, including status access and workshop map controls via SSE.

other
Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
    "mcpServers": {
        "cs2server": {
            "url": "http://localhost:8080/cs2server/sse"
        }
    }
}

You can manage CS2 game servers remotely using the MCP server interface. It exposes RCON control, status access, and workshop map management through a single, standardized connection, making it easy to automate tasks and monitor your server from any MCP client.

How to use

Connect with an MCP client to start issuing natural-language commands and receive live feedback about your CS2 server. The server supports HTTP-based SSE connections for real-time updates. Use the client’s MCP panel to add the server endpoint and then begin issuing prompts like asking for the current status, executing RCON commands, or managing workshop maps.

How to install

Prerequisites: you need Docker installed on your host to run the MCP server image.

Install and run the MCP server in Docker with the following commands.

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

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:latest

Additional content

Configuration and access details are provided below to help you connect with MCP clients, manage environment variables securely, and understand available tools.

{
  "mcpServers": {
    "cs2server": {
      "type": "http",
      "name": "cs2server",
      "url": "http://localhost:8080/cs2server/sse",
      "args": []
    }
  }
}

Security and environment

Protect your RCON password and server access by using trusted networks and rotating credentials regularly. Only expose the MCP SSE URL to clients you control, and manage environment variables through secure deployment practices.

Available tools

rcon

Execute any RCON command on the CS2 server to perform in-game actions or query status.

status

Retrieve current server status, including player count and active map.

list_workshop_maps

List all workshop maps available on the server.

host_workshop_map

Host a workshop map by its ID on the server.

workshop_changelevel

Change the active map to a specified workshop map.