CS2 RCON MCP logo

CS2 RCON MCP

Community
v9rt3x

CS2 RCON MCP - Server management tool for Counter-Strike 2

Publisherv9rt3x
Repositorycs2-rcon-mcp
LanguagePython
Forks
4
Stars
10
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    CS2 RCON MCP exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    10 stars and 4 forks from the linked repository.

CS2 RCON MCP

Python MCP Compatible License: MIT

A Model Context Protocol server for CS2 RCON management.

Description

This project provides a Model Context Protocol (MCP) server interface for managing CS2 game servers via RCON. It allows remote control and monitoring of CS2 servers through a standardized protocol.

CS2 RCON MCP Demo

Features

  • Manage your CS2 server in natural language
  • RCON command execution
  • Manage workshop maps (host, list, change) - Explore Workshop Maps
  • SSE-based communication
  • Docker support

Available Tools

ToolShort Description
rconExecute any RCON command
statusGet current server status
list_workshop_mapsList all workshop maps on the server
host_workshop_mapHost a workshop map by its ID
workshop_changelevelChange the map to a given workshop map

Installation

Environment Variables

  • HOST: CS2 server IP
  • SERVER_PORT: CS2 server port
  • RCON_PASSWORD: RCON password

Docker (recommended)

Pull the Docker image from GitHub Container Registry:

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

Docker Environment Variables

When running with Docker, you can set the environment variables in two ways:

  1. Directly in the command:

    bash
    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
  2. Using a .server-env file: Create a file named .server-env with the following content:

    HOST=your_server_ip
    SERVER_PORT=your_server_port
    RCON_PASSWORD=your_password

    Then run the container like this:

    bash
    docker run -p 8080:8080 --env-file .server-env ghcr.io/v9rt3x/cs2-rcon-mcp:latest

This provides users with an alternative method to set environment variables, making it easier to manage sensitive information like passwords.

Connecting from Visual Studio Code (GitHub Copilot)

To configure Visual Studio Code to work with the MCP server, follow these steps:

  1. Start the MCP Server: Ensure that your MCP server is running before attempting to connect from VS Code.

  2. Open Visual Studio Code: Launch VS Code and ensure that you have the GitHub Copilot extension installed and configured.

  3. Configure GitHub Copilot:

    • Change the mode from "Ask" to "Agent" mode.
  4. Add MCP Server Configuration:

    • Click on the toolbox icon in the upper left corner of the Copilot prompt.
    • Select "Add MCP Server" and choose the option for HTTP - server-sent events.
  5. Enter the Server URL:

    • For the URL, input: http://localhost:8080/cs2server/sse. This is the endpoint for the MCP server's SSE connection.

Alternative: Connecting from Cursor (or any other MCP-Client)

  1. Start the MCP server
  2. Configure Cursor's MCP settings by creating or updating ~/.cursor/mcp.json:
    json
    {
      "mcpServers": {
        "cs2server": {
          "url": "http://localhost:8080/cs2server/sse"
        }
      }
    }
  3. In Cursor, open the MCP panel (usually in the sidebar)
  4. The server should automatically connect using the configured URL

Once connected, you can manage your server in natural language.

Example prompts:

  1. "Add 5 bots to the server and start a competitive match on de_dust2"
  2. "What's the current server status? How many players are connected and what map are we on?"

Happy fragging! 😊

Use CS2 RCON MCP MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once CS2 RCON MCP is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add CS2 RCON MCP as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the CS2 RCON MCP MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "cs2-rcon-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the CS2 RCON MCP MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the CS2 RCON MCP MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use CS2 RCON MCP to help me with this task?
CS2 RCON MCP
Sure. I read it.
Here is what I found using CS2 RCON MCP.

Frequently asked questions

What is the CS2 RCON MCP MCP server used for?

CS2 RCON MCP is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use CS2 RCON MCP MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use CS2 RCON MCP with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use CS2 RCON MCP MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With CS2 RCON MCP connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect CS2 RCON MCP MCP to TypingMind?

CS2 RCON MCP runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does CS2 RCON MCP MCP provide in TypingMind?

CS2 RCON MCP exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use CS2 RCON MCP MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If CS2 RCON MCP requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇