Skip to main content
Glama

Minecraft MCP-сервер


[!IMPORTANT] В настоящее время поддерживается версия Minecraft 1.21.11. Более новые версии могут не работать с этим MCP-сервером, но мы добавим поддержку как можно скорее.

https://github.com/user-attachments/assets/6f17f329-3991-4bc7-badd-7cde9aacb92f

Бот для Minecraft, работающий на базе больших языковых моделей и Mineflayer API. Этот бот использует Model Context Protocol (MCP), чтобы позволить Claude и другим поддерживаемым моделям управлять персонажем в Minecraft.

Предварительные требования

  • Git

  • Node.js (>= 20.10.0)

  • Запущенная игра Minecraft (настройка ниже была протестирована с Minecraft 1.21.8 Java Edition, входящей в состав Microsoft Game Pass)

  • MCP-совместимый клиент. В качестве примера будет использоваться Claude Desktop, но поддерживаются и другие MCP-клиенты

Related MCP server: ainpcengine

Начало работы

Этот бот предназначен для использования с Claude Desktop через протокол Model Context Protocol (MCP).

Запуск Minecraft

Создайте одиночный мир и откройте его для локальной сети (ESC -> Открыть для сети). Бот попытается подключиться, используя порт 25565 и хост localhost. Эти параметры можно настроить в claude_desktop_config.json на следующем шаге.

Настройка MCP

Убедитесь, что Claude Desktop установлен. Откройте File -> Settings -> Developer -> Edit Config. Должна открыться директория установки. Найдите файл с именем 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 (оно должно быть закрыто в системном трее).

Запуск

Убедитесь, что игра Minecraft запущена и мир открыт для локальной сети. Затем запустите приложение 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 — найти один или несколько ближайших блоков определенного типа

Печь

  • smelt-item — переплавить предметы, используя блок типа печи

Взаимодействие с сущностями

  • find-entity — найти ближайшую сущность определенного типа

Общение

  • send-chat — отправить сообщение в игровой чат

  • read-chat — получить последние сообщения чата от игроков

Состояние игры

  • detect-gamemode — определить игровой режим в игре

Участие в разработке

Не стесняйтесь отправлять pull-реквесты или открывать issues для улучшений. Любые коммиты по рефакторингу, функциональные и тестовые вклады, вопросы и обсуждения очень приветствуются!

Чтобы начать помогать проекту, пожалуйста, ознакомьтесь с 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