
RustMCP
MCP server for Rust game servers
Let an AI agent (Claude, Codex, Cursor) look after your Rust server over WebRCON
install
agent
method
Fills in the commands below. Nothing leaves your browser.
1. Install uv. On Windows: powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
curl -LsSf https://astral.sh/uv/install.sh | sh2. Add the server:
claude mcp add RustMCP -e RCON_HOST=127.0.0.1 -e RCON_PORT=28016 -e RCON_PASSWORD=your-rcon-password -- uvx RustMCP
Your Rust server needs rcon.web 1 (the default). Add ALLOW_RAW_COMMANDS=true to env to enable the rcon tool.
tools
server_info— hostname, players, fps, maplist_players— online players as JSONconsole_tail— last console lineschat_tail— last chat messagesfind_command— search commands and variablessay— message to global chatreload_plugin— reload an Oxide or Carbon plugin, returns compile errorsrcon— any command, off unless ALLOW_RAW_COMMANDS=true
good to know
- Even with raw commands on,
quit,restart,ownerid,kickalland changes torcon.*are blocked. - 5 wrong passwords ban your IP from RCON for 5 minutes. RustMCP never retries a rejected login.
- Chat and player names are written by players: keep raw commands off unless you need them.