Skip to main content
Glama

minecraft-mcp

A Minecraft bot controlled by Claude over MCP (Model Context Protocol), built on Mineflayer. Give Claude Desktop natural-language commands and it'll move, mine, build, fight, and chat in-game.

This is a personal fork/setup based on yuniko-software/minecraft-mcp-server.

IMPORTANT

Tested against Minecraft 1.21.11. Newer versions may not work until support is added.

Prerequisites

  • Git

  • Node.js >= 20.10.0

  • A running Minecraft world (Java Edition, singleplayer opened to LAN)

  • Claude Desktop with Developer Mode enabled (Settings → Developer)

Related MCP server: Renge Bot

Setup

git clone https://github.com/gitnoah1/mc-claudemcp.git
cd mc-claudemcp
npm install
npm run build

Running

  1. Open your Minecraft world to LAN In-game: Esc → Open to LAN. Note the port (default 25565).

  2. Add the server to Claude Desktop's config Settings → Developer → Edit Config opens claude_desktop_config.json. Add:

    {
      "mcpServers": {
        "minecraft": {
          "command": "node",
          "args": ["C:\\Users\\vanes\\Downloads\\mc-claudemcp\\dist\\main.js"],
          "env": {
            "MINECRAFT_HOST": "localhost",
            "MINECRAFT_PORT": "25565",
            "MINECRAFT_USERNAME": "ClaudeBot"
          }
        }
      }
    }

    Adjust the path, host, and port to match your setup.

  3. Fully restart Claude Desktop (quit from the tray, not just close the window).

  4. Start a chat and tell Claude to do something in Minecraft — mentioning Minecraft in the prompt is what triggers the tool call and permission prompt.

Available Tools

Movementget-position, move-to-position, look-at, jump, move-in-direction Flightfly-to Inventorylist-inventory, find-item, equip-item Blocksplace-block, dig-block, get-block-info, find-block Furnacesmelt-item Entitiesfind-entity Chatsend-chat, read-chat Game statedetect-gamemode

Notes

  • First tool call after Claude Desktop boots can be slow — the MCP server is spinning up.

  • Claude will ask permission before controlling the bot the first time each session.

  • Works best with Claude Sonnet/Opus for more complex build requests (you can even feed it a reference image).

Credits

Built on mineflayer ps bash your head agasit a rock love noah

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
1Releases (12mo)
Commit activity

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    A 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.
    16
    42
    Apache 2.0
  • A
    license
    -
    quality
    F
    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

View all related MCP servers

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

  • Augments MCP Server - A comprehensive framework documentation provider for Claude Code

View all MCP Connectors

Latest Blog Posts

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/gitnoah1/mc-claudemcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server