minecraft-mcp
⛏️ Minecraft MCPサーバー — AI搭載Minecraftエージェント
作成者: Soumyadeep (AI/MLリード)
これは何ですか?
これは、Model Context Protocol (MCP) を活用したMinecraft用AIエージェントです。MCP互換のAIクライアント(Claude Desktop、Cursor、Kiro、Windsurfなど)をMinecraftワールドに直接接続し、AIを完全に機能するゲーム内ボットに変身させます。
AIは移動、建築、クラフト、チャットができるだけでなく、単一のコマンドでスキーマファイルから構造物全体を即座に生成することも可能です。
Related MCP server: Minecraft MCP Server
✨ 新機能 — スキーマビルダー(目玉機能)
このフォークの最大の追加機能は、スキーマビルダーシステムです。これは、.schem / .schematic ファイルを使用して、大規模で複雑な構造物を数秒で構築できる3つの新しいMCPツールセットです。
AIが place-block を何百回も退屈に呼び出す(遅く、エラーが発生しやすく、間違いが多い)代わりに、以下の処理を行います:
バンドルされたスキーマファイルのライブラリを確認
ファイルを解析して、寸法とブロックを理解
/setblockコマンドのストリームをボット経由で送信し、クリエイティブモードで構造物全体を即座に構築 — インベントリもパスファインディングも不要で、失敗もありません
3つの新しいツール
ツール | 説明 |
| サーバーにバンドルされているすべての |
| スキーマファイルを検査します。ワールドに触れることなく、寸法、充填率、主要なブロックタイプを表示します。 |
| 高速な |
サポートされている形式
形式 | 拡張子 | 備考 |
Sponge Schematic |
| ✅ 主要形式 (WorldEdit, モダン) |
MCEdit Schematic |
| ✅ レガシー形式, 読み取り専用 |
NBT Structure |
| ✅ バニラMinecraft構造物ファイル |
AIによる使用方法
AIは常に最初にバンドルされたライブラリを確認するように指示されています。そのため、次のように伝えると:
"近くにバイキングの家を建てて"
AIは以下の手順を実行します:
list-schematicsを呼び出す →viking-house1を見つけるschematic-info("viking-house1")を呼び出す → 寸法を読み取るbuild-schematic("viking-house1", x, y, z)を呼び出す → 即座に生成する
手動でのブロック配置は不要です。幻覚による形状の崩れもありません。人間が設計した本物の構造物が数秒で完成します。
🛠️ 全ツールリファレンス
移動
ツール | 説明 |
| ボットの現在のワールド座標を取得 |
| 指定座標へのパスファインディング |
| ボットに指定座標を見させる |
| ボットをジャンプさせる |
| 指定方向に一定時間移動する |
| 指定座標へ直接飛行する |
建築 (スキーマ)
ツール | 説明 |
| ★ バンドルされたすべてのスキーマファイルを一覧表示 |
| スキーマのメタデータを検査 |
|
|
ブロック
ツール | 説明 |
| 指定位置にブロックを1つ配置 |
| ブロックを掘る/壊す |
| 指定座標のブロック情報を取得 |
| 指定タイプの近くのブロックを探す |
インベントリ & クラフト
ツール | 説明 |
| ボットのインベントリ内の全アイテムを一覧表示 |
| 特定のアイテムを探す |
| アイテムを装備する |
| クラフト可能なレシピを一覧表示 |
| アイテムをクラフトする |
| 詳細なレシピ情報を取得 |
| アイテムをクラフト可能か確認 |
| かまどでアイテムを精錬 |
エンティティ & チャット
ツール | 説明 |
| 近くのエンティティを探す |
| ゲーム内チャットメッセージを送信 |
| 最近のチャットメッセージを読み取る |
| 現在のゲームモードを検出 |
🚀 セットアップガイド
前提条件
Node.js ≥ 20.10.0
Git
Minecraft Java Edition (1.21.xでテスト済み)
MCP互換AIクライアント (Claude Desktop, Cursor, Kiroなど)
ステップ 1 — クローン & インストール
git clone https://github.com/soumyadeo/minecraft-mcp-server.git
cd minecraft-mcp-server
npm installステップ 2 — ビルド
npm run buildこれによりTypeScriptが dist/main.js にコンパイルされます。
ステップ 3 — スキーマファイルの追加 (推奨)
プロジェクトルートの schematics/ フォルダに .schem ファイルを配置します:
minecraft-mcp-server/
schematics/
smallhouse1.schem ← already included
viking-house1.schematic ← already included
my-castle.schem ← add your own!AIは list-schematics を通じて自動的にそれらを発見します。
ステップ 4 — MCPクライアントの設定
Claude Desktop
File → Settings → Developer → Edit Config を開き、以下を追加します:
{
"mcpServers": {
"minecraft": {
"command": "node",
"args": [
"C:\\path\\to\\minecraft-mcp-server\\dist\\main.js",
"--host", "localhost",
"--port", "25565",
"--username", "ClaudeBot"
]
}
}
}Cursor / VS Code (mcp.json)
{
"mcpServers": {
"minecraft": {
"command": "node",
"args": [
"C:\\path\\to\\minecraft-mcp-server\\dist\\main.js",
"--host", "localhost",
"--port", "25565",
"--username", "ClaudeBot"
],
"type": "stdio"
}
}
}
C:\path\to\を実際のPC上のパスに置き換えてください。
ステップ 5 — Minecraftの起動
Minecraft Java Edition を起動
シングルプレイヤーワールド を開くか作成
ESC → LANに公開 を押す
表示されたポート番号(通常は
25565)をメモするチャットでボットにオペレーター権限を付与:
/op ClaudeBot⚠️ スキーマビルダーが使用する
/setblockコマンドを機能させるには、オペレーター権限が必須です。
ステップ 6 — AIクライアントの再起動 & テスト
MCPクライアントを完全に再起動します(必要に応じてシステムトレイから終了してください)。ボットが自動的にゲームに参加するはずです。
テスト用プロンプト:
"利用可能なスキーマを確認し、現在の位置にsmallhouseを建てて。"
📦 スキーマの追加
スキーマライブラリは単なるフォルダです。構造物を追加するには:
オンラインで
.schemファイルを探す:Planet Minecraft — "schematic" で検索・フィルタリング
ゲーム内でWorldEditの
//copy+//schem saveコマンドを使用
minecraft-mcp-server/schematics/にファイルを配置MCPサーバーを再起動
AIは即座にそれを認識します。コードの変更は不要です。
⚙️ サーバー引数
引数 | デフォルト | 説明 |
|
| Minecraftサーバーのホスト名 |
|
| Minecraftサーバーのポート |
|
| ボットのゲーム内ユーザー名 |
node dist/main.js --host localhost --port 25565 --username ClaudeBot🏗️ アーキテクチャ
src/
main.ts — MCP server entry point, tool registration
bot-connection.ts — Mineflayer bot lifecycle management
tool-factory.ts — MCP tool registration wrapper
tools/
schematic-tools.ts — ★ Schematic builder (new)
block-tools.ts — Block placement & digging
position-tools.ts — Movement & pathfinding
inventory-tools.ts — Inventory management
crafting-tools.ts — Recipe lookup & crafting
furnace-tools.ts — Smelting
entity-tools.ts — Entity detection
chat-tools.ts — In-game chat
flight-tools.ts — Flight control
gamestate-tools.ts — Game mode detection
schematics/ — Bundled schematic file library
smallhouse1.schem
viking-house1.schematic主要ライブラリ:
mineflayer— Minecraftボットフレームワークprismarine-schematic— スキーマファイルパーサーmineflayer-pathfinder— パスファインディング@modelcontextprotocol/sdk— MCPサーバーSDK
yuniko-software/minecraft-mcp-server からフォークし、拡張しました。
🗺️ ロードマップ
[ ]
mode: "bot_place"—mineflayer-builderを使用したサバイバルモードでの物理的な建築[ ]
@kleppe/litematic-readerによる.litematic形式のサポート[ ]
search-and-buildツール — キーワードでスキーマを検索・ダウンロード[ ]
run-builder-script— 手続き型ビルドスクリプト(ピラミッド、ドームなど)の実行[ ] チェスト & ストレージツール
[ ] 村人取引ツール
[ ] 戦闘 & サバイバルツール
🤝 貢献
プルリクエストを歓迎します!ガイドラインについては CONTRIBUTING.md を参照してください。
📄 ライセンス
MIT — LICENSE を参照
作成・拡張者: Soumyadip Debnath (AI/MLリード) オリジナルプロジェクト: Yuniko Software
This server cannot be installed
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
- AlicenseBqualityDmaintenanceA Minecraft bot that allows Claude and other LLMs to control a Minecraft character through the Model Context Protocol, enabling AI to perform various in-game actions like movement, building, and interacting with the world.1623Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to control Minecraft bots through over 30 verified skills including navigation, resource gathering, and advanced building. It allows for multi-bot management and seamless integration with MCP clients to automate complex in-game tasks.75MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to control Minecraft bots via natural language commands by bridging a Python MCP server with a Node.js Mineflayer bridge. It supports a wide range of in-game actions including complex pathfinding, resource gathering, crafting, and combat.10MIT
- FlicenseNot gradedqualityCmaintenanceEnables controlling a semi-autonomous Minecraft bot via MCP, supporting tasks like movement, combat, farming, and chatting.
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
MCP server for AI dialogue using various LLM models via AceDataCloud
MCP server for Hailuo (MiniMax) AI video generation
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/soumyacodes007/minecraft-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server