mineflayer
Create Minecraft bots with a powerful, stable, and high level JavaScript API.
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
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 moremarkitdown
Python tool for converting files and office documents to Markdown.
firecrawl
The context API to search, scrape, and interact with the web at scale. 🔥
prompts.chat
f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.
langflow
Langflow is a powerful tool for building and deploying AI-powered agents and workflows.
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.