minecraft-mcp

minecraft-mcp

A Minecraft bot controlled by Claude over MCP, enabling natural-language commands for movement, mining, building, fighting, and chatting in-game.

Category
Visit Server

README

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)

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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured