home / mcp / minecraft mcp server
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
Configuration
View docs{
"mcpServers": {
"yuniko-software-minecraft-mcp-server": {
"command": "npx",
"args": [
"-y",
"github:yuniko-software/minecraft-mcp-server",
"--host",
"localhost",
"--port",
"25565",
"--username",
"ClaudeBot"
]
}
}
}You can run an MCP-enabled Minecraft bot that is controlled by Claude and other models through the Model Context Protocol. This server acts as the bridge between your Minecraft game and an MCP client, letting you issue in-game commands and automate actions via natural language prompts.
Once you have the MCP server running, you can issue commands from your MCP client to control your in-game avatar. Start your Minecraft world, connect the MCP client, and begin giving the bot commands such as moving to coordinates, interacting with blocks, or reading chat. The bot will respond and perform actions in the active world as you prompt it.
Prerequisites you need before installation:
Step 1: Ensure Minecraft is running and the world is opened to LAN.
Step 2: Configure the MCP bridge in the MCP client. Open the MCP client settings and insert the following configuration to connect to the local MCP server using localhost and the default port 25565.
{
"mcpServers": {
"minecraft": {
"command": "npx",
"args": [
"-y",
"github:yuniko-software/minecraft-mcp-server",
"--host",
"localhost",
"--port",
"25565",
"--username",
"ClaudeBot"
]
}
}
}With Minecraft running and the world opened to LAN, start the MCP client (for example, Claude Desktop). The bot will join the game once the MCP bridge initializes. It may take a moment for the MCP server to boot. You will know it is ready when the client shows the bot has connected successfully.
From the MCP client chat, you can command the bot to perform actions in Minecraft. Refer to the available commands to see what you can request the bot to do in your world.
Retrieve the bot's current coordinates in the Minecraft world.
Move the bot to specific X, Y, Z coordinates.
Orient the bot to face specific coordinates.
Make the bot jump.
Move the bot in a chosen direction for a set duration.
Fly the bot directly to the specified coordinates.
List all items in the bot's inventory.
Search for a specific item in the inventory.
Equip a chosen item from the inventory.
Place a block at given coordinates.
Dig or break a block at given coordinates.
Get information about a block at specific coordinates.
Find the nearest block of a specified type.
Smelt items using a furnace-like block.
Find the nearest entity of a given type.
Send a chat message in-game.
Fetch recent chat messages from players.
Detect the current gamemode of the connected world.