Skip to main content
Glama

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

Related MCP server: MCSManager MCP Server

Setup

  1. Clone and install dependencies:

npm install
npm run build
  1. Configure your Minecraft server RCON:

# server.properties
rcon.port=25575
rcon.password=your_password
enable-rcon=true
  1. Add to OpenCode config (~/.config/opencode/opencode.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

Available Tools

9 tools
mc_check_connectionA

Check RCON connection status

Inputs: no named parameters.

mc_deopA

Remove operator status from a player

Inputs: player (required).

mc_execute_as_opA

Execute a command as an online operator. Automatically selects an online op if only one exists, otherwise requires specifying which op to use.

Inputs: command (required), op.

mc_execute_commandC

Execute a Minecraft command on the server via RCON

Inputs: command (required).

mc_get_server_infoA

Get server information (TPS, version)

Inputs: no named parameters.

mc_list_playersA

List all online players on the server

Inputs: no named parameters.

mc_opA

Give a player operator status

Inputs: player (required).

mc_whitelist_addA

Add a player to the server whitelist

Inputs: player (required).

mc_whitelist_removeA

Remove a player from the server whitelist

Inputs: player (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    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 recent community issues

    Related MCP Connectors

    Related MCP Servers