attackEntity
Attack a specific entity
Log an agent into a Minecraft server as a player and have it walk to coordinates, dig and place blocks, move items through chests, craft, and trade with villagers.
LABSCO SUMMARY
Everything happens through one logged-in player: it walks, digs, opens the chest in front of it and hands items to a villager, and getNearbyPlayers means other people on the server see the same character. Because credentials go to connectToServer at call time, the server keeps nothing between runs. There is no batch or blueprint primitive — placeBlock takes one coordinate triple, so a structure costs as many calls as it has blocks.
A remote-control server for one Minecraft player — 27 tools spanning connection, movement, world edits, inventory, containers, crafting and villager trade.
A reachable Minecraft server and an account on it. The login is passed to connectToServer per session — host, port, username, password and version — so nothing is held in the environment.
One command — npx -y mcp-minecraft-remote@latest
USE CASES
Log in with the server's host, port and version, read back where the player landed and who else is around, and announce yourself in chat.
Move the player toward the target, clear blocks in the way one coordinate at a time, and check position as you go.
Open the container at its coordinates, take what is needed and drop off what is not, then close it and confirm the inventory.
Check what the current materials allow, craft the item, and put it in hand before continuing.
List what the nearby villager offers, take the trade by its index, and clear inventory space when the exchange needs it.
Scan for entities within range, turn to face the one that matters, and either strike it, use the held item on it, or shadow it.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
attackEntityAttack a specific entity
checkInventoryCheck the items in the player inventory
closeContainerClose the currently open container
connectToServerConnect to a Minecraft server with the specified credentials
craftItemCraft an item using available materials
depositItemPut items into an open container
digBlockDig a block at the specified coordinates
disconnectFromServerDisconnect from the Minecraft server
equipItemEquip an item from inventory to hand or armor slot
followEntityFollow a specific entity
getNearbyEntitiesGet a list of all entities nearby
getNearbyPlayersGet a list of players nearby
getPositionGet the current position of the player in the Minecraft world
getRecipesGet a list of available crafting recipes
getServerInfoGet information about the currently connected server
inventoryDetailsGet detailed information about inventory items
listTradesList available trades from a nearby villager
lookAtMake the player look in a specific direction or at coordinates
moveControlControl the player with basic movement commands
moveToMove the player to a specific location
openContainerOpen a container (chest, furnace, etc.) at specific coordinates
placeBlockPlace a block at the specified location
sendChatSend a chat message to the Minecraft server
tossItemThrow items from inventory
tradeWithVillagerTrade with a nearby villager
useOnEntityUse held item on a specific entity
withdrawItemTake items from an open container
BEFORE YOU INSTALL
27 tools when we connected.
CONTEXT COST
Rated by the size of the 27 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
Add the block to your client, or run the command directly.
{
"mcpServers": {
"mcp-minecraft-remote": {
"command": "npx",
"args": [
"-y",
"mcp-minecraft-remote@latest"
]
}
}
}npx -y mcp-minecraft-remote@latest