Skip to main content
Glama
inrok872-cyber

minecraft-paper-mcp

minecraft-paper-mcp

Paper Minecraftサーバーのバックエンドを管理するMCPサーバー — Minecraftサーバーと同じマシン上で動作し(ファイルへの直接アクセスとプロセス操作が可能)、RCON経由のゲーム内コマンドも併用できます

機能

  • プロセス制御: server_start, server_stop, server_restart, server_status

  • RCON / ゲーム内コマンド: rcon_command (任意の生コマンド), players_list, server_tps, server_say, player_kick, player_ban, player_pardon, player_op, player_deop, whitelist_add, whitelist_remove, give_item, teleport_player, set_gamerule, set_weather, set_time

  • ファイル読み取り: whitelist_list, ops_list, banned_players_list, banned_ips_list, server_properties_get, server_properties_set (反映には再起動が必要)

  • ログ: logs_tail (最新N行のログを表示), logs_search (regexでgrep)

Related MCP server: Minecraft Server MCP

インストール

Node.js 18 以上が必要です

cd minecraft-mcp
npm install
npm run build

Paperサーバーの準備

  1. Paperサーバーの server.properties でRCONを有効にします:

    enable-rcon=true
    rcon.port=25575
    rcon.password=ใส่รหัสผ่านที่ตั้งเอง_อย่าใช้ค่าว่าง
  2. 重要: RCONポートが外部に公開されている場合は、ファイアウォールで遮断してください — RCONは暗号化されていません。 MCPサーバーが同じマシンで動作する場合は、127.0.0.1(デフォルト)のみにバインドするべきです。

  3. RCON設定を反映するため、Paperサーバーを一度再起動します。

環境変数の設定

参考用に .env.example ファイルがあります — .env にコピーして実際の値を設定してください(.env ファイルは .gitignore に含まれているため、GitHubにコミットされません)。MCPサーバー自体は .env を自動で読み込みません (dotenvは使用していません)— claude_desktop_config.jsonenv で設定するか、実際に実行する前に変数をエクスポートしてください。 .env は自分用のメモとして値を記録しておくためのものです。

変数

デフォルト値

説明

MC_SERVER_DIR

カレントディレクトリ

Paperサーバーのフォルダへのパス(paper.jarserver.properties などを含む)

MC_START_COMMAND

java -Xmx4G -Xms2G -jar paper.jar nogui

サーバー起動コマンド(実際のRAM/jar名に合わせて調整)

MC_RCON_HOST

127.0.0.1

RCONのホスト

MC_RCON_PORT

25575

RCONのポート

MC_RCON_PASSWORD

(空)

RCONパスワード — server.properties と一致させる必要があります

MC_PID_FILE

<MC_SERVER_DIR>/.mc-server.pid

起動したプロセスのPIDを保存するファイル

Claude Desktopでの設定

claude_desktop_config.json に追加します:

{
  "mcpServers": {
    "minecraft-paper": {
      "command": "node",
      "args": ["/absolute/path/to/minecraft-mcp/build/index.js"],
      "env": {
        "MC_SERVER_DIR": "/absolute/path/to/paper-server",
        "MC_START_COMMAND": "java -Xmx6G -Xms2G -jar paper-1.21.jar nogui",
        "MC_RCON_PASSWORD": "รหัสผ่านเดียวกับใน server.properties"
      }
    }
  }
}

その後、Claude Desktopを再起動します。

CI

GitHub Actionsワークフロー(.github/workflows/build.yml)があり、main へのpushまたはPR作成のたびに Node 18.x と 20.x で npm install + npm run build を実行し、プロジェクトがビルドできることを確認します。 npm install の代わりに npm ci を使いたい場合は、自分のマシンで一度 npm install を実行して package-lock.json を生成し、そのファイルを事前にリポジトリへコミットしてください。

注記 / 注意事項

  • server_start/server_restart はdetachedプロセスとしてspawnし、PIDを MC_PID_FILE に保存します — 本格的なサービス(systemd)として実行する場合も使用できますが、MCPはsystemdが作成したプロセスを認識しません。 どちらかの方法を選択してください(このMCPにstart/stopを任せるか、systemdで管理してRCON/ファイルに依存するツールのみを使用するか)

  • server_stop はまずRCON経由で stop コマンドを送信します(グレースフル)。RCONに接続できない場合は SIGTERM にフォールバックします

  • server_properties_set はファイルを直接編集します。反映にはサーバーを自分で再起動する必要があります(自動再起動はしません)

  • ban/kick/whitelistコマンドはRCON経由で実行され、JSONファイルを直接編集しません — サーバー実行中はより安全です

Install Server
F
license - not found
B
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    Provides comprehensive administrator-level control for Minecraft Java Edition servers, allowing AI to manage world generation, server configuration, and player moderation. It enables remote execution of RCON commands, NBT data parsing, and automated backup management through the Model Context Protocol.
    40
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    Enables AI assistants to interact with and manage Minecraft servers through a standardized interface, supporting server monitoring, player management, log analysis, and command execution.
    11
    MIT

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/inrok872-cyber/minecraft-paper-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server