mcp-minecraft
Minecraft MCPサーバー
[!IMPORTANT] 現在、Minecraftバージョン 1.21.11 をサポートしています。新しいバージョンではこのMCPサーバーが動作しない可能性がありますが、可能な限り早くサポートを追加する予定です。
https://github.com/user-attachments/assets/6f17f329-3991-4bc7-badd-7cde9aacb92f
大規模言語モデルと Mineflayer API を活用したMinecraftボットです。このボットは Model Context Protocol (MCP) を使用しており、Claudeやその他の対応モデルがMinecraftのキャラクターを操作できるようにします。
前提条件
Git
Node.js (>= 20.10.0)
実行中のMinecraftゲーム(以下のセットアップは、Microsoft Game Passに含まれるMinecraft 1.21.8 Java Editionでテスト済みです)
MCP互換クライアント。例としてClaude Desktopを使用しますが、他のMCPクライアントもサポートされています
Related MCP server: ainpcengine
はじめに
このボットは、Model Context Protocol (MCP) を通じてClaude Desktopで使用するように設計されています。
Minecraftの実行
シングルプレイヤーワールドを作成し、LANに公開します(ESC -> LANに公開)。ボットはポート 25565 とホスト名 localhost を使用して接続を試みます。これらのパラメータは、次のステップで claude_desktop_config.json に設定できます。
MCP設定
Claude Desktop がインストールされていることを確認してください。ファイル -> 設定 -> 開発者 -> 設定を編集 を開きます。インストールディレクトリが開くはずです。claude_desktop_config.json という名前のファイルを見つけ、以下のコードを挿入してください:
{
"mcpServers": {
"minecraft": {
"command": "npx",
"args": [
"-y",
"github:yuniko-software/minecraft-mcp-server",
"--host",
"localhost",
"--port",
"25565",
"--username",
"ClaudeBot"
]
}
}
}正しい --port および --host パラメータが使用されていることを再確認してください。Claude Desktopアプリケーションを完全に再起動(OSのトレイから終了させる必要があります)してください。
実行
Minecraftゲームが実行されており、ワールドがLANに公開されていることを確認してください。その後、Claude Desktopアプリケーションを起動すると、ボットがゲームに参加するはずです。
Claude DesktopがMCPサーバーを起動するまで時間がかかる場合があります。サーバーが正常に起動したことを示すマーカーは以下の通りです:
アクティブなClaude Desktopチャットを通じて、ボットに任意のコマンドを与えることができます。また、建物の画像をアップロードして、ボットにそれを作るように頼むこともできます 😁
プロンプト内で、ボットにMinecraftで何かをするように指示することを忘れないでください。そうすることでMCPサーバーを実行するトリガーとなります。許可を求められます。
Claude Sonnetを使用すると、興味深い結果が得られるかもしれません。ボットエージェントは非常に賢くなります 🫡
使用例: 共有されたClaudeチャット
利用可能なコマンド
Minecraftサーバーに接続すると、Claudeは以下のコマンドを使用できます:
移動
get-position- ボットの現在位置を取得するmove-to-position- 指定した座標へ移動するlook-at- ボットに特定の座標を見させるjump- ボットをジャンプさせるmove-in-direction- 指定した方向に一定時間移動する
飛行
fly-to- ボットを特定の座標へ直接飛ばす
インベントリ
list-inventory- ボットのインベントリ内の全アイテムをリストアップするfind-item- インベントリ内の特定のアイテムを探すequip-item- 特定のアイテムを装備する
ブロック操作
place-block- 指定した座標にブロックを設置するdig-block- 指定した座標のブロックを掘るget-block-info- ブロックに関する情報を取得するfind-blocks- 特定の種類の近くにあるブロックを1つ以上探す
かまど
smelt-item- かまどのようなブロックを使用してアイテムを精錬する
エンティティ操作
find-entity- 特定の種類の最も近いエンティティを探す
コミュニケーション
send-chat- ゲーム内でチャットメッセージを送信するread-chat- プレイヤーからの最近のチャットメッセージを取得する
ゲーム状態
detect-gamemode- ゲームのゲームモードを検出する
貢献
改善のためのプルリクエストやIssueの作成を歓迎します。リファクタリングのコミット、機能やテストへの貢献、Issueや議論は非常に感謝されます!
貢献を始めるには、CONTRIBUTING.md を参照してください。
⭐ このプロジェクトが役に立った場合は、GitHubでスターを付けることを検討してください! ⭐
あなたのサポートは、このプロジェクトを他の必要としている人々に知ってもらう助けになります。
Available Tools
22 toolscan-craftA
Check if the bot can craft a specific item with current inventory
Inputs: itemName (required).
craft-itemC
Craft an item using a crafting recipe
Inputs: outputItem (required), amount.
detect-gamemodeB
Detect the gamemode on game
Inputs: no named parameters.
dig-blockB
Dig a block at the specified position
Inputs: x (required), y (required), z (required).
equip-itemC
Equip a specific item
Inputs: itemName (required), destination.
find-blocksA
Find one or more nearby blocks of a specific type
Inputs: blockType (required), maxDistance, count.
find-entityB
Find the nearest entity of a specific type
Inputs: type, maxDistance.
find-itemB
Find a specific item in the bot's inventory
Inputs: nameOrType (required).
fly-toC
Make the bot fly to a specific position
Inputs: x (required), y (required), z (required).
get-block-infoB
Get information about a block at the specified position
Inputs: x (required), y (required), z (required).
get-positionA
Get the current position of the bot
Inputs: no named parameters.
get-recipeB
Get detailed information about a specific recipe
Inputs: itemName (required).
jumpB
Make the bot jump
Inputs: no named parameters.
list-inventoryA
List all items in the bot's inventory
Inputs: no named parameters.
list-recipesA
List all available crafting recipes the bot can make with current inventory
Inputs: outputItem.
look-atB
Make the bot look at a specific position
Inputs: x (required), y (required), z (required).
move-in-directionB
Move the bot in a specific direction for a duration
Inputs: direction (required), duration.
move-to-positionC
Move the bot to a specific position
Inputs: x (required), y (required), z (required), range, +1 more.
place-blockB
Place a block at the specified position
Inputs: x (required), y (required), z (required), faceDirection.
read-chatB
Get recent chat messages from players
Inputs: count.
send-chatB
Send a chat message in-game
Inputs: message (required).
smelt-itemB
Smelt items using a furnace-like block
Inputs: x (required), y (required), z (required), inputItem (required), +5 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 22 tools
Each tool targets a distinct action or query, with clear boundaries between checking and performing (e.g., can-craft vs craft-item, list-recipes vs get-recipe). Movement tools are differentiated by mode (fly vs walk).
All tools follow a consistent verb-noun pattern with hyphens, using imperative verbs like 'dig', 'place', 'find', 'list', 'craft'. No mixing of conventions or vague names.
22 tools cover a broad range of Minecraft bot operations without being overwhelming. Each tool serves a distinct purpose, and the count aligns well with the domain's complexity.
Covers core workflows: movement, block manipulation, inventory management, crafting, smelting, chat, and entity detection. Missing actions like attacking or dropping items are minor gaps that don't severely hinder typical tasks.
Maintenance
Related MCP Connectors
- mcp-soraDeprecatedio.github.AceDataCloud
MCP server for OpenAI Sora AI video generation
MCP server for Hailuo (MiniMax) AI video generation
MCP server for Grok Imagine AI video generation
MCP server for AI dialogue using various LLM models via AceDataCloud
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that lets Claude control a Minecraft bot with 40+ actions including movement, combat, crafting, and inventory management. Built on Mineflayer, it supports Microsoft authentication, pathfinding, and auto-reconnect.3MIT
- FlicenseNot gradedqualityCmaintenanceMCP server for creating, managing, and interacting with AI-powered NPCs with persistent memory, supporting dialogue, game events, and persona generation for coding agents.49 npm1-
- AlicenseNot gradedqualityBmaintenanceAn MCP server that enables Claude to generate Minecraft structures from natural language descriptions.1MIT
- AlicenseAqualityDmaintenanceA local MCP server that lets AI assistants control a Minecraft player on a local Paper server, enabling movement, block breaking/placing, combat, inventory management, chat, and op-level commands like teleport, gamemode, and summoning.27MIT