Skip to main content
Glama
README.md
# mc-rcon-mcp

Minecraft RCON MCP Server for OpenCode

## Features

- Execute Minecraft commands via RCON
- List online players
- Get server info (TPS, version)
- Whitelist management
- Operator management

## Setup

1. Clone and install dependencies:
```bash
npm install
npm run build
```

2. Configure your Minecraft server RCON:
```properties
# server.properties
rcon.port=25575
rcon.password=your_password
enable-rcon=true
```

3. Add to OpenCode config (`~/.config/opencode/opencode.json`):
```json
{
  "mcp": {
    "mc-rcon": {
      "type": "local",
      "command": ["node", "/path/to/mc-rcon-mcp/dist/index.js"],
      "enabled": true,
      "environment": {
        "MC_RCON_HOST": "127.0.0.1",
        "MC_RCON_PORT": "25575",
        "MC_RCON_PASSWORD": "your_password"
      }
    }
  }
}
```

## Available Tools

| Tool | Description |
|------|-------------|
| `mc_execute_command` | Execute a Minecraft command |
| `mc_list_players` | List online players |
| `mc_get_server_info` | Get server TPS and version |
| `mc_whitelist_add` | Add player to whitelist |
| `mc_whitelist_remove` | Remove player from whitelist |
| `mc_op` | Give player operator status |
| `mc_deop` | Remove player operator status |
| `mc_check_connection` | Check RCON connection status |

## Usage

```
list server players use mc-rcon
```

or

```
execute command "give @p diamond 1" use mc-rcon
```

TDQS

A3.6/5.0

Scored across 9 tools

Disambiguation4/5

Most tools have clearly distinct purposes (execute, list players, get info, whitelist, op, connection check). The only potential confusion is between mc_execute_command and mc_execute_as_op, but the descriptions clarify the difference, making misselection unlikely.

Naming Consistency4/5

All tools share the 'mc_' prefix and mostly follow a verb_noun pattern (e.g., mc_list_players, mc_whitelist_add). A few names like mc_op and mc_deop are shorthand rather than verb_noun, and mc_execute_as_op includes a preposition, creating minor inconsistencies but the pattern is still readable and predictable.

Tool Count5/5

With 9 tools, the server covers RCON command execution and common admin operations without being bloated. Each tool serves a clear management function, and the number is well within the ideal range for a focused server.

Completeness4/5

The tool set covers essential RCON features: command execution, player listing, server info, whitelist management, op management, and connection checking. Minor gaps exist like ban/unban or whitelist listing, but these are not critical for basic server administration and can be worked around via mc_execute_command.

Maintenance

ActivityInactive
ResponsivenessNo issues