Skip to main content
Glama

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 tools
can-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

    B3.4/5.0

    Scored across 22 tools

    Disambiguation5/5

    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).

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An 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.
      3
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      MCP server for creating, managing, and interacting with AI-powered NPCs with persistent memory, supporting dialogue, game events, and persona generation for coding agents.
      49 npm
      1
      -
    • A
      license
      A
      quality
      D
      maintenance
      A 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.
      27
      MIT