minecraft-paper-mcp
minecraft-paper-mcp
Paper Minecraftサーバーのバックエンドを管理するMCPサーバー — Minecraftサーバーと同じマシン上で動作し(ファイルへの直接アクセスとプロセス操作が可能)、RCON経由のゲーム内コマンドも併用できます
機能
プロセス制御:
server_start,server_stop,server_restart,server_statusRCON / ゲーム内コマンド:
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 buildPaperサーバーの準備
Paperサーバーの
server.propertiesでRCONを有効にします:enable-rcon=true rcon.port=25575 rcon.password=ใส่รหัสผ่านที่ตั้งเอง_อย่าใช้ค่าว่าง重要: RCONポートが外部に公開されている場合は、ファイアウォールで遮断してください — RCONは暗号化されていません。 MCPサーバーが同じマシンで動作する場合は、
127.0.0.1(デフォルト)のみにバインドするべきです。RCON設定を反映するため、Paperサーバーを一度再起動します。
環境変数の設定
参考用に .env.example ファイルがあります — .env にコピーして実際の値を設定してください(.env ファイルは
.gitignore に含まれているため、GitHubにコミットされません)。MCPサーバー自体は .env を自動で読み込みません
(dotenvは使用していません)— claude_desktop_config.json の env で設定するか、実際に実行する前に変数をエクスポートしてください。
.env は自分用のメモとして値を記録しておくためのものです。
変数 | デフォルト値 | 説明 |
| カレントディレクトリ | Paperサーバーのフォルダへのパス( |
|
| サーバー起動コマンド(実際のRAM/jar名に合わせて調整) |
|
| RCONのホスト |
|
| RCONのポート |
| (空) | RCONパスワード — |
|
| 起動したプロセスの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ファイルを直接編集しません — サーバー実行中はより安全です
Maintenance
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
- FlicenseNot gradedqualityDmaintenanceEnables control of a Minecraft server through RCON commands via natural language, including game commands, chat-based AI interactions, and server management capabilities.6
- AlicenseBqualityDmaintenanceProvides 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.40MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to interact with and manage Minecraft servers through a standardized interface, supporting server monitoring, player management, log analysis, and command execution.11MIT
- AlicenseAqualityDmaintenanceEnables Minecraft server management via RCON: execute commands, list players, get server info, manage whitelist and operators.91MIT
Related MCP Connectors
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
A MCP server built for developers enabling Git based project management with project and personal…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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