Minecraft

v1.0.0Browser Automationstable

A Minecraft MCP Server powered by Mineflayer API. It allows to control a Minecraft character in real-time, allowing AI assistants to build structures, explore the world, and interact with the game environment through natural language instruction

artificial-intelligenceclaudejavascriptlarge-language-modelsmcp
Share:
583
Stars
0
Downloads
0
Weekly
0/5

What is Minecraft?

Minecraft is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to minecraft mcp server powered by mineflayer api. it allows to control a minecraft character in real-time, allowing ai assistants to build structures, explore the world, and interact with the game envir...

A Minecraft MCP Server powered by Mineflayer API. It allows to control a Minecraft character in real-time, allowing AI assistants to build structures, explore the world, and interact with the game environment through natural language instruction

This server falls under the Browser Automation category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A Minecraft MCP Server powered by Mineflayer API. It allows

Use Cases

Control a Minecraft character in real-time using natural language.
Build structures and explore game worlds with AI assistance.
yuniko-software

Maintainer

LicenseApache 2.0
Languagetypescript
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y mcp-minecraft

Manual Installation

npx -y mcp-minecraft

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Minecraft

mcp-minecraft is an MCP server powered by the Mineflayer API that lets AI assistants like Claude control a Minecraft character in real-time through natural language instructions. It exposes tools for movement, block interaction, inventory management, crafting, smelting, chat, and game state inspection, enabling the AI to build structures, explore the world, and complete in-game tasks autonomously. You can upload images of buildings and ask the bot to replicate them, or give freeform instructions like 'mine some wood and build a house'. It works with Minecraft Java Edition and requires a running Minecraft server.

Prerequisites

  • Node.js 20.10.0 or later installed
  • A running Minecraft Java Edition server or singleplayer world with LAN sharing enabled (Minecraft 1.21.x supported)
  • An MCP-compatible client such as Claude Desktop
  • Git installed (for npx GitHub installation)
1

Start a Minecraft Java Edition server or LAN world

Launch Minecraft Java Edition and either start a local server or open your singleplayer world to LAN (Escape > Open to LAN). Note the port number shown in chat. The bot supports Minecraft version 1.21.x.

2

Configure Claude Desktop

Add the mcp-minecraft server to your Claude Desktop config. Replace localhost and 25565 with your actual server host and port. The --username flag sets the bot's in-game name.

{
  "mcpServers": {
    "minecraft": {
      "command": "npx",
      "args": [
        "-y",
        "github:yuniko-software/minecraft-mcp-server",
        "--host", "localhost",
        "--port", "25565",
        "--username", "ClaudeBot"
      ]
    }
  }
}
3

Restart Claude Desktop

Fully quit and relaunch Claude Desktop. On first launch, npx will download the server package from GitHub. The bot will automatically join your Minecraft server.

4

Verify the bot has joined the game

Check your Minecraft server console or in-game player list. You should see 'ClaudeBot' (or whatever username you configured) join the world.

5

Start giving instructions in Claude Desktop

Open a conversation in Claude Desktop and start issuing Minecraft commands in natural language. The AI will use the mcp-minecraft tools to control the bot.

Minecraft Examples

Client configuration

Claude Desktop config for mcp-minecraft connecting to a local Minecraft Java Edition server on the default port.

{
  "mcpServers": {
    "minecraft": {
      "command": "npx",
      "args": [
        "-y",
        "github:yuniko-software/minecraft-mcp-server",
        "--host", "localhost",
        "--port", "25565",
        "--username", "ClaudeBot"
      ]
    }
  }
}

Prompts to try

Natural language commands to control your Minecraft bot through Claude Desktop.

- "Walk to coordinates 100, 64, 200 and tell me what blocks are nearby."
- "Mine 20 logs of oak wood and then craft a crafting table."
- "Build a 5x5 stone house with a door opening at the south side."
- "What items do I currently have in my inventory?"
- "Find the nearest cow and tell me its position."

Troubleshooting Minecraft

Bot fails to connect to the Minecraft server

Verify that --host and --port match your actual Minecraft server address and port. For LAN worlds, the port is shown in the in-game chat when you open to LAN. Ensure your firewall allows connections on that port. The bot only supports Minecraft Java Edition 1.21.x — check your game version.

npx download fails or takes too long on first start

The first run downloads the server from GitHub. Ensure you have internet access and Git installed. If it fails, try running the npx command directly in your terminal to see the error: npx -y github:yuniko-software/minecraft-mcp-server --host localhost --port 25565 --username ClaudeBot

Bot connects but movement or block commands have no effect

Ensure the Minecraft world has the bot spawned in a valid location and is not in spectator mode. Check that the game is not paused. If in a singleplayer LAN world, make sure cheats are enabled if the bot needs to teleport or change game mode.

Frequently Asked Questions about Minecraft

What is Minecraft?

Minecraft is a Model Context Protocol (MCP) server that minecraft mcp server powered by mineflayer api. it allows to control a minecraft character in real-time, allowing ai assistants to build structures, explore the world, and interact with the game environment through natural language instruction It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Minecraft?

Install via npm with the command: npx -y mcp-minecraft. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Minecraft?

Minecraft works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Minecraft free to use?

Yes, Minecraft is open source and available under the Apache 2.0 license. You can use it freely in both personal and commercial projects.

Browse More Browser Automation MCP Servers

Explore all browser automation servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "mcp-minecraft": { "command": "npx", "args": ["-y", "mcp-minecraft"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Minecraft?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides