Overview
What is CS2 RCON MCP?
It is a Model Context Protocol server for managing CS2 game servers via RCON, enabling remote control and monitoring through a standardized protocol using natural language.
How to use CS2 RCON MCP?
Install via Docker with environment variables HOST, SERVER_PORT, and RCON_PASSWORD. Run the container and connect from a client (VS Code or Cursor) using the SSE URL http://localhost:8080/cs2server/sse. Then issue natural‑language prompts to manage your server.
Key features of CS2 RCON MCP
- Manage your CS2 server in natural language
- Execute any RCON command
- List, host, and change workshop maps
- SSE‑based communication
- Docker support
Use cases of CS2 RCON MCP
- Add bots and start a competitive match on a specific map
- Check server status, player count, and current map
- Change to a workshop map by ID
- Host a workshop map for testing or events
FAQ from CS2 RCON MCP
What tools are available?
Five tools: rcon, status, list_workshop_maps, host_workshop_map, and workshop_changelevel.
What are the runtime requirements?
Python 3.8+ and Docker (recommended). The server runs as a container.
How do I store sensitive credentials?
Use a .server-env file containing HOST, SERVER_PORT, and RCON_PASSWORD, then pass it to Docker with --env-file.
What transport does the server use?
HTTP with Server‑Sent Events (SSE) at the endpoint /cs2server/sse.
How is authentication handled?
Authentication is via the RCON password set in the RCON_PASSWORD environment variable.