- Explore MCP Servers
- minecraft-mcp-server-pixel
Minecraft Mcp Server Pixel
What is Minecraft Mcp Server Pixel
minecraft-mcp-server-pixel is a Model Context Protocol (MCP) server that allows AI language models like Claude to control a Minecraft bot using the Mineflayer API, enabling automation of building, exploration, and interaction within the Minecraft world through natural language.
Use cases
Use cases include automating building tasks, creating pixel art in Minecraft, conducting AI experiments, teaching programming concepts, and enhancing user interaction in Minecraft-based educational environments.
How to use
To use minecraft-mcp-server-pixel, clone the repository, install dependencies, and build the project. Start Minecraft in Creative Mode, open a world to LAN, and run the bot locally using Node.js with the specified host and port.
Key features
Key features include AI-powered bot control, automatic pixel art creation, easy navigation, precise block placement, entity detection, in-game chat capabilities, and special features for Creative Mode such as teleportation and inventory manipulation.
Where to use
minecraft-mcp-server-pixel can be used in gaming, AI research, education, and creative projects where automation and interaction with the Minecraft environment are beneficial.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Minecraft Mcp Server Pixel
minecraft-mcp-server-pixel is a Model Context Protocol (MCP) server that allows AI language models like Claude to control a Minecraft bot using the Mineflayer API, enabling automation of building, exploration, and interaction within the Minecraft world through natural language.
Use cases
Use cases include automating building tasks, creating pixel art in Minecraft, conducting AI experiments, teaching programming concepts, and enhancing user interaction in Minecraft-based educational environments.
How to use
To use minecraft-mcp-server-pixel, clone the repository, install dependencies, and build the project. Start Minecraft in Creative Mode, open a world to LAN, and run the bot locally using Node.js with the specified host and port.
Key features
Key features include AI-powered bot control, automatic pixel art creation, easy navigation, precise block placement, entity detection, in-game chat capabilities, and special features for Creative Mode such as teleportation and inventory manipulation.
Where to use
minecraft-mcp-server-pixel can be used in gaming, AI research, education, and creative projects where automation and interaction with the Minecraft environment are beneficial.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
MinecraftBuildMCP
MinecraftBuildMCP is a Model Context Protocol (MCP) server that enables Claude (or other compatible LLMs) to control a Minecraft bot using the Mineflayer API. This project bridges the gap between AI language models and Minecraft, allowing you to automate building, exploration, and interaction with the Minecraft world through natural language.
🌟 Features
- AI-Powered Bot Control: Interface directly with Claude Desktop to control Minecraft
- Pixel Art Creation: Build complex pixel art designs automatically
- Navigation: Move around the Minecraft world with ease
- Block Placement: Place blocks precisely at specified coordinates
- Entity Detection: Find entities and interact with the environment
- In-Game Chat: Send and receive chat messages
- Creative Mode Support: Special features for creative mode including teleportation and inventory manipulation
📋 Prerequisites
- Node.js v16 or higher
- Minecraft Java Edition (tested on version 1.21.4)
- Claude Desktop (or any compatible MCP client)
🔧 Installation
-
Clone the repository and install dependencies:
git clone https://github.com/Jeremy-Min-Yang/minecraft-mcp-server-pixel.git cd minecraft-mcp-server-pixel npm install -
Build the project:
npm run build
🚀 Running the Bot
-
Start Minecraft and open a world to LAN:
- Launch Minecraft 1.21.4
- Create a new world or open an existing one
- For best results, use Creative Mode
- Press Esc, click “Open to LAN”
- Enable cheats and set the game mode
- Click “Start LAN World” and note the port number
-
Run the bot locally:
node dist/bot.js --host localhost --port 25565 --username Bob_the_BuilderOr, run directly from GitHub using npx:
npx -y github:Jeremy-Min-Yang/minecraft-mcp-server-pixel --host localhost --port 25565 --username Bob_the_Builder -
Command Line Options:
--host: Minecraft server hostname (default: localhost)--port: Minecraft server port (default: 25565)--username: Bot’s username (default: Bob_the_Builder)
🔌 Claude Desktop Integration
Add this to your claude_desktop_config.json to enable the Minecraft MCP server:
{
"mcpServers": {
"minecraft": {
"command": "npx",
"args": [
"-y",
"github:Jeremy-Min-Yang/minecraft-mcp-server-pixel",
"--host",
"localhost",
"--port",
"25565",
"--username",
"Bob_the_Builder"
]
}
}
}
🛠️ Available Commands
Once connected, Claude can use these commands to control the Minecraft bot:
Movement
get-position— Get the bot’s current positionmove-to-position— Move to specific coordinates (teleports in creative mode)
Inventory
equip-item— Equip an item to the bot’s handget-bot-status— Show the current game mode and OP statuslist-block-names— List all valid block names for this Minecraft version
Block Interaction
place-block— Place a block at specific coordinates
Entity Interaction
find-entity— Find the nearest entity of a specific type
Chat
send-chat— Send a chat message in-game
Pixel Art
build-pixel-art— Build a pixel art image from a 2D array of block types
🎨 Pixel Art Example
To create pixel art, provide a 2D array of block types, an origin point, and a direction:
// Example pixel art command
{
"pixels": [
["wool_red", "wool_red", "wool_red"],
["wool_blue", "wool_white", "wool_blue"],
["wool_blue", "wool_blue", "wool_blue"]
],
"origin": { "x": 100, "y": 64, "z": 100 },
"direction": "north"
}
📚 Documentation
- See schema.md for detailed API documentation
- Refer to the Mineflayer documentation for more information about the underlying bot API: Mineflayer Documentation
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the project
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
👏 Acknowledgements
- Mineflayer - The Minecraft bot library
- Model Context Protocol - The protocol for connecting LLMs to tools
- Anthropic - Creator of Claude AI
Happy building with AI! 🤖🏗️
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










