</>MCP Agents Market
MCP Server

mineflayer

by PrismarineJS7.4kJavaScriptUpdated 2026-08-28

Create Minecraft bots with a powerful, stable, and high level JavaScript API.

Claude Desktop

Mineflayer is a JavaScript library that enables developers to create programmable Minecraft bots through a high-level API, with support for Minecraft versions 1.8 through 26.1. The library provides comprehensive control over bot behavior including movement, combat, inventory management, world interaction, and chat communication. While primarily a bot framework, it can be integrated with AI agents through the minecraft-mcp-server plugin, which exposes mineflayer's capabilities via the Model Context Protocol for LLM-driven gameplay.

Key Features

Supports Minecraft versions 1.8 to 26.1 with automatic version detection
Entity tracking and block knowledge with millisecond-fast world queries
Physics simulation with movement, jumping, vehicle control, and combat
Inventory management including crafting, chests, furnaces, and enchantment tables
Block digging, building, and item usage capabilities
Chat communication and health/weather status monitoring
Available in both JavaScript and Python with Microsoft/Mojang authentication
Extensible plugin system with pathfinding, web viewer, and state machine add-ons

Use Cases

  • 01Creating automated farming or resource-gathering bots in Minecraft servers
  • 02Building guard bots that protect defined areas from hostile mobs
  • 03Developing AI-powered Minecraft agents using LLM integration via MCP server
  • 04Bridging Minecraft chat with external platforms like Discord
  • 05Constructing automated builders that replicate structures from schematics
  • 06Testing multiplayer server mechanics with programmable bot clients

Related MCP Servers

View more

mineflayer — FAQ

What is mineflayer?+

Mineflayer is a JavaScript library for creating programmable Minecraft bots with a high-level API. It supports Minecraft versions 1.8 through 26.1 and can also be used from Python.

How do I install mineflayer?+

First install Node.js version 18 or higher from nodejs.org, then run 'npm install mineflayer' in your project directory. Update it later using 'npm update'.

Do I need a Minecraft account or API keys?+

For online servers, you need a valid Minecraft account and should set auth to 'microsoft' to authenticate. For offline servers, you can set auth to 'offline' with any username.

Can I use mineflayer with AI agents and LLMs?+

Yes, through the minecraft-mcp-server third-party plugin which provides an MCP server interface. This allows LLMs to control mineflayer bots through the Model Context Protocol.

Is mineflayer free to use?+

Yes, mineflayer is open-source software released under the MIT license and is free to use.

Which Minecraft server versions does mineflayer support?+

Mineflayer supports Minecraft versions from 1.8 all the way to 26.1, including all major releases in between (1.9, 1.10, 1.12, 1.16, 1.18, 1.20, 1.21, etc.).

How do I install mineflayer?+

Open the source repository on GitHub and follow its README. mineflayer is a mcp server — MCP Agents Market links you directly to the official repo.

Is mineflayer free?+

mineflayer is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.

Related searches